Skip to main content

talonic_thread_decide_draft

Approve or decline one prepared draft, naming the version the person saw. Approving sends the email, starts the process or shares the document; only on the person's explicit answer to exactly what shown said. A repeat returns the first answer (replayed true); nothing happens twice.

How an agent uses it

  • Use it when: the person approved or declined a draft listed by talonic_thread_list_drafts.
  • Not for: guessing consent; if unsure, ask the person first.
  • Arguments: approval_id, draft_id, draft_version, payload_hash (all from the listed draft), approved.
  • Returns: { outcome done|failed|uncertain|declined|stale|expired|running, line, replayed, current? }. stale: the draft changed; show current and ask again.

Availability

Listed when your account has a Talonic thread. 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.
  • Can reach outside the workspace, for example a public file URL you pass.

Parameters

ParameterTypeDescription
approval_id *string—
draft_id *string—
draft_version *integerRange: 1 to 9007199254740991.
payload_hash *string—
approved *boolean—

Example

Tool input
{
  "approval_id": "<approval_id>",
  "draft_id": "<draft_id>",
  "draft_version": 1,
  "payload_hash": "<payload_hash>",
  "approved": true
}

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.