read-file
Retrieve file contents from a local or cloud virtual machine by specifying machine name and absolute path, with optional encoding.
Instructions
Read a file from a machine.
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": {
"name": "<name>",
"path": "<path>"
},
"name": "read-file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Machine name | |
| path | Yes | Absolute path inside the machine | |
| target | No | Which fleet to talk to. local is smolvm serve on this host; cloud is smol cloud at SMOL_CLOUD_URL. | local |
| encoding | No | utf8 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| size | Yes | ||
| content | Yes | ||
| encoding | Yes |