Read a file
file_readRead text files from a sandbox and page through large files by specifying line offset and limit.
Instructions
Read a text file from the sandbox. Use offset/limit to page through large files.
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": {
"path": "<path>"
},
"name": "file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path inside the sandbox, e.g. /home/user/main.py. | |
| limit | No | Maximum number of lines (default 2000). | |
| offset | No | 0-based line offset (default 0). | |
| sandbox_id | No | Sandbox ID, e.g. sbx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (returned by sandbox_create). |