Apply change set
apply_changesCommit a previewed change set safely: re-checks file revisions, rejects stale previews, backs up originals, writes atomically, and rolls back on failure. Requires write permission.
Instructions
Commit a previously previewed change set. Re-checks file revisions (rejects stale previews), backs up originals, writes atomically, and rolls back on failure. Requires --allow-write.
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": {
"changeSetId": "<changeSetId>"
},
"name": "apply_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | For destructive change sets: repeat the changeSetId to confirm | |
| changeSetId | Yes | ||
| acknowledgeWarnings | No | Required when the change set has warnings |