File Operations
file-opsRead, write, and list files within a sandboxed .mcp-files directory using relative paths, enabling MCP workflows to manage local files inside a confined workspace.
Instructions
Read, write, or list files in a sandboxed directory (.mcp-files/). Paths are relative to the sandbox.
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-ops"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Relative file path within the sandbox | . |
| content | No | Content to write (required for write operation) | |
| operation | Yes | The file operation to perform |