write-file
Write files to a virtual machine, waiting until the workload container is running to ensure the file is not lost.
Instructions
Write a file into a machine. Waits until the workload container runs so the file is not lost.
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>",
"content": "<content>"
},
"name": "write-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 |
| content | Yes | ||
| encoding | No | utf8 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| size | Yes |