Write Sandbox File
write_sandbox_fileWrite files into an isolated sandbox, auto-creating parent directories, to apply candidate fixes without affecting the developer's project.
Instructions
Write a file inside the sandbox, creating parent directories as needed.
USE THIS to apply a candidate fix. Prefer it over shell heredocs: no quoting to get wrong.
SAFETY: writes land in the sandbox copy only. There is no tool here that writes to the developer's project -- if a change is worth keeping, show them the diff from inspect_changes and let them apply 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": {
"experiment_id": "<experiment_id>",
"path": "<path>",
"content": "<content>"
},
"name": "write_sandbox_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Workspace-relative path. | |
| content | Yes | Full new contents of the file. | |
| experiment_id | Yes | The experiment to write in. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |