talonic_spec_check
Check a Spec without saving anything: the draft, or doc before you save it.
How an agent uses it
- Returns: { valid, errors[], warnings[] }, each { code, message, path, field_id, stage_id }. A draft with errors cannot be published; warnings do not block. Free.
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
- Reads only. It never changes workspace data.
- Cost: no credits.
Parameters
| Parameter | Type | Description |
|---|---|---|
| spec_id * | string | — |
| doc | object | A document to check instead of the saved draft |
Example
Example
// talonic_spec_check({ "spec_id": "1111…" })
{ "valid": false, "errors": [{ "code": "SPEC2_DUPLICATE_FIELD_NAME", "message": "Two fields are named total_amount.", "path": "fields[3].name" }], "warnings": [] }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
Does check cost credits?+
No.