inputSchema property
JSON Schema for the tool's input parameters.
Implementation
@override
Map<String, dynamic> get inputSchema => {
'type': 'object',
'properties': {
'file_path': {
'type': 'string',
'description': 'Absolute path to the file to edit',
},
'edits': {
'type': 'array',
'description': 'List of {old_text, new_text} replacements',
'items': {
'type': 'object',
'properties': {
'old_text': {'type': 'string', 'description': 'Text to find'},
'new_text': {'type': 'string', 'description': 'Replacement text'},
},
'required': ['old_text', 'new_text'],
},
},
},
'required': ['file_path', 'edits'],
};