talonic_pipeline_documents
The documents of a Spec run with their processing state, paged and filterable like the run grid in the web app.
How an agent uses it
- Use it when: finding which documents failed, are flagged, or belong to one submission group; getting the run document id that talonic_pipeline_field_states needs.
- Returns: { data[] (one per run document: id = run document id, document_id, filename, status, …), pagination { total, page, limit } }.
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
- Reads only. It never changes workspace data.
- Cost: no credits.
Parameters
| Parameter | Type | Description |
|---|---|---|
| pipeline_id * | string | The Spec run's pipeline_id, from talonic_run_spec or talonic_get_run. |
| page | integer | Page number, from 1. Range: 1 to 9007199254740991. |
| limit | integer | Rows per page; the platform caps it. Range: 1 to 9007199254740991. |
| q | string | Filename contains this text. |
| status | string[] | Only these run document states, e.g. ["error"] or ["completed"]. |
| tags | string[] | Documents carrying any of these tags. |
| flagged | boolean | true: only documents with flagged values; false: only without. |
| has_manual_edits | boolean | true: only documents with values a person changed. |
| overridden_by_amendment | boolean | true: only documents whose values a later amendment replaced. |
| sort_by | string | filename, status, added_at, duration, flag_count, batch, or field:<field key>. |
| sort_dir | "asc" | "desc" | Sort direction. |
| run_id | string | One submission group (talonic_pipeline_runs), or `none` for documents added outside any group. |
| ids | string[] | Read exactly these run document ids. |
Example
Tool input
{
"pipeline_id": "<pipeline_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.