talonic_spec_rollback
Go back to an earlier published version: its document is published again as a NEW version (history is kept). Changes what runs for real; call only when the user asks.
How an agent uses it
- Arguments:
spec_id,version. Withpreview: truenothing changes: returns what differs between the current version andversion, so the user can decide. - Returns: { version, restored_from, active, issues } or, with preview, { from, to, diff }.
Availability
Listed when your workspace role can build and change Specs. Being listed only means the tool is visible: Talonic checks your role again on every call.
Behaviour and cost
- Changes workspace data and can't be undone. Call it only when the user asked.
Parameters
| Parameter | Type | Description |
|---|---|---|
| spec_id * | string | — |
| version * | integer | Range: 1 to 9007199254740991. |
| preview | boolean | Only show what would change |
| acknowledge_issues | boolean | — |
Example
Example
// talonic_spec_rollback({ "spec_id": "1111…", "version": 2 })
{ "version": 6, "restored_from": 2, "active": true, "issues": [] }Errors
A failed call comes back as a tool error with the HTTP status and a message that says what to change. Troubleshooting lists the common ones.
Frequently asked questions
Does rollback delete newer versions?+
No. Every version stays.