write_sandbox_file
Write a file into a sandbox, replacing any file of the same name and creating missing directories on its path.
Instructions
Upload a file into the sandbox's files (replaces one of the same name); missing folders on its path are made HTTP PUT /sandboxes/{name}/files/content
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>",
"body": "<body>"
},
"name": "write_sandbox_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The file's content | |
| name | Yes | ||
| path | Yes | The file to write, e.g. /root/app/config.json |