inputSchema property

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

JSON Schema for the tool's input parameters.

Implementation

@override
Map<String, dynamic> get inputSchema => {
  'type': 'object',
  'properties': {
    'operation': {
      'type': 'string',
      'enum': LspOperation.values.map((e) => e.name).toList(),
      'description': 'The LSP operation to perform',
    },
    'filePath': {
      'type': 'string',
      'description': 'The absolute or relative path to the file',
    },
    'line': {
      'type': 'integer',
      'minimum': 1,
      'description': 'The line number (1-based, as shown in editors)',
    },
    'character': {
      'type': 'integer',
      'minimum': 1,
      'description': 'The character offset (1-based, as shown in editors)',
    },
  },
  'required': ['operation', 'filePath', 'line', 'character'],
  'additionalProperties': false,
};