Read a file or list a directory in a machine
instabox_list_filesLists a directory (up to 5,000 entries, directories first) or reads a text file (up to 256 KiB) from a running cloud machine as root; binary files return metadata only.
Instructions
List a directory (up to 5000 entries, directories first) or read a text file (up to 256 KiB) from a machine, live and as root. Binary files come back with binary: true and no content. Use instabox_exec for larger files. The machine must be running (an idle-paused one is woken).
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": {
"id": "<id>"
},
"name": "instabox_list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Machine ID (m_...) or its unique name | |
| path | No | Absolute path (default /) | / |