Skip to main content

talonic_link_key_set

Make a field a link key of the workspace (documents that share its value are linked), or stop using it as one. USE WHEN the user wants documents connected by a shared value such as a customer number. link_key_category says what the value identifies: a party (identity), a business event (transaction) or a document reference. Turning one on with a category starts linking existing documents in the background (backfill_triggered: true); follow it on GET /v1/linking/backfill/progress. Needs records:write and an Admin of the workspace (else 403 insufficient_role).

How an agent uses it

  • Not for: reviewing schema changes (talonic_schema_review_queue).

Availability

Listed when your role can review suggested fields and links. 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
field_id *stringThe field id (from talonic_list_fields)
link_key *booleantrue to use the field as a link key, false to stop
link_key_category"identity" | "transaction" | "reference"What the value identifies

Example

Tool input
{
  "field_id": "<field_id>",
  "link_key": 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.