Read file
read_fileRead a UTF-8 text file from a running Hadronbox machine using a /workspace-relative path; access stays confined to /workspace.
Instructions
Read a UTF-8 text file from a running machine. path is relative to /workspace (e.g. "src/index.ts"); it cannot leave /workspace.
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": {
"machine_id": "<machine_id>",
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to /workspace. | |
| machine_id | Yes | Machine id (machine_id from create_machine or list_machines). |