File write
write_fileWrites UTF-8 text to a file in the sandboxed workspace, creating parent directories and overwriting existing files so you can persist reports or working notes.
Instructions
Write UTF-8 text to a file inside the sandboxed workspace directory (creates parent directories; overwrites existing files). Use it to persist the final report or working notes.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination path relative to the sandbox, e.g. reports/out.md | |
| content | Yes | UTF-8 text to write |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| status | No | ok |