Apply workspace file patch (approval required)
filesystem.apply_patchCreate a pending approval request for a narrowly scoped file patch. The patch changes only the specified file and applies after out-of-band approval.
Instructions
Create a PENDING approval request for a narrowly-scoped patch.
The patch may modify only the requested file, and is applied only after out-of-band approval via filesystem.apply_patch_approved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| patch | Yes | ||
| expected_hash | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| error | No | ||
| changed | No | ||
| message | No | ||
| outcome | Yes | ||
| approval | No | ||
| executed | Yes | ||
| new_hash | No | ||
| trace_id | Yes | ||
| additions | No | ||
| deletions | No | ||
| request_id | No | ||
| bytes_after | No | ||
| bytes_before | No | ||
| previous_hash | No | ||
| approval_status | No |