Read a file
rent_read_fileReads a file from a running sandbox. Without encoding the content comes back as UTF-8 text when it is valid UTF-8, else as base64.
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": {
"sandbox_id": "<sandbox_id>",
"path": "<path>"
},
"name": "rent_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path, e.g. /home/user/main.py. | |
| encoding | No | ||
| sandbox_id | Yes | Sandbox id (`lse_…`) from rent_create_sandbox or rent_list_sandboxes. It names the sandbox for its whole life and keeps answering rent_get_sandbox, with the final state, after it ends. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| size | Yes | Bytes. | |
| content | Yes | ||
| encoding | Yes |