talonic_pipeline_add_documents
Attach workspace documents to a Spec run. They wait idle until talonic_pipeline_start; documents already in the run are skipped. One call is one submission group (run_id).
Every id must be a document the key's person can see (a hidden one answers 404 like a missing one). At most 1000 ids.
How an agent uses it
- Returns: { pipeline_id, run_id, added, skipped, documents[] { id, document_id, status } }.
- A 403 names its reason (insufficient_scope, insufficient_role, no_person, person_inactive, workspace_read_only): the key's person must be allowed the same action in the Talonic web app, and an OAuth connection must have granted the scope. Tell the user; do not retry.
Availability
Listed per area (Spec runs, ingest, ingest settings, document organising, collections, saved filters, document types) when your role can use that area of the workspace. 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
| Parameter | Type | Description |
|---|---|---|
| pipeline_id * | string | The Spec run's pipeline_id, from talonic_run_spec or talonic_get_run. |
| document_ids * | string[] | Workspace document ids (talonic_search or talonic_filter), 1 to 1000. |
Example
Tool input
{
"pipeline_id": "<pipeline_id>",
"document_ids": [
"<document_id>"
]
}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.