inputSchema property

  1. @override
Map<String, dynamic> get inputSchema
override

Input schema (JSON Schema format)

Defines the structure of parameters that this tool accepts. Follows JSON Schema specification (draft-07 or later).

Implementation

@override
Map<String, dynamic> get inputSchema => {
  'type': 'object',
  'properties': {
    'code': {
      'type': 'string',
      'description': 'Dart code to execute',
    },
    'timeout': {
      'type': 'number',
      'description':
          'Timeout in seconds (max ${TinkerSecurityConfig.maxTimeoutSeconds}, default ${TinkerSecurityConfig.defaultTimeoutSeconds})',
    },
  },
  'required': ['code'],
};