sandbox_file_info
Retrieve metadata about a file or directory within an E2B sandbox, including size, type, and permissions by providing the sandbox ID and absolute path.
Instructions
Get metadata about a file or directory in a sandbox (size, type, permissions).
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_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sandboxId | Yes | The sandbox ID. | |
| path | Yes | Absolute path to get info for. |