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.
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 |