file_op
Perform file operations, directory navigation, permission changes, disk usage checks, and inotify event monitoring.
Instructions
File system operations, directory navigation, permissions, disk usage, and inotify monitoring.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>"
},
"name": "file_op"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Permissions octal (e.g. '755'). | |
| path | No | Target path. | |
| events | No | inotify mask ('all', 'modify', 'create', 'delete', 'write', 'move'). | all |
| target | No | Text to replace. | |
| content | No | Content to write. | |
| pattern | No | Glob search pattern. | * |
| end_line | No | End line (1-indexed). | |
| operation | Yes | File/Directory/Storage operation. | |
| recursive | No | Recursive watch flag. | |
| start_line | No | Start line (1-indexed). | |
| replacement | No | Replacement text. | |
| timeout_seconds | No | Timeout in seconds. |