Apply a prepared structural operation
ast_apply_operationApply a verified plan after checking its hash and workspace fingerprint, aborting on conflicts before any write. Retries after success are idempotent.
Instructions
Applies exactly the reviewed plan after verifying its plan hash and the complete TypeScript workspace fingerprint. Conflicts abort before writes; retries after success are idempotent.
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": {
"operation_id": "<operation_id>",
"plan_hash": "<plan_hash>"
},
"name": "ast_apply_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_hash | Yes | Plan hash returned by the same prepare operation. | |
| operation_id | Yes | Identifier returned by a prepare operation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| status | Yes | ||
| applied_at | Yes | ||
| operation_id | Yes | ||
| affected_files | Yes | ||
| idempotent_replay | Yes |