Execute an approved file patch
filesystem.apply_patch_approvedExecutes the exact patch from an approved request using only its request_id; the saved snapshot is single-use.
Instructions
Execute exactly the patch stored in an APPROVED request.
Takes only a request_id; the stored snapshot is used. Single-use.
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": {
"request_id": "<request_id>"
},
"name": "filesystem.apply_patch_approved"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_id | Yes |
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 |