sandbox_read_file
Read text files from a project's sandbox using relative paths resolved against /workspace/work, with optional byte limits to control output size.
Instructions
Read a text file from a project's sandbox. Relative paths resolve against /workspace/work.
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": {
"project": "<project>",
"path": "<path>"
},
"name": "sandbox_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path inside the sandbox. | |
| project | Yes | Installed project: its slug, or its id such as "github:owner/name". | |
| max_bytes | No | Read at most this many bytes (default 100000). |