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.
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 |