undo_last_head_change
Restore a design, preset, or feature branch to its prior head from the latest head-changing reflog entry after an unwanted change.
Instructions
One-tap recovery: snap branch_id back to the old_head of its most recent head-mutating reflog entry.
Free door, tiered answer — Free: Branch · merge · cherry-pick · undo, on the designs you keep · Pro: Branch · merge · cherry-pick · undo, on every design · Business: ✓ · Enterprise: ✓.
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": {
"artifact_type": "<artifact_type>",
"branch_id": "<branch_id>"
},
"name": "undo_last_head_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operator | No | Who is making the change, recorded on the restore entry. On Kiln's servers it must match the signed-in account (a different name is refused); omitted, the signed-in account, or on a local install the local operator. | |
| branch_id | Yes | The branch whose last head change to undo. | |
| artifact_type | Yes | The kind of branch: ``design``, ``preset`` or ``feature``; any other word is refused. |