Sm File Operations
sm_file_operationsManage files and logs by listing, searching, grepping, reading, creating, updating, or deleting files and tailing system logs for system administration tasks.
Instructions
Operations for file and log management
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": {
"action": "<action>"
},
"name": "sm_file_operations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Depth for list_files | |
| lines | No | Number of lines to tail | |
| action | Yes | Action to perform. Must be one of: 'get_system_logs', 'tail_log_file', 'list_files', 'search_files', 'grep_files', 'manage_file' | |
| confirm | No | Explicit confirmation for a mutating action. Pass true when the client cannot answer an approval prompt. | |
| content | No | Content to create or update the file with | |
| pattern | No | Search pattern | |
| filepath | No | Path to file | |
| recursive | No | Recursive search | |
| file_action | No | Action for text editor/manage file | read |