write_file
Write UTF-8 text to a file in a sandboxed data directory, with permission policies and human-in-the-loop approval for secure file operations.
Instructions
Write content to a file in the data directory. (Risk: MEDIUM)
Modifies data; requires human approval unless policy allows 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": {
"filepath": "<filepath>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | UTF-8 text to write. | |
| filepath | Yes | Path relative to the sandboxed data directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |