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': 'The absolute path to the file to modify',
},
'old_string': {'type': 'string', 'description': 'The text to replace'},
'new_string': {
'type': 'string',
'description':
'The text to replace it with (must be different from old_string)',
},
'replace_all': {
'default': false,
'type': 'boolean',
'description': 'Replace all occurrences of old_string (default false)',
},
},
'required': ['file_path', 'old_string', 'new_string'],
};