write_file
Write text content to a file in the sandbox workspace (path is relative to the workspace root; parent dirs are created). An absolute path is not re-rooted: one outside the workspace is refused, so use run_command to reach it.
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": {
"sandbox_id": "<sandbox_id>",
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | file path relative to the workspace, e.g. app/main.py | |
| content | Yes | full file content | |
| sandbox_id | Yes | sandbox id |