Skip to main content

talonic_spec_edit

Read or change a Spec's draft.

With only spec_id: returns the draft { revision, doc, published_version, has_unpublished_changes }. Read it before every edit.

With doc + revision: replaces the WHOLE draft. revision is the one you read; a 409 means someone saved in between, so read again and re-apply. Keep each field's field_id when you change a field (ground truth and rules point at it); replacing most fields needs allow_field_reset: true.

With name / description: renames the Spec.

Saving never changes what runs: publish does (talonic_spec_publish).

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

  • Not read-only. It can add to or change workspace data.

Parameters

ParameterTypeDescription
spec_id *string—
docobjectThe complete new draft document
revisionintegerThe draft revision you read Range: 0 to 9007199254740991.
allow_field_resetboolean—
namestring—
descriptionstring—

Example

Example
// talonic_spec_edit({ "spec_id": "1111…", "doc": { … }, "revision": 1 })
{ "spec_id": "1111…", "revision": 2, "updated_at": "2026-11-25T10:00:00.000Z", "field_adoptions": {} }

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

What if someone else saved first?+
The call fails with a conflict and nothing changes. Read the draft again and re-apply the change.