read_file
Safely read file contents within a sandbox's /workspace directory while enforcing path traversal checks.
Instructions
Safely reads the contents of a file inside the sandbox /workspace directory. Enforces path traversal security checks.
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": {
"sandboxId": "<sandboxId>",
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path inside /workspace to read | |
| sandboxId | Yes | Sandbox ID |