write_file
Write new files or overwrite existing ones on a devbox by providing the file path and contents. The full contents are written atomically to ensure consistency.
Instructions
Create or overwrite a file on a devbox.
Use this to write new files or edit existing ones (the full contents are written atomically).
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": {
"devbox_id": "<devbox_id>",
"file_path": "<file_path>",
"contents": "<contents>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contents | Yes | Full file contents to write. | |
| devbox_id | Yes | The id of the devbox. | |
| file_path | Yes | Absolute path of the file inside the devbox. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||