Write workspace file (approval required)
filesystem.write_fileCreates a pending approval request for writing a UTF-8 text file; the write executes only after an administrator approves the stored snapshot.
Instructions
Create a PENDING approval request for writing a UTF-8 text file.
The write happens only after a trusted administrator approves the request out-of-band and filesystem.write_file_approved executes the stored snapshot.
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": "filesystem.write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| expected_hash | No | ||
| create_parents | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| error | No | ||
| created | No | ||
| message | No | ||
| outcome | Yes | ||
| approval | No | ||
| executed | Yes | ||
| new_hash | No | ||
| trace_id | Yes | ||
| request_id | No | ||
| bytes_written | No | ||
| previous_hash | No | ||
| approval_status | No |