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': {
    'action': {
      'type': 'string',
      'enum': [
        'diagnostics',
        'hover',
        'definition',
        'references',
        'completions',
      ],
      'description': 'LSP action to perform',
    },
    'file_path': {
      'type': 'string',
      'description': 'Absolute path to the source file',
    },
    'line': {'type': 'integer', 'description': 'Line number (1-based)'},
    'column': {'type': 'integer', 'description': 'Column number (1-based)'},
  },
  'required': ['action', 'file_path'],
};