Apply planned file operations
crabrix_apply_operationsApplies a batch of planned file operations atomically, guarded by expected revision and plan hash, with an operation ID for safe retries and duplicate prevention.
Instructions
Format 2 rooms only. Apply exactly the operations you planned, with expectedRevision and planHash from crabrix_plan_changes and a new operationId (8–64 letters, digits, - or _) for this change. All operations apply together or none do. If the project changed since the plan, nothing is applied: read and plan again. After OUTCOME_UNKNOWN, retry with the same operationId and operations; an applied change returns alreadyApplied instead of applying twice. Deleted files stay in recovery until purged.
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": {
"operations": "<operations>",
"expectedRevision": "<expectedRevision>",
"planHash": "<planHash>",
"operationId": "<operationId>"
},
"name": "crabrix_apply_operations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planHash | Yes | ||
| operations | Yes | ||
| operationId | Yes | ||
| expectedRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | ||
| changed | Yes | ||
| revision | Yes | ||
| alreadyApplied | Yes |