Skip to main content

talonic_spec_publish

Publish the draft as the next version: new runs use it from now on. Changes what runs for real; call only when the user asks to publish.

How an agent uses it

  • Arguments: spec_id; expected_draft_revision (the revision you checked, recommended); acknowledge_issues only after the user agreed to the issues a previous attempt listed.
  • Refused (nothing published) when the draft has errors or unacknowledged issues.
  • Returns: { version, schema_id, active, activation_pending, issues }. Run it with talonic_run_spec.

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—
expected_draft_revisionintegerRange: 0 to 9007199254740991.
acknowledge_issuesboolean—

Example

Example
// talonic_spec_publish({ "spec_id": "1111…", "expected_draft_revision": 2 })
{ "version": 1, "schema_id": "4444…", "active": true, "activation_pending": false, "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

Can I undo a publish?+
Yes: talonic_spec_rollback publishes an earlier version again as a new one.