Sm File Operations
sm_file_operationsManage files and logs by listing, searching, reading, writing, appending, creating, or deleting files and retrieving or tailing system logs.
Instructions
Operations for file and log management
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' | |
| content | No | Content to write/append | |
| pattern | No | Search pattern | |
| filepath | No | Path to file | |
| recursive | No | Recursive search | |
| file_action | No | Action for text editor/manage file | read |