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_issuesonly 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
| Parameter | Type | Description |
|---|---|---|
| spec_id * | string | — |
| expected_draft_revision | integer | Range: 0 to 9007199254740991. |
| acknowledge_issues | boolean | — |
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.