Write a file
sandbox_write_fileWrite a file. Writes a file in the sandbox (text, or base64 for bytes), making its folders. Replaces a file already there. At most 10 MB.
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": {
"sandboxId": "<sandboxId>",
"content": "<content>",
"path": "<path>"
},
"name": "sandbox_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute, or relative to the sandbox's home directory. | |
| content | Yes | The file's content, as text or base64 (see `encoding`). | |
| encoding | No | utf-8 | |
| sandboxId | Yes |