sandbox_file_read
Reads the contents of a file inside an E2B sandbox by specifying sandbox ID and absolute file path.
Instructions
Read the contents of a file in a 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": {
"sandboxId": "<sandboxId>",
"path": "<path>"
},
"name": "sandbox_file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sandboxId | Yes | The sandbox ID. | |
| path | Yes | Absolute path to the file inside the sandbox. |