| [ |
| { |
| "name": "read", |
| "description": "Read the contents of a file. Supports text files and images. Use offset and limit for large text files.", |
| "parameters": { |
| "path": {"type": "string", "description": "Path to the file to read (relative or absolute)", "required": true}, |
| "offset": {"type": "number", "description": "Line number to start reading from (1-indexed)", "required": false}, |
| "limit": {"type": "number", "description": "Maximum number of lines to read", "required": false} |
| } |
| }, |
| { |
| "name": "bash", |
| "description": "Execute a bash command in the current working directory and return stdout and stderr.", |
| "parameters": { |
| "command": {"type": "string", "description": "Exact Bash command to execute", "required": true}, |
| "timeout": {"type": "number", "description": "Optional timeout in seconds", "required": false} |
| } |
| }, |
| { |
| "name": "edit", |
| "description": "Edit one file using one or more exact, non-overlapping text replacements.", |
| "parameters": { |
| "path": {"type": "string", "description": "Path to the file to edit (relative or absolute)", "required": true}, |
| "edits": {"type": "array", "description": "Array of objects with exact oldText and replacement newText strings", "required": true} |
| } |
| }, |
| { |
| "name": "write", |
| "description": "Create or completely overwrite a file, creating parent directories automatically.", |
| "parameters": { |
| "path": {"type": "string", "description": "Path to the file to write (relative or absolute)", "required": true}, |
| "content": {"type": "string", "description": "Complete content to write to the file", "required": true} |
| } |
| } |
| ] |
|
|