Skip to main content

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. With preview: true nothing changes: returns what differs between the current version and version, 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

ParameterTypeDescription
spec_id *string—
version *integerRange: 1 to 9007199254740991.
previewbooleanOnly show what would change
acknowledge_issuesboolean—

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.