talonic_spec_test
Test the draft on sample documents: a preview run that is never delivered to the workspace's destinations. A draft with unpublished changes is published first, as in the Spec editor. Uses credits.
How an agent uses it
- Arguments:
spec_id;document_ids(up to 20 documents already in the workspace, e.g. from talonic_extract or an upload) or none to use the pinned samples;pintrue also pins the given documents as samples. - Returns: { pipeline_id, version, status, links }. Then poll talonic_get_run with the pipeline_id and read rows with their evidence with talonic_get_run_results.
- A 422 listing issues: tell the user, and retry with
acknowledge_issues: trueonly if they agree.
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
| Parameter | Type | Description |
|---|---|---|
| spec_id * | string | — |
| document_ids | string[] | — |
| pin | boolean | Also pin document_ids as the Spec's samples |
| acknowledge_issues | boolean | — |
Example
Example
// talonic_spec_test({ "spec_id": "1111…", "document_ids": ["2222…"] })
{ "pipeline_id": "3333…", "version": 1, "status": "processing", "links": { "results": "/v1/pipelines/3333…/results" } }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
Are test results delivered?+
No. Tests are preview runs.