Write file
write_fileCreate or replace a UTF-8 text file on a running cloud sandbox machine, with paths relative to /workspace and parent directories created automatically.
Instructions
Create or replace a UTF-8 text file in a running machine. path is relative to /workspace; parent directories are created.
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>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to /workspace. | |
| content | Yes | Full new file content. | |
| machine_id | Yes | Machine id (machine_id from create_machine or list_machines). |