sandbox_write_file
Writes a text file into a project's sandbox, creating parent directories and resolving relative paths against /workspace/work.
Instructions
Write a text file into a project's sandbox, creating parent directories. Relative paths resolve against /workspace/work.
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": {
"project": "<project>",
"path": "<path>",
"content": "<content>"
},
"name": "sandbox_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path inside the sandbox. | |
| content | Yes | File contents. | |
| project | Yes | Installed project: its slug, or its id such as "github:owner/name". |