@talonic/mcp 0.1.104 → 0.1.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/content/seo.ts","../src/content/helpers.ts","../src/content/sections/overview.ts","../src/content/sections/install.ts","../src/content/sections/tools.ts","../src/content/sections/processes.ts","../src/content/sections/groups/data-management.ts","../src/content/sections/groups/events.ts","../src/content/sections/groups/aggregate.ts","../src/content/sections/groups/admin.ts","../src/content/sections/groups/contract-desk.ts","../src/content/sections/groups/transport-folders.ts","../src/content/sections/groups/compliance.ts","../src/content/sections/groups/money-found.ts","../src/content/sections/groups/customs-declaration.ts","../src/content/sections/tool-groups.ts","../src/content/sections/features.ts","../src/content/sections/configuration.ts","../src/content/sections/troubleshooting.ts","../src/content/index.ts"],"names":["sections","section","tool"],"mappings":";AAGO,IAAM,gBAAA,GAAiC;AAAA,EAC5C;AAAA,IACE,EAAA,EAAI,UAAA;AAAA,IACJ,KAAA,EAAO,UAAA;AAAA,IACP,QAAA,EAAU;AAAA,MACR,EAAE,EAAA,EAAI,kBAAA,EAAoB,KAAA,EAAO,cAAA,EAAe;AAAA,MAChD,EAAE,EAAA,EAAI,SAAA,EAAW,KAAA,EAAO,cAAA,EAAe;AAAA,MACvC,EAAE,EAAA,EAAI,aAAA,EAAe,KAAA,EAAO,gBAAA;AAAiB;AAC/C,GACF;AAAA,EACA;AAAA,IACE,EAAA,EAAI,SAAA;AAAA,IACJ,KAAA,EAAO,SAAA;AAAA,IACP,QAAA,EAAU;AAAA,MACR,EAAE,EAAA,EAAI,kBAAA,EAAoB,KAAA,EAAO,UAAA,EAAW;AAAA,MAC5C,EAAE,EAAA,EAAI,gBAAA,EAAkB,KAAA,EAAO,gBAAA,EAAiB;AAAA,MAChD,EAAE,EAAA,EAAI,QAAA,EAAU,KAAA,EAAO,QAAA,EAAS;AAAA,MAChC,EAAE,EAAA,EAAI,OAAA,EAAS,KAAA,E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GA,SAAAA;AAAA,EACH,GAAGA,SAAAA;AAAA,EACH,GAAGA,SAAAA;AAAA,EACH,GAAGA,SAAAA;AAAA,EACH,GAAGA;AACL,CAAA;AAMA,SAAS,OAAO,GAAA,EAAiC;AAC/C,EAAA,OAAO,GAAA,CAAI,GAAA,CAAI,CAAC,CAAA,KAAM;AACpB,IAAA,MAAM,EAAE,IAAA,EAAM,IAAA,KAAS,cAAA,CAAe,gBAAA,EAAkB,EAAE,IAAI,CAAA;AAC9D,IAAA,OAAO;AAAA,MACL,GAAG,CAAA;AAAA,MACH,WAAA,EAAa,iBAAA,CAAkB,gBAAA,EAAkB,CAAA,CAAE,IAAI,CAAA;AAAA,MACvD,IAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF,CAAC,CAAA;AACH;AAEA,IAAI,SAAA,GAAiC,IAAA;AAErC,SAAS,cAAA,GAA+B;AACtC,EAAA,IAAI,CAAC,SAAA,EAAW;AACd,IAAA,SAAA,GAAY,OAAO,OAAO,CAAA;AAAA,EAC5B;AACA,EAAA,OAAO,SAAA;AACT;AAOO,SAAS,cAAc,IAAA,EAAiC;AAC7D,EAAA,OAAO,cAAA,GAAiB,IAAA,CAAK,CAAC,MAAM,CAAA,CAAE,IAAA,KAAS,IAAI,CAAA,IAAK,IAAA;AAC1D;AAGO,SAAS,iBAAA,GAAkC;AAChD,EAAA,OAAO,cAAA,EAAe;AACxB","file":"content.js","sourcesContent":["import type { NavSection } from \"./types\"\n\n/** MCP documentation navigation — synced to website */\nexport const MCP_NAV_SECTIONS: NavSection[] = [\n {\n id: \"overview\",\n label: \"Overview\",\n children: [\n { id: \"mcp-introduction\", label: \"Introduction\" },\n { id: \"why-mcp\", label: \"Why Use This\" },\n { id: \"get-api-key\", label: \"Get an API Key\" },\n ],\n },\n {\n id: \"install\",\n label: \"Install\",\n children: [\n { id: \"install-overview\", label: \"Overview\" },\n { id: \"claude-desktop\", label: \"Claude Desktop\" },\n { id: \"cursor\", label: \"Cursor\" },\n { id: \"cline\", label: \"Cline\" },\n { id: \"continue\", label: \"Continue\" },\n { id: \"cowork\", label: \"Cowork\" },\n ],\n },\n {\n id: \"tools\",\n label: \"Tool Reference\",\n children: [\n { id: \"talonic-extract\", label: \"talonic_extract\" },\n { id: \"talonic-search\", label: \"talonic_search\" },\n { id: \"talonic-filter\", label: \"talonic_filter\" },\n { id: \"talonic-get-document\", label: \"talonic_get_document\" },\n { id: \"talonic-to-markdown\", label: \"talonic_to_markdown\" },\n { id: \"talonic-list-schemas\", label: \"talonic_list_schemas\" },\n { id: \"talonic-get-schema\", label: \"talonic_get_schema\" },\n { id: \"talonic-list-apps\", label: \"talonic_list_apps\" },\n { id: \"talonic-save-schema\", label: \"talonic_save_schema\" },\n { id: \"talonic-get-balance\", label: \"talonic_get_balance\" },\n { id: \"talonic-get-pricing\", label: \"talonic_get_pricing\" },\n { id: \"talonic-get-usage\", label: \"talonic_get_usage\" },\n { id: \"talonic-request-upload\", label: \"talonic_request_upload\" },\n { id: \"talonic-list-accounts\", label: \"talonic_list_accounts\" },\n { id: \"talonic-create-account\", label: \"talonic_create_account\" },\n { id: \"talonic-list-fields\", label: \"talonic_list_fields\" },\n { id: \"talonic-get-field\", label: \"talonic_get_field\" },\n { id: \"talonic-field-values\", label: \"talonic_field_values\" },\n { id: \"talonic-find-data\", label: \"talonic_find_data\" },\n { id: \"talonic-list-agent-tools\", label: \"talonic_list_agent_tools\" },\n { id: \"talonic-invoke-agent-tool\", label: \"talonic_invoke_agent_tool\" },\n { id: \"talonic-list-agent-tasks\", label: \"talonic_list_agent_tasks\" },\n { id: \"talonic-get-agent-task\", label: \"talonic_get_agent_task\" },\n { id: \"talonic-claim-agent-task\", label: \"talonic_claim_agent_task\" },\n { id: \"talonic-heartbeat-agent-task\", label: \"talonic_heartbeat_agent_task\" },\n { id: \"talonic-submit-agent-task\", label: \"talonic_submit_agent_task\" },\n { id: \"talonic-list-specs\", label: \"talonic_list_specs\" },\n { id: \"talonic-get-spec\", label: \"talonic_get_spec\" },\n { id: \"talonic-run-spec\", label: \"talonic_run_spec\" },\n { id: \"talonic-get-run\", label: \"talonic_get_run\" },\n { id: \"talonic-get-run-results\", label: \"talonic_get_run_results\" },\n { id: \"talonic-ask\", label: \"talonic_ask\" },\n { id: \"talonic-get-answer\", label: \"talonic_get_answer\" },\n { id: \"talonic-list-decision-tasks\", label: \"talonic_list_decision_tasks\" },\n { id: \"talonic-claim-decision-task\", label: \"talonic_claim_decision_task\" },\n { id: \"talonic-read-decision-package\", label: \"talonic_read_decision_package\" },\n { id: \"talonic-heartbeat-decision-task\", label: \"talonic_heartbeat_decision_task\" },\n { id: \"talonic-submit-decision-task\", label: \"talonic_submit_decision_task\" },\n { id: \"talonic-release-decision-task\", label: \"talonic_release_decision_task\" },\n { id: \"talonic-fail-decision-task\", label: \"talonic_fail_decision_task\" },\n { id: \"talonic-process-list\", label: \"talonic_process_list\" },\n { id: \"talonic-process-run\", label: \"talonic_process_run\" },\n { id: \"talonic-process-status\", label: \"talonic_process_status\" },\n { id: \"talonic-process-runs\", label: \"talonic_process_runs\" },\n { id: \"talonic-process-waiting-for-me\", label: \"talonic_process_waiting_for_me\" },\n { id: \"talonic-process-sign\", label: \"talonic_process_sign\" },\n { id: \"talonic-process-get\", label: \"talonic_process_get\" },\n { id: \"talonic-process-create\", label: \"talonic_process_create\" },\n { id: \"talonic-process-change\", label: \"talonic_process_change\" },\n { id: \"talonic-process-check\", label: \"talonic_process_check\" },\n { id: \"talonic-process-test-run\", label: \"talonic_process_test_run\" },\n { id: \"talonic-process-publish\", label: \"talonic_process_publish\" },\n { id: \"talonic-process-versions\", label: \"talonic_process_versions\" },\n { id: \"talonic-process-rollback\", label: \"talonic_process_rollback\" },\n { id: \"talonic-process-delete\", label: \"talonic_process_delete\" },\n { id: \"talonic-process-item\", label: \"talonic_process_item\" },\n { id: \"talonic-process-retry\", label: \"talonic_process_retry\" },\n { id: \"talonic-process-send-back\", label: \"talonic_process_send_back\" },\n { id: \"talonic-process-setup\", label: \"talonic_process_setup\" },\n { id: \"talonic-process-mailbox-ownership\", label: \"talonic_process_mailbox_ownership\" },\n { id: \"talonic-process-address\", label: \"talonic_process_address\" },\n ],\n },\n {\n id: \"tool-groups\",\n label: \"App and Admin Tools\",\n children: [\n { id: \"data-management-tools\", label: \"Documents, extractions, jobs and schemas\" },\n { id: \"events-tools\", label: \"Events\" },\n { id: \"aggregate-tools\", label: \"Workspace metrics\" },\n { id: \"admin-tools\", label: \"Workspace administration\" },\n { id: \"contract-desk-tools\", label: \"Contract Desk\" },\n { id: \"transport-folders-tools\", label: \"Transport Folders\" },\n { id: \"compliance-tools\", label: \"Compliance\" },\n { id: \"money-found-tools\", label: \"Money Found\" },\n { id: \"customs-declaration-tools\", label: \"Customs declaration\" },\n ],\n },\n {\n id: \"features\",\n label: \"Features\",\n children: [\n { id: \"drag-and-drop\", label: \"Drag & Drop Files\" },\n { id: \"how-it-works\", label: \"How It Works\" },\n ],\n },\n {\n id: \"configuration\",\n label: \"Configuration\",\n children: [{ id: \"env-variables\", label: \"Environment Variables\" }],\n },\n {\n id: \"troubleshooting\",\n label: \"Troubleshooting\",\n children: [\n { id: \"common-issues\", label: \"Common Issues\" },\n { id: \"known-limitations\", label: \"Known Limitations\" },\n { id: \"upgrading\", label: \"Upgrading\" },\n ],\n },\n]\n","// ---------------------------------------------------------------------------\n// Pure functions that derive breadcrumbs and prev/next from nav structure.\n// ---------------------------------------------------------------------------\n\ninterface NavChild {\n id: string\n label: string\n}\n\ninterface NavGroup {\n id: string\n label: string\n children?: NavChild[]\n}\n\nexport function deriveBreadcrumbs(\n sections: NavGroup[],\n leafId: string,\n): { label: string; slug: string }[] {\n const root = { label: \"MCP Server\", slug: \"mcp\" }\n\n for (const group of sections) {\n const child = group.children?.find((c) => c.id === leafId)\n if (child) {\n return [root, { label: group.label, slug: group.id }, { label: child.label, slug: child.id }]\n }\n }\n\n const topLevel = sections.find((s) => s.id === leafId)\n if (topLevel) {\n return [root, { label: topLevel.label, slug: topLevel.id }]\n }\n\n return [root]\n}\n\nexport function derivePrevNext(\n sections: NavGroup[],\n leafId: string,\n): { prev: { slug: string; label: string } | null; next: { slug: string; label: string } | null } {\n const flat: NavChild[] = sections.flatMap((s) => s.children ?? [{ id: s.id, label: s.label }])\n\n const idx = flat.findIndex((c) => c.id === leafId)\n if (idx === -1) return { prev: null, next: null }\n\n const prevItem = idx > 0 ? flat[idx - 1] : undefined\n const nextItem = idx < flat.length - 1 ? flat[idx + 1] : undefined\n\n return {\n prev: prevItem ? { slug: prevItem.id, label: prevItem.label } : null,\n next: nextItem ? { slug: nextItem.id, label: nextItem.label } : null,\n }\n}\n","import type { RawSection } from \"../types\"\n\nexport const sections: RawSection[] = [\n {\n slug: \"mcp-introduction\",\n parentSlug: \"overview\",\n title: \"Introduction\",\n seoTitle: \"Talonic MCP Server Introduction — Document Extraction\",\n description:\n \"Official Talonic MCP server for AI agents: extract structured, schema-validated JSON from any document via the Model Context Protocol, hosted or local.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Official Talonic MCP server. Lets AI agents extract structured, schema-validated data from any document via the [Model Context Protocol](https://modelcontextprotocol.io).\",\n },\n {\n type: \"paragraph\",\n text: \"The tool set covers the full document workflow: extraction (`talonic_extract`, `talonic_to_markdown`, `talonic_request_upload`), workspace retrieval (`talonic_search`, `talonic_filter`, `talonic_get_document`), schema management (`talonic_list_schemas`, `talonic_save_schema`), cost visibility (`talonic_get_balance`, `talonic_get_pricing`, `talonic_get_usage`), the Agent-task worklist (`talonic_list_agent_tasks` through `talonic_submit_agent_task`), the External-mode decision-task protocol for Talonic Apps (`talonic_list_decision_tasks` through `talonic_fail_decision_task`), Spec runs (`talonic_run_spec`, `talonic_get_run`, `talonic_get_run_results`), and cited question answering over the workspace (`talonic_ask`, `talonic_get_answer`), plus the `talonic://schemas` and `talonic://webhooks/reference` resources.\",\n },\n {\n type: \"paragraph\",\n text: \"Listed on the [official MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.talonicdev/talonic-mcp`. Verified end-to-end against production.\",\n },\n {\n type: \"paragraph\",\n text: \"The MCP server acts as a bridge between your AI agent and the Talonic document extraction API. Instead of writing custom HTTP integration code, agent developers get a standards-compliant MCP interface that any compatible client can discover and invoke automatically. The server handles authentication, file upload serialisation, retry logic, and structured error formatting so the agent can focus on the user's task.\",\n },\n {\n type: \"paragraph\",\n text: \"Installation takes under a minute. The recommended path is the hosted endpoint at `mcp.talonic.com` connected via Claude.ai's custom-connector flow, which uses OAuth 2.1 with PKCE and Dynamic Client Registration so no API key is pasted into config. For IDE-style clients, the local `npx` option uses a `TALONIC_API_KEY` environment variable and runs on any machine with Node.js 18 or later. A third path keeps the hosted endpoint but supplies a `Bearer tlnc_…` header for clients that do not yet handle the OAuth handshake.\",\n },\n {\n type: \"paragraph\",\n text: \"A typical agent conversation with Talonic starts when the user drops a document into the chat or asks the agent to process a file from a URL. The agent calls `talonic_extract` with a schema describing the fields to pull out, and receives structured JSON within seconds. From there, the agent can present the data, answer follow-up questions, or feed the extracted values into downstream workflows — all without the user leaving the conversation.\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Quick-start: extract an invoice in one tool call\",\n code: `{\n \"file_url\": \"https://example.com/invoice.pdf\",\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"vendor\": { \"type\": \"string\" },\n \"total\": { \"type\": \"number\" },\n \"due_date\": { \"type\": \"string\", \"format\": \"date\" }\n },\n \"required\": [\"vendor\", \"total\"]\n }\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Response: structured data with confidence\",\n code: `{\n \"status\": \"complete\",\n \"data\": {\n \"vendor\": \"Acme Corp\",\n \"total\": 2450.00,\n \"due_date\": \"2026-07-01\"\n },\n \"confidence\": {\n \"overall\": 0.96,\n \"fields\": { \"vendor\": 0.98, \"total\": 0.99, \"due_date\": 0.94 }\n }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"The MCP server supports every major AI coding and chat client: Claude Desktop, Cursor, Cline, Continue, and Cowork. Each client has its own config format, but the setup pattern is the same — add a JSON entry pointing to the Talonic server (hosted URL or local npx command), supply your API key, and restart the client. The server then registers its tools and resources, which the agent can discover and invoke automatically during conversations.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"The MCP server is open-source and published to npm as `@talonic/mcp`. You can inspect the source, report issues, and contribute on GitHub. Building a Node application instead of wiring up an agent? The [Talonic Node SDK](https://talonic.com/docs/sdk) exposes the same extraction API as a typed client library.\",\n },\n ],\n related: [\n { label: \"Why Use This\", slug: \"why-mcp\" },\n { label: \"Claude Desktop\", slug: \"claude-desktop\" },\n { label: \"Install Overview\", slug: \"install-overview\" },\n ],\n faq: [\n {\n question: \"What is the Talonic MCP server?\",\n answer:\n \"An official MCP server that gives AI agents (Claude Desktop, Cursor, Cline, etc.) the ability to extract structured data from documents using the Model Context Protocol.\",\n },\n {\n question: \"Is the Talonic MCP server on the official MCP Registry?\",\n answer:\n \"Yes. It is listed as io.github.talonicdev/talonic-mcp on registry.modelcontextprotocol.io, maintained by Anthropic and the MCP steering group.\",\n },\n {\n question: \"Do I need to install anything to use the Talonic MCP server?\",\n answer:\n \"Not necessarily. The hosted server at mcp.talonic.com requires zero local installation — just a URL and API key in your MCP client config. Alternatively, the local npx option requires Node.js 18+.\",\n },\n {\n question: \"What document types does the Talonic MCP server support?\",\n answer:\n \"The server supports PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. Documents can be invoices, contracts, receipts, forms, certificates, or any structured or semi-structured document. The extraction pipeline handles OCR, layout analysis, and field extraction server-side.\",\n },\n {\n question: \"What tools does the Talonic MCP server expose?\",\n answer:\n \"Tools for every step of the document workflow: extraction (talonic_extract, talonic_to_markdown, talonic_request_upload), retrieval (talonic_search, talonic_filter, talonic_get_document), schema management (talonic_list_schemas, talonic_save_schema), cost visibility (talonic_get_balance, talonic_get_pricing, talonic_get_usage), and the Agent-task worklist, plus the talonic://schemas and talonic://webhooks/reference resources. See the Tool Reference for the full, current list.\",\n },\n ],\n mentions: [\"MCP\", \"Model Context Protocol\", \"AI agents\", \"document extraction\"],\n },\n {\n slug: \"why-mcp\",\n parentSlug: \"overview\",\n title: \"Why Use This\",\n seoTitle: \"Why Use the Talonic MCP Server Instead of OCR + LLM\",\n description:\n \"Why AI agents get better document extraction from the Talonic MCP server than raw OCR plus LLM calls: schema validation, confidence scores, stable IDs.\",\n content: [\n {\n type: \"paragraph\",\n text: \"When an agent needs to pull structured data out of a PDF, scan, image, or messy document, the usual approach is raw OCR plus an LLM call. Results are unreliable; tables get mangled, dates get misread, totals drift.\",\n },\n {\n type: \"paragraph\",\n text: \"With this MCP server installed, the agent has a `talonic_extract` tool that returns schema-validated JSON with per-field confidence scores, a detected document type, and stable IDs for follow-up calls. Companion tools cover the rest of the workflow: searching the workspace, filtering by extracted field values, fetching a document's metadata, getting OCR markdown, listing and saving schemas, requesting browser-handoff uploads, processing Agent-stage tasks, and reading the workspace credit balance, pricing catalog, and usage breakdown for budget-aware behaviour.\",\n },\n {\n type: \"paragraph\",\n text: \"The extraction pipeline runs server-side on Talonic's infrastructure, which means the agent does not need to manage OCR libraries, prompt engineering for data extraction, or post-processing heuristics. A single tool call replaces what would otherwise be a multi-step chain of OCR, schema validation, and confidence estimation inside the agent's own context window.\",\n },\n {\n type: \"paragraph\",\n text: \"Because each extraction returns **per-field confidence scores**, agents can make informed decisions about when to trust extracted values and when to escalate to the user for review. This is especially valuable for high-stakes fields like financial amounts, legal terms, and dates where silent errors are costly.\",\n },\n {\n type: \"paragraph\",\n text: \"Integration effort is minimal compared to building a custom extraction pipeline. A raw OCR + LLM approach requires choosing an OCR library, writing prompts for each document type, parsing unstructured LLM output into typed fields, implementing confidence estimation, and handling edge cases like rotated pages, multi-column layouts, and mixed languages. The Talonic MCP server replaces all of that with a single tool call that returns clean, validated JSON.\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Agent conversation: comparing raw OCR vs Talonic\",\n code: `// Without Talonic — agent must chain multiple steps:\n// 1. OCR the PDF → raw text with layout errors\n// 2. Prompt LLM to extract fields → unstructured output\n// 3. Parse LLM output → fragile regex/JSON parsing\n// 4. Validate types → manual type coercion\n// 5. Estimate confidence → no signal available\n\n// With Talonic — single tool call:\n{\n \"file_url\": \"https://example.com/contract.pdf\",\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"parties\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } },\n \"effective_date\": { \"type\": \"string\", \"format\": \"date\" },\n \"term_months\": { \"type\": \"integer\" },\n \"governing_law\": { \"type\": \"string\" }\n }\n }\n}\n// → Returns validated JSON + confidence scores in ~3 seconds`,\n },\n {\n type: \"paragraph\",\n text: \"The workspace model is another key advantage. Every document processed through the MCP server is stored in your Talonic workspace with a stable `document_id`. This means an agent can extract an invoice today, and a week later the user can ask 'what was the total on that Meridian invoice?' — the agent searches the workspace, finds the document, and retrieves the previously extracted data without re-uploading or re-processing. This persistent workspace turns the MCP server from a one-shot tool into a long-term document intelligence layer.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Every document processed through the MCP server is stored in your Talonic workspace with a stable `document_id`. Subsequent operations — re-extraction with a different schema, markdown retrieval, metadata lookup — reuse that ID without re-uploading the file, saving both time and credits.\",\n },\n ],\n related: [\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n { label: \"Get an API Key\", slug: \"get-api-key\" },\n ],\n faq: [\n {\n question: \"Why use Talonic MCP instead of OCR + LLM?\",\n answer:\n \"Raw OCR + LLM calls produce unreliable results — mangled tables, misread dates, drifting totals. Talonic returns schema-validated JSON with per-field confidence scores and stable IDs for follow-up calls.\",\n },\n {\n question: \"Does the MCP server handle retries and errors automatically?\",\n answer:\n \"Yes. The server retries on transient failures (429 rate limits, 5xx server errors) and returns structured error messages the agent can reason about, rather than raw HTTP status codes.\",\n },\n {\n question: \"Can I re-extract a document with a different schema without re-uploading?\",\n answer:\n \"Yes. Pass the document_id from a previous extraction to talonic_extract with a new schema. The server reuses the already-ingested document, which is faster and costs fewer credits.\",\n },\n {\n question: \"What confidence scores does Talonic provide?\",\n answer:\n \"Every extraction includes confidence.overall (0 to 1) and confidence.fields with a per-field score. Agents can use these to decide when to trust values automatically and when to escalate to the user for review. Scores above 0.9 are highly reliable; below 0.7 warrants human verification.\",\n },\n {\n question: \"How does Talonic handle multi-language documents?\",\n answer:\n \"The extraction pipeline auto-detects the document language and returns it in the language_detected field. OCR and field extraction work across Latin, Cyrillic, CJK, and Arabic scripts. No language configuration is needed — the server handles detection and adaptation automatically.\",\n },\n ],\n mentions: [\"OCR\", \"schema-validated\", \"confidence scores\", \"structured data\"],\n },\n {\n slug: \"agent-decision-guide\",\n parentSlug: \"overview\",\n title: \"Agent Decision Guide\",\n seoTitle: \"Agent Decision Guide — Choosing the Right Talonic Tool\",\n description:\n \"How an AI agent should choose between Talonic MCP tools, handle low-confidence extractions, and avoid wasted calls that cost credits or repeat work done.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Use this guide to pick the right Talonic tool for the user's request. Match the user's intent to one of the scenarios below before calling a tool. The wrong tool returns the wrong data, costs unnecessary credits, and slows the conversation.\",\n },\n {\n type: \"paragraph\",\n text: \"Talonic's public tools are designed for distinct use cases with minimal overlap. **`talonic_extract`** is for structured field extraction with a schema, **`talonic_request_upload`** hands the user a browser link for files too large to pass through a hosted connector (Claude.ai), **`talonic_to_markdown`** is for full-text conversion, **`talonic_search`** handles fuzzy discovery, **`talonic_filter`** handles precise field-value queries, **`talonic_get_document`** returns metadata, the schema tools (**`talonic_list_schemas`**, **`talonic_save_schema`**) manage reusable extraction templates, and the billing tools (**`talonic_get_balance`** for the remaining balance, **`talonic_get_pricing`** for per-unit rates, **`talonic_get_usage`** for per-function spend) let the agent stay budget-aware before and after large batches.\",\n },\n {\n type: \"paragraph\",\n text: \"A well-built agent should check conversation history before making any tool call. If the user already extracted data from a document in an earlier turn, re-use that result rather than calling `talonic_extract` again. Repeat calls cost credits and add latency without providing new information.\",\n },\n {\n type: \"paragraph\",\n text: \"When in doubt about which tool to use, consider the user's underlying intent: do they want specific field values (extract), the full document text (to_markdown), to find documents (search/filter), or to manage extraction templates (schema tools)? This mental model covers every scenario.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"decide-extract-vs-markdown\",\n text: \"User has a file (or just dropped one in)\",\n },\n {\n type: \"list\",\n items: [\n \"**They want specific fields**: vendor, total, dates, parties, line items. Use `talonic_extract` with a `schema` (full JSON Schema is most reliable) or a `schema_id` from `talonic_list_schemas`. Don't know the fields yet? Set `auto_schema: true` for open capture — Talonic discovers them and returns a suggested schema to refine.\",\n \"**They want the full text content**, e.g. for summarisation, translation, or general analysis. Use `talonic_to_markdown`. It returns OCR-converted markdown without forcing a schema.\",\n \"**They want both**: extract once with a schema (which also yields markdown when `include_markdown: true` is set), avoiding two uploads.\",\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"decide-find-existing\",\n text: \"User is asking about existing documents in the workspace\",\n },\n {\n type: \"list\",\n items: [\n \"**Conceptual or fuzzy** (e.g. 'do I have any docs about indemnification?', 'find Acme contracts'): use `talonic_search`.\",\n \"**Value-based on extracted fields** (e.g. 'invoices over 1000 EUR', 'contracts expiring before 2026-12-31'): use `talonic_filter`. Use `is_not_empty` for presence checks and `is_empty` for absence checks.\",\n \"**They reference a specific document_id**: use `talonic_get_document` for metadata, `talonic_to_markdown` (with `document_id`) for text, or `talonic_extract` (with `document_id`) to re-extract with a new schema. Re-using a document_id is cheaper than re-uploading.\",\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"decide-schema-mgmt\",\n text: \"User is working with schemas\",\n },\n {\n type: \"list\",\n items: [\n \"**One-off extraction**: pass the schema inline on `talonic_extract`. Do not save it.\",\n \"**The same schema across many documents**: call `talonic_save_schema` once, then pass the returned id (UUID or `SCH-XXXXXXXX`) as `schema_id` on every future `talonic_extract` call. Either id form is accepted.\",\n \"**Discovering existing schemas** before designing a new one: call `talonic_list_schemas`. The `talonic://schemas` resource is the same list rendered as a browseable resource for clients that support it.\",\n \"**Avoid clutter**: do not save a schema until the user has reviewed and confirmed the design. Iterate inline first.\",\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"decide-confidence\",\n text: \"Handling confidence and human review\",\n },\n {\n type: \"paragraph\",\n text: \"Every `talonic_extract` response includes `confidence.overall` (0..1) and `confidence.fields` (per-field 0..1). Use these to decide when to escalate.\",\n },\n {\n type: \"list\",\n items: [\n \"**`confidence.overall` below ~0.7**: tell the user the extraction may be unreliable, show the top low-confidence fields, and ask them to confirm before taking any downstream action (payment, contract execution, data import).\",\n \"**Per-field confidence below ~0.7**: surface those fields with a 'needs review' marker. Do not silently use them in calculations or external API calls.\",\n \"**Critical fields at any confidence**: financial amounts, legal terms, names, dates. Always confirm with the user before acting on them, even at high confidence.\",\n \"**Provenance is not surfaced in v0.1.** Per-field source page or bounding box is not in the response. If the user needs to verify a specific field against the source, send them to the document via `links.dashboard` from the response.\",\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"decide-not-call\",\n text: \"When not to call Talonic\",\n },\n {\n type: \"list\",\n items: [\n \"**The user's question is general knowledge or conversation.** Do not pre-emptively extract or search.\",\n \"**The needed data is already in conversation history** from a previous tool call. Re-use it. Repeat calls cost credits and slow the response.\",\n \"**The user wants to discuss or revise** an extraction you already produced. Reason over the previous result instead of re-extracting.\",\n \"**Schema design iteration**. Iterate the schema with the user via `talonic_extract` with an inline schema; only call `talonic_save_schema` once they confirm.\",\n \"**Cost questions have dedicated read-only tools.** If the user asks 'how much will this cost', call `talonic_get_pricing`; for 'how many credits do I have left', call `talonic_get_balance`; for 'where did my credits go', call `talonic_get_usage`. Do not guess numbers or send the user to the dashboard for questions these tools answer.\",\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Worked example: 'invoices over 1000 EUR' is a filter, not an extract\",\n code: `// User: \"Which of my invoices are over 1000 EUR?\"\n// The documents are already extracted — do NOT re-extract. Filter instead:\n// talonic_filter({\n// \"conditions\": [\n// { \"field\": \"total\", \"op\": \"gt\", \"value\": 1000 }\n// ]\n// })\n// → matching documents with their extracted field values, zero credits spent\n// on re-processing. Only fall back to talonic_search for conceptual queries\n// like \"the contract about the Berlin office lease\".`,\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Rule of thumb: read-only tools (`talonic_search`, `talonic_filter`, `talonic_get_document`, `talonic_list_schemas`, `talonic_get_balance`, `talonic_get_pricing`, `talonic_get_usage`) are safe to call whenever they help. Credit-consuming or write tools (`talonic_extract`, `talonic_to_markdown` on new files, `talonic_save_schema`) deserve a moment of doubt: is the answer already available without them?\",\n },\n ],\n related: [\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n { label: \"talonic_filter\", slug: \"talonic-filter\" },\n { label: \"talonic_search\", slug: \"talonic-search\" },\n { label: \"Known Limitations\", slug: \"known-limitations\" },\n ],\n faq: [\n {\n question: \"When should an agent use talonic_extract vs talonic_to_markdown?\",\n answer:\n \"Use talonic_extract when the user wants specific structured fields (with a schema). Use talonic_to_markdown when the user wants the full text content for summarisation or analysis without a schema.\",\n },\n {\n question: \"When should an agent use talonic_search vs talonic_filter?\",\n answer:\n \"Use talonic_search for conceptual or fuzzy queries across the workspace. Use talonic_filter when the user wants documents matching specific structured field values like 'invoices over 1000 EUR'.\",\n },\n {\n question: \"How should an agent handle low-confidence extractions?\",\n answer:\n \"Treat confidence below ~0.7 as needing human review. Surface low-confidence fields explicitly and confirm critical fields (amounts, dates, names) with the user before any downstream action.\",\n },\n ],\n mentions: [\"decision guide\", \"agent\", \"tool selection\", \"confidence\", \"human review\", \"cost\"],\n },\n {\n slug: \"get-api-key\",\n parentSlug: \"overview\",\n title: \"Get an API Key\",\n seoTitle: \"Get a Talonic API Key for the MCP Server in 30 Seconds\",\n description:\n \"Create a free Talonic API key at app.talonic.com in about 30 seconds, then drop the tlnc_ value into any MCP client config. Each key has its own workspace.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Each user runs against their own isolated Talonic workspace. Your documents and schemas are private to you.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"If you are connecting from Claude.ai's custom-connector flow, you can skip the API-key steps below. The connector launches an OAuth 2.1 sign-in to `app.talonic.com` and the MCP server then uses a short-lived bearer token on your behalf. Get an API key when you want to install locally via `npx`, drive the hosted endpoint from a custom-header client, or use the Node SDK.\",\n },\n {\n type: \"list\",\n ordered: true,\n items: [\n \"Sign up at [app.talonic.com](https://app.talonic.com). Free tier: 50 extractions per day, no credit card.\",\n \"Settings → API Keys → Create New Key.\",\n \"Copy the `tlnc_` value into your MCP client config (snippets below).\",\n ],\n },\n {\n type: \"paragraph\",\n text: \"The API key authenticates every tool call the MCP server makes on your behalf. It is passed as a `TALONIC_API_KEY` environment variable in the local `npx` setup, or as a `Bearer` token in the `Authorization` header for the hosted server. The key is never sent to the AI agent itself — it stays within the MCP server process.\",\n },\n {\n type: \"paragraph\",\n text: \"Keep your API key private. Do not commit it to version control or share it in public MCP config examples. If a key is compromised, revoke it immediately in the Talonic dashboard under Settings → API Keys and generate a new one.\",\n },\n {\n type: \"paragraph\",\n text: \"The free tier includes 50 extractions per day, which is enough for development and testing. For production workloads or higher volume, upgrade your plan in the Talonic dashboard. All plans share the same API — the key determines your rate limits and quota.\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Local npx config with API key\",\n code: `{\n \"mcpServers\": {\n \"talonic\": {\n \"command\": \"npx\",\n \"args\": [\"-y\", \"@talonic/mcp@latest\"],\n \"env\": {\n \"TALONIC_API_KEY\": \"tlnc_your_key_here\"\n }\n }\n }\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Hosted config with API key as Bearer token\",\n code: `{\n \"mcpServers\": {\n \"talonic\": {\n \"url\": \"https://mcp.talonic.com/mcp\",\n \"headers\": {\n \"Authorization\": \"Bearer tlnc_your_key_here\"\n }\n }\n }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"After adding your API key to the config, verify the connection by asking your agent to call `talonic_list_schemas`. If the key is valid, the tool returns your saved schemas (or an empty list if you have not saved any yet). If the key is invalid or missing, the server returns a clear authentication error that tells the agent the key needs to be checked. This is the fastest way to confirm your setup is working end-to-end.\",\n },\n {\n type: \"paragraph\",\n text: \"Each API key is scoped to a single workspace. If you work across multiple Talonic workspaces — for example, separate environments for development and production — you will need a different API key for each. You can create multiple keys within the same workspace for different team members or applications, and revoke them independently without affecting other keys.\",\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"Never hardcode your `tlnc_` key in source code or share it in screenshots. Use environment variables or your MCP client's config file, which is typically stored in a user-specific directory.\",\n },\n ],\n related: [\n { label: \"Claude Desktop\", slug: \"claude-desktop\" },\n { label: \"Install Overview\", slug: \"install-overview\" },\n ],\n faq: [\n {\n question: \"How do I get a Talonic API key for MCP?\",\n answer:\n \"Sign up at app.talonic.com (free, no credit card), go to Settings > API Keys > Create New Key, and copy the tlnc_ value into your MCP client config.\",\n },\n {\n question: \"Is the free tier enough for development?\",\n answer:\n \"Yes. The free tier includes 50 extractions per day with no credit card required, which is sufficient for development and testing. Upgrade in the dashboard for production workloads.\",\n },\n {\n question: \"What should I do if my API key is compromised?\",\n answer:\n \"Revoke it immediately in the Talonic dashboard under Settings > API Keys, then generate a new one. Update your MCP client config with the new key and restart the client.\",\n },\n {\n question: \"Can I use the same API key across multiple MCP clients?\",\n answer:\n \"Yes. The same tlnc_ key works in Claude Desktop, Cursor, Cline, Continue, Cowork, or any other MCP client simultaneously. The key is tied to your workspace, not to a specific client. Rate limits apply per-key across all clients.\",\n },\n {\n question: \"How do I verify my API key is working?\",\n answer:\n \"After configuring your MCP client, ask the agent to call talonic_list_schemas. A successful response (even an empty list) confirms the key is valid and the server is connected. An authentication error means the key is missing, malformed, or revoked.\",\n },\n ],\n mentions: [\"API key\", \"tlnc_\", \"free tier\"],\n },\n]\n","import type { RawSection } from \"../types\"\n\nconst MCP_HOSTED_SNIPPET = `{\n \"mcpServers\": {\n \"talonic\": {\n \"url\": \"https://mcp.talonic.com/mcp\",\n \"headers\": {\n \"Authorization\": \"Bearer tlnc_your_key_here\"\n }\n }\n }\n}`\n\nconst MCP_CONFIG_SNIPPET = `{\n \"mcpServers\": {\n \"talonic\": {\n \"command\": \"npx\",\n \"args\": [\"-y\", \"@talonic/mcp@latest\"],\n \"env\": {\n \"TALONIC_API_KEY\": \"tlnc_your_key_here\"\n }\n }\n }\n}`\n\nexport const sections: RawSection[] = [\n {\n slug: \"install-overview\",\n parentSlug: \"install\",\n title: \"Install Overview\",\n seoTitle: \"Install the Talonic MCP Server — Hosted or Local npx\",\n description:\n \"Install the Talonic MCP server two ways: the hosted endpoint at mcp.talonic.com with OAuth or Bearer auth, or a one-line local npx run for stdio clients.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Three ways to connect. The recommended path for Claude.ai users is the hosted MCP via the **OAuth connector flow**: paste one URL into Claude.ai's connector settings, sign in with your Talonic account, approve the consent screen. No API key in your config, ever. For IDE-style clients (Cursor, Cline, Continue, Cowork) and Claude Desktop, the local `npx` install is the canonical path. A third hosted option, with the Talonic API key in an `Authorization` header, exists for clients that support custom headers on remote MCP servers.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"hosted-claude-ai\",\n text: \"Hosted via Claude.ai connector (OAuth, recommended)\",\n },\n {\n type: \"paragraph\",\n text: \"Claude.ai's `Add custom connector` flow does the OAuth 2.1 handshake for you. The MCP server lives at `https://mcp.talonic.com/mcp`; Claude.ai discovers the authorization server, registers itself dynamically (RFC 7591), and runs the PKCE authorization-code flow. The resulting access token is stored by Claude.ai and refreshed automatically (1-hour access token, 30-day refresh).\",\n },\n {\n type: \"list\",\n ordered: true,\n items: [\n \"Open `https://claude.ai/settings/connectors`.\",\n \"Click **Add custom connector**.\",\n \"URL: `https://mcp.talonic.com/mcp` — no query string, no headers.\",\n \"Click **Connect**. You are redirected to Talonic to sign in.\",\n \"Sign in with Google, Microsoft, or your company SSO.\",\n \"Approve the consent screen. The requested scopes are `extract:write`, `documents:read`, `schemas:read`, and `apps:decide` (the decision-task tools for External-mode Apps). Connectors added before `apps:decide` existed keep working; the seven decision tools show as not invocable until you remove and re-add the connector. Pick a workspace if you have multiple.\",\n \"You are returned to Claude.ai with the connector live. The full Talonic tool set is available in any new conversation.\",\n ],\n },\n {\n type: \"paragraph\",\n text: \"No API key appears in the connector config or in any URL the browser navigates to. To revoke access, remove the connector in Claude.ai or revoke the OAuth client from your Talonic dashboard. Your tools and tokens are scoped to the workspace you picked at consent time.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"local-npx\",\n text: \"Local stdio (npx)\",\n },\n {\n type: \"paragraph\",\n text: \"Recommended for IDE-style clients (Cursor, Cline, Continue, Cowork) and Claude Desktop, where the MCP host spawns the server as a local child process. Requires Node.js 18+. Your API key lives in the client's `env` block.\",\n },\n {\n type: \"code\",\n language: \"jsonc\",\n title: \"Local config\",\n code: `{\n \"command\": \"npx\",\n \"args\": [\"-y\", \"@talonic/mcp@latest\"],\n \"env\": { \"TALONIC_API_KEY\": \"tlnc_...\" }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"The `-y` flag skips the npm install prompt. Pinning to `@latest` means new versions are picked up on the next client restart. For production deployments and CI, pin to a specific version (e.g. `@talonic/mcp@0.1.27`) so a future release cannot silently change tool descriptions, validation rules, or response shapes.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"hosted-bearer\",\n text: \"Hosted with a Bearer header (custom-header clients)\",\n },\n {\n type: \"paragraph\",\n text: \"For MCP clients that support remote servers with custom headers (mcp-inspector, custom integrations), connect to the hosted endpoint with the API key in an `Authorization` header. Claude.ai's connector UI does not currently support custom headers, which is why the OAuth flow above is the recommended path for Claude.ai users.\",\n },\n {\n type: \"code\",\n language: \"jsonc\",\n title: \"Hosted config (custom-header clients)\",\n code: `{\n \"url\": \"https://mcp.talonic.com/mcp\",\n \"headers\": { \"Authorization\": \"Bearer tlnc_...\" }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"All three install paths expose the same public tool set and two resources. The hosted server runs the latest version of `@talonic/mcp` automatically; the local `npx` install picks up the latest version on next client restart when pinned to `@latest`.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"verify-install\",\n text: \"Verify the connection\",\n },\n {\n type: \"paragraph\",\n text: \"After adding the config and restarting your MCP client, verify the connection by asking the agent to list your schemas. This is a lightweight read-only call that confirms the API key is valid and the server is reachable. If the call succeeds, the full tool set is ready to use.\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Verification: ask the agent to call talonic_list_schemas\",\n code: `// Agent sends:\n{ }\n\n// Server responds (empty workspace):\n{\n \"schemas\": []\n}\n\n// Server responds (workspace with saved schemas):\n{\n \"schemas\": [\n {\n \"id\": \"sch_7a1b...\",\n \"short_id\": \"SCH-A1B2C3D4\",\n \"name\": \"Standard Invoice\",\n \"field_count\": 6\n }\n ]\n}`,\n },\n {\n type: \"paragraph\",\n text: \"If the verification fails, check three things in order: (1) your JSON config is syntactically valid — a missing comma or bracket is the most common cause, (2) the API key starts with `tlnc_` and has not been revoked, and (3) you fully restarted the MCP client after editing the config. For the local npx option, you can also test the server standalone by running `npx -y @talonic/mcp@latest --version` in a terminal to confirm it installs and prints a version number.\",\n },\n {\n type: \"paragraph\",\n text: \"The hosted and local options can be swapped at any time by editing your config. Some developers start with the hosted option for quick setup and switch to local npx when they need offline access or want to inspect server logs. The tools, parameters, and responses are identical regardless of which option you choose, so no agent-side changes are needed when switching.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"If you are behind a corporate proxy or firewall that blocks outbound HTTPS to `mcp.talonic.com`, use the local `npx` option and configure your proxy via standard `HTTPS_PROXY` environment variables.\",\n },\n ],\n related: [\n { label: \"Claude Desktop\", slug: \"claude-desktop\" },\n { label: \"Cursor\", slug: \"cursor\" },\n ],\n faq: [\n {\n question: \"How do I install the Talonic MCP server?\",\n answer:\n \"Use the hosted server at mcp.talonic.com/mcp — just set the URL and your API key in any MCP client config. No install needed. Alternatively, run locally via npx @talonic/mcp.\",\n },\n {\n question: \"What is the difference between hosted and local MCP server?\",\n answer:\n \"Both expose the same tools and resource. Hosted requires zero local dependencies and auto-updates. Local runs on your machine via npx and requires Node.js 18+. Latency is comparable since both call the same API.\",\n },\n {\n question: \"Do I need to update the MCP server manually?\",\n answer:\n \"With the hosted server, updates are automatic. With the local npx option, pinning to @latest means new versions are fetched on the next client restart.\",\n },\n {\n question: \"Can I switch between hosted and local without changing my workflow?\",\n answer:\n \"Yes. Both options expose identical tools, parameters, and responses. Edit the config to swap between hosted URL and local npx command, restart the client, and everything works the same. No agent-side or schema changes needed.\",\n },\n {\n question: \"What Node.js version do I need for the local option?\",\n answer:\n \"Node.js 18 or later. The npx command downloads and runs the MCP server package automatically. No global install is needed — npx handles it. Run node --version in a terminal to check your version.\",\n },\n ],\n mentions: [\"npx\", \"npm\", \"MCP client\", \"install\"],\n },\n {\n slug: \"claude-desktop\",\n parentSlug: \"install\",\n title: \"Claude Desktop\",\n seoTitle: \"Set Up Talonic MCP in Claude Desktop on macOS & Windows\",\n description:\n \"Configure the Talonic MCP server in Claude Desktop: edit claude_desktop_config.json on macOS or Windows, fully restart, and verify the tool set connects.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\\\\Claude\\\\claude_desktop_config.json` (Windows).\",\n },\n { type: \"heading\", level: 3, id: \"claude-desktop-hosted\", text: \"Hosted (recommended)\" },\n { type: \"code\", language: \"json\", code: MCP_HOSTED_SNIPPET },\n { type: \"heading\", level: 3, id: \"claude-desktop-local\", text: \"Local (npx)\" },\n { type: \"code\", language: \"json\", code: MCP_CONFIG_SNIPPET },\n {\n type: \"paragraph\",\n text: \"Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with the full Talonic tool set.\",\n },\n {\n type: \"paragraph\",\n text: \"Claude Desktop is the most popular MCP client for Talonic. It natively supports drag-and-drop file uploads, which pairs well with `talonic_extract` via the `file_data` parameter. When you drop a PDF into the chat, Claude automatically base64-encodes it and passes it to the MCP tool.\",\n },\n {\n type: \"paragraph\",\n text: \"After connecting, you can verify the setup by asking Claude to list your schemas (`talonic_list_schemas`) or extract data from a sample document. If the tools do not appear, check that your JSON is valid and the config file is in the correct directory for your operating system.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"claude-desktop-verify\",\n text: \"Verify the connection\",\n },\n {\n type: \"paragraph\",\n text: \"After restarting Claude Desktop, open a new conversation and ask Claude to list your schemas. A successful response confirms the MCP server is connected and your API key is valid. You should see the Talonic tools in the connected servers panel on the left side of the Claude Desktop window.\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Verification prompt and expected response\",\n code: `// Ask Claude: \"List my Talonic schemas\"\n// Claude calls talonic_list_schemas with: {}\n\n// Expected response (new workspace):\n{\n \"schemas\": []\n}\n\n// If the key is invalid, you will see:\n{\n \"error\": \"authentication_error\",\n \"message\": \"Invalid or revoked API key. Check TALONIC_API_KEY in your config.\"\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Claude Desktop is the recommended client for document-heavy workflows because of its native file handling. When you drop a file into the chat, Claude reads the file bytes, base64-encodes them, and passes them to `talonic_extract` or `talonic_to_markdown` via the `file_data` parameter. This means you can go from a physical document scan to structured JSON in under ten seconds — drop the file, Claude picks the right tool, and the extracted data appears in the conversation.\",\n },\n {\n type: \"paragraph\",\n text: \"For multi-document workflows, Claude Desktop maintains conversation context across tool calls. You can extract data from several invoices in sequence, and Claude remembers all previous results. Ask follow-up questions like 'which of those invoices had the highest total?' and Claude reasons over the extracted data without re-calling the tools. This makes Claude Desktop particularly effective for batch review and comparison tasks.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Claude Desktop also renders the `talonic://schemas` resource in its UI, letting you browse saved schemas without making a tool call.\",\n },\n ],\n related: [\n { label: \"Cursor\", slug: \"cursor\" },\n { label: \"Tool Reference\", slug: \"talonic-extract\" },\n ],\n faq: [\n {\n question: \"How do I add Talonic to Claude Desktop?\",\n answer:\n \"Edit claude_desktop_config.json, add the Talonic MCP server config with your API key, and fully restart Claude Desktop (Cmd+Q on macOS).\",\n },\n {\n question: \"Why don't Talonic tools appear after adding the config?\",\n answer:\n \"Make sure you fully restart Claude Desktop (Cmd+Q, not just close the window). Also verify your JSON syntax is valid and the config file is in the correct directory for your OS.\",\n },\n {\n question: \"Does Claude Desktop support drag-and-drop with Talonic?\",\n answer:\n \"Yes. Claude Desktop natively supports drag-and-drop file uploads. When you drop a PDF, Claude base64-encodes it and passes it to talonic_extract via the file_data parameter.\",\n },\n {\n question: \"Where is the Claude Desktop config file on macOS vs Windows?\",\n answer:\n \"On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows: %APPDATA%\\\\Claude\\\\claude_desktop_config.json. Create the file if it does not exist. The directory must already exist — Claude Desktop creates it on first launch.\",\n },\n {\n question: \"Can I use both hosted and local Talonic in Claude Desktop?\",\n answer:\n \"You can configure either option, but not both simultaneously under the same server name. Choose hosted for zero-dependency setup or local npx for offline access. Switch by editing the config and restarting Claude Desktop.\",\n },\n ],\n mentions: [\"Claude Desktop\", \"macOS\", \"Windows\"],\n },\n {\n slug: \"cursor\",\n parentSlug: \"install\",\n title: \"Cursor\",\n seoTitle: \"How to Set Up the Talonic MCP Server in the Cursor IDE\",\n description:\n \"Add the Talonic MCP server to Cursor via ~/.cursor/mcp.json, hosted or local npx, then extract structured data from files inside your project workspace.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Edit `~/.cursor/mcp.json` (or open Cursor settings → MCP → edit config):\",\n },\n { type: \"heading\", level: 3, id: \"cursor-hosted\", text: \"Hosted (recommended)\" },\n { type: \"code\", language: \"json\", code: MCP_HOSTED_SNIPPET },\n { type: \"heading\", level: 3, id: \"cursor-local\", text: \"Local (npx)\" },\n { type: \"code\", language: \"json\", code: MCP_CONFIG_SNIPPET },\n {\n type: \"paragraph\",\n text: \"After saving the config, restart Cursor or reload the window. The Talonic tools appear in the MCP tool list and can be invoked from Cursor's AI chat panel. Cursor's agent mode is particularly effective with Talonic because it can read local files from your project and pass them directly to `talonic_extract` via `file_path`.\",\n },\n {\n type: \"paragraph\",\n text: \"A common Cursor workflow is extracting data from documents within a codebase — for example, parsing specification PDFs, extracting configuration from scanned documents, or converting legacy documentation to structured data. The `file_path` input works directly with paths relative to your Cursor workspace.\",\n },\n {\n type: \"paragraph\",\n text: \"Cursor caches MCP tool descriptions between sessions. If you upgrade the MCP server and notice outdated tool descriptions, restart Cursor to force a refresh of the tool metadata.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"cursor-workflow-example\",\n text: \"Example: extracting from a project file\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Agent extracts data from a spec PDF in the workspace\",\n code: `// User: \"Extract the requirements from docs/product-spec.pdf\"\n// Cursor agent calls talonic_extract with:\n{\n \"file_path\": \"./docs/product-spec.pdf\",\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": { \"type\": \"string\" },\n \"requirements\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": { \"type\": \"string\" },\n \"description\": { \"type\": \"string\" },\n \"priority\": { \"type\": \"string\" }\n }\n }\n },\n \"deadline\": { \"type\": \"string\", \"format\": \"date\" }\n }\n }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Cursor's composer mode is particularly powerful with Talonic because the agent can extract data from a document and immediately use it to generate code. For example, you can ask Cursor to extract fields from an API specification PDF and then generate TypeScript interfaces matching the extracted schema. The agent chains `talonic_extract` with code generation in a single turn, eliminating manual data entry.\",\n },\n {\n type: \"paragraph\",\n text: \"When using the hosted MCP option in Cursor, the connection is established over HTTPS with no local process. This means Cursor starts faster and there is no Node.js dependency. For teams sharing a Cursor workspace configuration, the hosted option is simpler to standardise because every developer only needs an API key — no local Node.js version management needed.\",\n },\n {\n type: \"paragraph\",\n text: \"To verify the install, open Cursor Settings → MCP: the `talonic` entry should show a green status indicator and list its tools. If it stays red or shows no tools, check that `TALONIC_API_KEY` sits inside the `env` block of `~/.cursor/mcp.json` — Cursor launches MCP servers itself and does not inherit your shell profile — then run `npx -y @talonic/mcp` once in a terminal to surface install-time errors, and reload the window so Cursor re-reads the config.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Cursor supports both the hosted and local MCP options. The hosted option is simpler since Cursor can connect directly via HTTPS without spawning a local process.\",\n },\n ],\n related: [\n { label: \"Claude Desktop\", slug: \"claude-desktop\" },\n { label: \"Cline\", slug: \"cline\" },\n ],\n faq: [\n {\n question: \"How do I add Talonic MCP to Cursor?\",\n answer: \"Edit ~/.cursor/mcp.json and add the Talonic MCP server config with your API key.\",\n },\n {\n question: \"Can Cursor read local files for extraction?\",\n answer:\n \"Yes. Cursor's agent mode can read files from your project and pass them to talonic_extract via the file_path parameter, making it easy to extract data from documents within your codebase.\",\n },\n {\n question: \"Why are Talonic tool descriptions outdated in Cursor?\",\n answer:\n \"Cursor caches MCP tool descriptions between sessions. Restart Cursor to force a refresh after upgrading the MCP server.\",\n },\n {\n question: \"Can Cursor chain extraction with code generation?\",\n answer:\n \"Yes. In composer mode, Cursor can extract data from a document and immediately use the results to generate code — for example, extracting fields from an API spec PDF and generating TypeScript interfaces. The agent handles both steps in a single turn.\",\n },\n ],\n mentions: [\"Cursor\", \"IDE\"],\n },\n {\n slug: \"cline\",\n parentSlug: \"install\",\n title: \"Cline\",\n seoTitle: \"Set Up the Talonic MCP Server in Cline for VS Code\",\n description:\n \"Configure the Talonic MCP server in the Cline VS Code extension, with auto-approval rules letting read-only Talonic tools run without confirmation prompts.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Open the Cline panel → settings (gear icon) → MCP Servers → Edit. Save and restart the panel.\",\n },\n { type: \"heading\", level: 3, id: \"cline-hosted\", text: \"Hosted (recommended)\" },\n { type: \"code\", language: \"json\", code: MCP_HOSTED_SNIPPET },\n { type: \"heading\", level: 3, id: \"cline-local\", text: \"Local (npx)\" },\n { type: \"code\", language: \"json\", code: MCP_CONFIG_SNIPPET },\n {\n type: \"paragraph\",\n text: \"Cline runs inside VS Code and communicates with MCP servers over stdio (local) or HTTP (hosted). After adding the config, the Talonic tools become available in Cline's autonomous agent mode, where it can chain multiple tool calls without manual approval for each step.\",\n },\n {\n type: \"paragraph\",\n text: \"Cline's auto-approval feature works well with Talonic workflows. For example, the agent can search for documents, filter results, and extract data from the top match in a single turn. Configure Cline's auto-approve settings to control which Talonic tools run without confirmation.\",\n },\n {\n type: \"paragraph\",\n text: \"Because Cline operates within VS Code, it has access to your workspace file system. The `file_path` parameter on `talonic_extract` and `talonic_to_markdown` can reference any file in your open workspace, making it straightforward to process documents alongside code.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"cline-auto-approve-example\",\n text: \"Example: multi-step workflow with auto-approval\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Cline auto-approve config for Talonic read-only tools\",\n code: `// In Cline settings → Auto-approve, allow these tools:\n// - talonic_list_schemas (read-only, no cost)\n// - talonic_search (read-only, low cost)\n// - talonic_get_document (read-only, no cost)\n//\n// Keep these requiring approval:\n// - talonic_extract (costs credits)\n// - talonic_save_schema (writes to workspace)\n\n// Agent workflow in a single turn:\n// 1. talonic_search → finds matching documents (auto-approved)\n// 2. talonic_get_document → checks metadata (auto-approved)\n// 3. talonic_extract → extracts data (user approves)`,\n },\n {\n type: \"paragraph\",\n text: \"Cline's strength with Talonic is its autonomous agent mode combined with granular auto-approval. By auto-approving read-only tools like `talonic_search`, `talonic_list_schemas`, and `talonic_get_document`, the agent can explore the workspace freely and only pause for user confirmation on credit-consuming operations like `talonic_extract`. This creates a smooth experience where the agent does the discovery work autonomously and only asks for permission when it matters.\",\n },\n {\n type: \"paragraph\",\n text: \"For development teams using VS Code with Cline, the MCP server integrates naturally into code review workflows. A developer can ask the agent to extract data from a specification document, compare it against the implementation in the codebase, and flag any mismatches — all within the same VS Code window. The agent chains `talonic_extract` with file reads from the workspace to perform this cross-referencing automatically.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"If Cline shows the MCP server as disconnected after a VS Code update, re-open the Cline panel settings and verify the config is still present. Some VS Code updates can reset extension state.\",\n },\n ],\n related: [\n { label: \"Continue\", slug: \"continue\" },\n { label: \"Cursor\", slug: \"cursor\" },\n ],\n faq: [\n {\n question: \"How do I add Talonic MCP to Cline?\",\n answer:\n \"Open the Cline panel settings, go to MCP Servers, click Edit, and add the Talonic config entry.\",\n },\n {\n question: \"Does Cline support auto-approval for Talonic tools?\",\n answer:\n \"Yes. Configure Cline's auto-approve settings to allow specific Talonic tools to run without manual confirmation, enabling multi-step workflows in a single turn.\",\n },\n {\n question: \"Can Cline access local files for Talonic extraction?\",\n answer:\n \"Yes. Cline runs inside VS Code and has access to your workspace file system, so you can use file_path to reference any file in the open workspace.\",\n },\n {\n question: \"Which Talonic tools should I auto-approve in Cline?\",\n answer:\n \"Auto-approve read-only tools like talonic_list_schemas, talonic_search, and talonic_get_document. Keep talonic_extract and talonic_save_schema requiring manual approval since they consume credits or write to your workspace.\",\n },\n ],\n mentions: [\"Cline\", \"VS Code\"],\n },\n {\n slug: \"continue\",\n parentSlug: \"install\",\n title: \"Continue\",\n seoTitle: \"Set Up Talonic MCP in Continue for VS Code & JetBrains\",\n description:\n \"Add the Talonic MCP server to Continue's mcpServers array in ~/.continue/config.json — one config shared by VS Code and JetBrains — and verify it works.\",\n content: [\n { type: \"paragraph\", text: \"Edit `~/.continue/config.json`. Add to the `mcpServers` array:\" },\n { type: \"heading\", level: 3, id: \"continue-hosted\", text: \"Hosted (recommended)\" },\n {\n type: \"code\",\n language: \"json\",\n code: `{\n \"name\": \"talonic\",\n \"url\": \"https://mcp.talonic.com/mcp\",\n \"headers\": {\n \"Authorization\": \"Bearer tlnc_your_key_here\"\n }\n}`,\n },\n { type: \"heading\", level: 3, id: \"continue-local\", text: \"Local (npx)\" },\n {\n type: \"code\",\n language: \"json\",\n code: `{\n \"name\": \"talonic\",\n \"command\": \"npx\",\n \"args\": [\"-y\", \"@talonic/mcp@latest\"],\n \"env\": {\n \"TALONIC_API_KEY\": \"tlnc_your_key_here\"\n }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Continue works across both VS Code and JetBrains IDEs, making Talonic tools available regardless of your editor choice. The `mcpServers` array in Continue's config supports multiple MCP servers, so Talonic runs alongside any other MCP tools you have configured.\",\n },\n {\n type: \"paragraph\",\n text: \"After saving the config, reload your IDE window to pick up the changes. Continue discovers Talonic's public tools and two resources automatically. You can verify the connection by asking the agent to call `talonic_list_schemas` — it should return your saved schemas or an empty list.\",\n },\n {\n type: \"paragraph\",\n text: 'Continue\\'s config format uses a `name` field instead of a key in the `mcpServers` object. Make sure to include `\"name\": \"talonic\"` in the entry. The rest of the config — `command`, `args`, `env` for local, or `url` and `headers` for hosted — follows the same pattern as other MCP clients.',\n },\n {\n type: \"heading\",\n level: 3,\n id: \"continue-verify\",\n text: \"Verify the connection\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Verification: ask the agent to call talonic_list_schemas\",\n code: `// Agent sends (no parameters needed):\n{}\n\n// Successful response confirms connection:\n{\n \"schemas\": [\n {\n \"id\": \"sch_7a1b...\",\n \"short_id\": \"SCH-A1B2C3D4\",\n \"name\": \"Standard Invoice\",\n \"field_count\": 6\n }\n ]\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Continue is ideal for teams that use both VS Code and JetBrains IDEs and want a consistent Talonic experience across editors. Because the config file is shared, a schema saved from a Continue session in IntelliJ is immediately available in a VS Code session — no extra setup needed. This cross-editor consistency extends to all Talonic tools, not just schemas.\",\n },\n {\n type: \"paragraph\",\n text: \"When using Continue with the hosted Talonic server, the connection is established over HTTPS directly from the Continue extension. No local MCP process is spawned, which reduces resource usage in the IDE. For JetBrains users in particular, this avoids adding another background process alongside the already resource-intensive IDE. The local npx option remains available for offline work or when HTTPS connectivity is restricted.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Continue's MCP support works identically in VS Code and JetBrains. The same `~/.continue/config.json` file is shared across both editors.\",\n },\n ],\n related: [\n { label: \"Cowork\", slug: \"cowork\" },\n { label: \"Cline\", slug: \"cline\" },\n ],\n faq: [\n {\n question: \"How do I add Talonic MCP to Continue?\",\n answer:\n \"Edit ~/.continue/config.json and add a Talonic entry to the mcpServers array with your API key.\",\n },\n {\n question: \"Does Continue work with Talonic in JetBrains?\",\n answer:\n \"Yes. Continue shares the same config file (~/.continue/config.json) across VS Code and JetBrains, so Talonic works identically in both editors.\",\n },\n {\n question: \"Why does Continue use a different config format?\",\n answer:\n 'Continue uses an mcpServers array with a name field instead of an object keyed by server name. Include \"name\": \"talonic\" in the entry alongside the standard command/args/env or url/headers fields.',\n },\n {\n question: \"Can I run Talonic alongside other MCP servers in Continue?\",\n answer:\n \"Yes. Continue's mcpServers array supports multiple entries. Talonic runs alongside any other MCP servers you have configured. Each server is discovered independently and all tools are available in the same conversation.\",\n },\n ],\n mentions: [\"Continue\", \"VS Code\", \"JetBrains\"],\n },\n {\n slug: \"cowork\",\n parentSlug: \"install\",\n title: \"Cowork\",\n seoTitle: \"Set Up the Talonic MCP Server in Cowork — Quick Guide\",\n description:\n \"Configure the Talonic MCP server in Cowork, browse saved schemas in the resources panel via talonic://schemas, and extract dropped files with one call.\",\n content: [\n { type: \"paragraph\", text: \"Open Cowork settings → MCP Servers → Add.\" },\n { type: \"heading\", level: 3, id: \"cowork-hosted\", text: \"Hosted (recommended)\" },\n { type: \"code\", language: \"json\", code: MCP_HOSTED_SNIPPET },\n { type: \"heading\", level: 3, id: \"cowork-local\", text: \"Local (npx)\" },\n { type: \"code\", language: \"json\", code: MCP_CONFIG_SNIPPET },\n {\n type: \"paragraph\",\n text: \"Cowork is a chat-style MCP client that supports drag-and-drop file uploads and resource browsing. After adding the Talonic config, Talonic's public tools appear in the tool picker and the `talonic://schemas` and `talonic://webhooks/reference` resources are browseable in the resources panel.\",\n },\n {\n type: \"paragraph\",\n text: \"Like Claude Desktop, Cowork renders MCP resources in its UI. This means your saved schemas are visible without making a tool call, which helps when you want to browse available schemas before starting an extraction workflow.\",\n },\n {\n type: \"paragraph\",\n text: \"After adding the config, restart Cowork to load the new MCP server. If you are using the hosted option, Cowork connects directly via HTTPS — no local process is spawned. For the local option, Cowork launches the `npx` command as a child process and communicates over stdio.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"cowork-workflow\",\n text: \"Example: browse schemas then extract\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Agent workflow in Cowork\",\n code: `// Step 1: User browses talonic://schemas in the resources panel\n// → Sees \"Standard Invoice\" (SCH-A1B2C3D4) with 6 fields\n\n// Step 2: User drops invoice.pdf into the chat\n// Agent calls talonic_extract:\n{\n \"file_data\": \"JVBERi0xLjQKJ...\",\n \"filename\": \"invoice.pdf\",\n \"schema_id\": \"SCH-A1B2C3D4\"\n}\n\n// Step 3: Agent presents extracted data:\n{\n \"data\": {\n \"vendor_name\": \"Meridian Energy AG\",\n \"total_amount\": 1500.00,\n \"due_date\": \"2026-06-15\"\n },\n \"confidence\": { \"overall\": 0.97 }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Cowork's resource browsing creates a natural workflow for Talonic users. Instead of asking the agent to list schemas via a tool call, you can visually browse the `talonic://schemas` resource in the sidebar, identify the right schema, and then ask the agent to extract using that schema by name or ID. This visual discovery step reduces back-and-forth in the conversation and helps users who are not familiar with their workspace's schema inventory.\",\n },\n {\n type: \"paragraph\",\n text: \"For teams onboarding new members, Cowork's visual schema browser is especially useful. A new team member can see all available extraction templates at a glance, understand what fields each schema extracts, and start processing documents immediately without needing to learn schema IDs or ask colleagues which templates exist. Combined with drag-and-drop file uploads, the barrier to entry is as low as it gets.\",\n },\n {\n type: \"paragraph\",\n text: \"To verify the install, start a new chat and confirm Talonic's tools appear in the tool picker and `talonic://schemas` shows in the resources panel. If neither appears, re-open Cowork's MCP Servers settings to confirm the entry saved, check the API key value, and restart Cowork so it relaunches its MCP connections — config edits are only picked up on restart.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Cowork's resource panel lets you browse `talonic://schemas` visually, making it easy to discover existing schemas before designing new ones.\",\n },\n ],\n related: [\n { label: \"Claude Desktop\", slug: \"claude-desktop\" },\n { label: \"Tool Reference\", slug: \"talonic-extract\" },\n ],\n faq: [\n {\n question: \"How do I add Talonic MCP to Cowork?\",\n answer:\n \"Open Cowork settings, go to MCP Servers, click Add, and paste the standard Talonic config with your API key.\",\n },\n {\n question: \"Does Cowork support the talonic://schemas resource?\",\n answer:\n \"Yes. Cowork renders MCP resources in its UI, so you can browse your saved schemas visually in the resources panel without making a tool call.\",\n },\n {\n question: \"Does Cowork support drag-and-drop with Talonic?\",\n answer:\n \"Yes. Cowork supports drag-and-drop file uploads, which pairs with talonic_extract's file_data parameter for easy document extraction.\",\n },\n {\n question: \"How does Cowork compare to Claude Desktop for Talonic workflows?\",\n answer:\n \"Both support drag-and-drop and schema resource browsing. Cowork's resource panel provides a more visual schema discovery experience. Claude Desktop has deeper integration with Anthropic's Claude model. Choose based on your preferred chat interface and model provider.\",\n },\n ],\n mentions: [\"Cowork\"],\n },\n]\n","import type { RawSection } from \"../types\"\n\nexport const sections: RawSection[] = [\n {\n slug: \"talonic-extract\",\n parentSlug: \"tools\",\n title: \"talonic_extract\",\n seoTitle: \"talonic_extract — Structured Document Extraction Tool\",\n description:\n \"MCP tool that extracts structured, schema-validated JSON from documents with per-field confidence scores. Accepts file data, paths, URLs, or document IDs.\",\n content: [\n { type: \"paragraph\", text: \"Extract structured, schema-validated data from a document.\" },\n {\n type: \"paragraph\",\n text: \"Inputs: one of `file_data` + `filename` (recommended for chat clients), `file_path`, `file_url`, or `document_id`, plus a `schema` (or `schema_id`). Returns clean JSON with per-field confidence scores.\",\n },\n {\n type: \"paragraph\",\n text: \"This is the primary tool in the Talonic MCP server. When an agent calls **`talonic_extract`**, the MCP server uploads the document to the Talonic API, runs OCR and field extraction against the provided schema, and returns structured JSON with confidence metadata. The entire pipeline — upload, OCR, extraction, validation — runs server-side in a single request.\",\n },\n {\n type: \"paragraph\",\n text: \"The response includes a `document.id` that persists in your workspace. Subsequent calls can reference this ID via the `document_id` parameter to re-extract with a different schema, retrieve markdown, or fetch metadata — all without re-uploading the file. This is both faster and cheaper than sending the file again.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"file_data\",\n type: \"string\",\n description: \"Base64-encoded file bytes. Recommended for chat clients (drag-and-drop).\",\n },\n {\n name: \"filename\",\n type: \"string\",\n description: \"Original filename (used for MIME type inference when using `file_data`).\",\n },\n {\n name: \"file_path\",\n type: \"string\",\n description:\n \"Local file path. Local (stdio) installs only; the hosted server refuses it.\",\n },\n { name: \"file_url\", type: \"string\", description: \"Remote file URL.\" },\n {\n name: \"document_id\",\n type: \"string\",\n description: \"ID of a previously uploaded document.\",\n },\n {\n name: \"schema\",\n type: \"object\",\n description: \"Inline schema definition (JSON Schema or flat key-type map).\",\n },\n {\n name: \"schema_id\",\n type: \"string\",\n description: \"UUID or SCH-XXXXXXXX short ID of a saved schema.\",\n },\n {\n name: \"instructions\",\n type: \"string\",\n description: \"Natural-language guidance for the extractor.\",\n },\n {\n name: \"include_markdown\",\n type: \"boolean\",\n description: \"Include OCR markdown alongside structured data.\",\n },\n ],\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"Always provide a `schema` or `schema_id`. Auto-discovery extract (no schema) is not reliable in v0.1.\",\n },\n { type: \"heading\", level: 3, id: \"extract-inline-schema\", text: \"Example: inline schema\" },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{\n \"file_url\": \"https://example.com/invoice-2026-001.pdf\",\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"vendor_name\": { \"type\": \"string\" },\n \"invoice_number\": { \"type\": \"string\" },\n \"total_amount\": { \"type\": \"number\" },\n \"due_date\": { \"type\": \"string\", \"format\": \"date\" },\n \"line_items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"description\": { \"type\": \"string\" },\n \"amount\": { \"type\": \"number\" }\n }\n }\n }\n },\n \"required\": [\"vendor_name\", \"total_amount\"]\n },\n \"instructions\": \"Amounts are in EUR. Focus on the billing section.\"\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"extraction_id\": \"ext_8f3a...\",\n \"request_id\": \"req_2c91...\",\n \"status\": \"complete\",\n \"document\": {\n \"id\": \"doc_8f3a...\",\n \"filename\": \"invoice-2026-001.pdf\",\n \"pages\": 2,\n \"type_detected\": \"invoice\",\n \"language_detected\": \"de\"\n },\n \"data\": {\n \"vendor_name\": \"Meridian Energy AG\",\n \"invoice_number\": \"INV-2026-001\",\n \"total_amount\": 1500.00,\n \"due_date\": \"2026-06-15\",\n \"line_items\": [\n { \"description\": \"Consulting, April\", \"amount\": 1200.00 },\n { \"description\": \"Travel expenses\", \"amount\": 300.00 }\n ]\n },\n \"schema\": {\n \"source\": \"inline\"\n },\n \"confidence\": {\n \"overall\": 0.97,\n \"fields\": {\n \"vendor_name\": 0.98,\n \"invoice_number\": 0.95,\n \"total_amount\": 0.99,\n \"due_date\": 0.97\n }\n },\n \"processing\": {\n \"duration_ms\": 2840,\n \"pages_processed\": 2,\n \"region\": \"eu-central-1\"\n }\n}`,\n },\n { type: \"heading\", level: 3, id: \"extract-schema-id\", text: \"Example: saved schema\" },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{\n \"file_path\": \"./contracts/lease-agreement.pdf\",\n \"schema_id\": \"SCH-A1B2C3D4\"\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"extraction_id\": \"ext_b29f...\",\n \"request_id\": \"req_4c81...\",\n \"status\": \"complete\",\n \"document\": {\n \"id\": \"doc_91ad...\",\n \"filename\": \"lease-agreement.pdf\",\n \"pages\": 8,\n \"type_detected\": \"lease_agreement\",\n \"language_detected\": \"en\"\n },\n \"data\": {\n \"lessor\": \"Acme Holdings Ltd.\",\n \"lessee\": \"Meridian Energy AG\",\n \"premises_address\": \"12 Hauptstrasse, 10115 Berlin\",\n \"term_start\": \"2026-07-01\",\n \"term_end\": \"2031-06-30\",\n \"monthly_rent_eur\": 4250.00\n },\n \"schema\": {\n \"source\": \"saved\",\n \"id\": \"SCH-A1B2C3D4\"\n },\n \"confidence\": {\n \"overall\": 0.94,\n \"fields\": {\n \"lessor\": 0.97,\n \"lessee\": 0.97,\n \"premises_address\": 0.92,\n \"term_start\": 0.95,\n \"term_end\": 0.95,\n \"monthly_rent_eur\": 0.91\n }\n },\n \"processing\": {\n \"duration_ms\": 4380,\n \"pages_processed\": 8,\n \"region\": \"eu-central-1\"\n }\n}`,\n },\n ],\n related: [\n { label: \"talonic_to_markdown\", slug: \"talonic-to-markdown\" },\n { label: \"talonic_save_schema\", slug: \"talonic-save-schema\" },\n { label: \"Drag & Drop Files\", slug: \"drag-and-drop\" },\n ],\n faq: [\n {\n question: \"How does talonic_extract work?\",\n answer:\n \"Send a document (file_data, file_path, file_url, or document_id) with a schema or schema_id. The tool returns schema-validated JSON with per-field confidence scores.\",\n },\n {\n question: \"What is the fastest way to extract data from a document?\",\n answer:\n \"If the document is already in your workspace, pass its document_id instead of re-uploading. For new documents in chat clients, use file_data with base64-encoded bytes. For files on the web, use file_url to avoid downloading locally first.\",\n },\n {\n question: \"How long does an extraction typically take?\",\n answer:\n \"Processing time depends on document size. A 2-page invoice typically completes in 2-4 seconds. Larger documents (8+ pages) may take 4-8 seconds. The processing.duration_ms field in the response shows the exact server-side duration.\",\n },\n ],\n mentions: [\"extract\", \"schema\", \"confidence scores\", \"file_data\"],\n },\n {\n slug: \"talonic-search\",\n parentSlug: \"tools\",\n title: \"talonic_search\",\n seoTitle: \"talonic_search — Workspace Omnisearch Tool for Agents\",\n description:\n \"MCP omnisearch tool across documents, fields, sources, and schemas in a Talonic workspace. Handles conceptual, fuzzy queries and returns typed field matches.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Omnisearch across documents, fields, sources, and schemas in the workspace. Use for conceptual or fuzzy queries.\",\n },\n {\n type: \"paragraph\",\n text: \"**`talonic_search`** is designed for discovery. When a user asks a question like 'do I have any contracts about indemnification?' or 'find documents from Acme', this is the right tool. It searches across document filenames, extracted field values, schema names, and source metadata using semantic and fuzzy matching.\",\n },\n {\n type: \"paragraph\",\n text: \"The response is grouped by entity type: `documents`, `fieldMatches`, `schemas`, `sources`, and `fields`. Each result includes a relevance `score` (0..1) so the agent can assess match quality. Results with scores below 0.5 are typically not relevant and can be omitted when presenting to the user.\",\n },\n {\n type: \"paragraph\",\n text: \"For queries that require exact field-value matching (like 'invoices over 1000 EUR'), use **`talonic_filter`** instead. Search is for exploration and discovery; filter is for precision queries against structured data.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"query\",\n type: \"string\",\n required: true,\n description: \"The search query. Supports fuzzy and conceptual matching.\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n description: \"Maximum results per entity type. Default: 5.\",\n },\n ],\n },\n {\n type: \"paragraph\",\n text: \"A common agent pattern is using `talonic_search` as a first step to orient within a workspace, then following up with more specific tools. For example, an agent might search for 'Acme contracts' to discover relevant documents, note the canonical field names in the response, and then use `talonic_filter` with those field names to narrow down to contracts expiring within a specific date range. This search-then-filter pattern is both efficient and reliable.\",\n },\n {\n type: \"paragraph\",\n text: \"Search results are scoped to the authenticated workspace. The query runs against all documents, extracted field values, schema definitions, and source metadata within that workspace. There is no cross-workspace search — each API key sees only its own data. The `limit` parameter controls how many results are returned per entity type (documents, fields, schemas, sources), with a default of 5. Increase the limit when the user needs a broader view of matching content.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Search results include canonical field names in `fields[].canonicalName`. These names can be used directly in `talonic_filter` conditions, making search a good first step before building precise filters.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: 'Every `fieldMatches[]` and `fields[]` entry carries a `dataType` (`\"string\"`, `\"number\"`, `\"array\"`, etc.). Use it to pick the right `talonic_filter` operator on the first call — numeric operators (`gt`, `gte`, `lt`, `lte`, `between`) only resolve correctly when `dataType === \"number\"`. See the *Schema typing* section under `talonic_filter` for the full preventive / reactive pattern.',\n },\n { type: \"heading\", level: 3, id: \"search-example\", text: \"Example\" },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{\n \"query\": \"indemnification clauses Acme\",\n \"limit\": 10\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"documents\": [\n {\n \"id\": \"doc_4e7b...\",\n \"filename\": \"acme-services-agreement.pdf\",\n \"type_detected\": \"Services Agreement\",\n \"score\": 0.92\n }\n ],\n \"fieldMatches\": [\n {\n \"fieldName\": \"indemnification.cap_amount\",\n \"documentId\": \"doc_4e7b...\",\n \"value\": \"2x annual fees\",\n \"documentCount\": 3,\n \"filterable\": true,\n \"dataType\": \"string\",\n \"score\": 0.88\n }\n ],\n \"schemas\": [],\n \"sources\": [],\n \"fields\": [\n { \"canonicalName\": \"indemnification.cap_amount\", \"dataType\": \"string\", \"filterable\": true }\n ]\n}`,\n },\n { type: \"heading\", level: 3, id: \"search-then-filter\", text: \"Example: search then filter\" },\n {\n type: \"code\",\n language: \"json\",\n title: \"Step 1: discover field names with search\",\n code: `// Agent calls talonic_search:\n{\n \"query\": \"vendor invoices total amount\",\n \"limit\": 5\n}\n\n// Response includes canonical field names plus dataType:\n{\n \"fields\": [\n { \"canonicalName\": \"vendor.name\", \"dataType\": \"string\", \"filterable\": true },\n { \"canonicalName\": \"invoice.total_eur\", \"dataType\": \"number\", \"filterable\": true },\n { \"canonicalName\": \"invoice.due_date\", \"dataType\": \"string\", \"filterable\": true }\n ]\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Step 2: use discovered field names in talonic_filter\",\n code: `// Agent uses canonical names from search to build a filter:\n{\n \"conditions\": [\n { \"field\": \"invoice.total_eur\", \"operator\": \"gt\", \"value\": 500 }\n ],\n \"sort\": { \"field\": \"invoice.total_eur\", \"direction\": \"desc\" }\n}`,\n },\n ],\n related: [\n { label: \"talonic_filter\", slug: \"talonic-filter\" },\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n { label: \"Agent Decision Guide\", slug: \"agent-decision-guide\" },\n ],\n faq: [\n {\n question: \"What does talonic_search do?\",\n answer:\n \"It searches across documents, fields, sources, and schemas in the workspace using fuzzy and conceptual matching.\",\n },\n {\n question: \"When should I use talonic_search vs talonic_filter?\",\n answer:\n \"Use search for discovery and fuzzy queries ('find Acme contracts'). Use filter for precise field-value conditions ('invoices over 1000 EUR'). Search is exploration; filter is precision.\",\n },\n {\n question: \"What do the search scores mean?\",\n answer:\n \"Each result includes a relevance score from 0 to 1. Scores above 0.7 are strong matches, 0.5-0.7 are partial matches, and below 0.5 are typically not relevant.\",\n },\n {\n question: \"Can I search for schemas by name?\",\n answer:\n \"Yes. talonic_search includes schemas in its results. If you search for 'invoice', any schema with 'invoice' in its name or description will appear in the schemas array of the response. This is useful for discovering existing templates before creating new ones.\",\n },\n {\n question: \"How do I use search results to build a filter?\",\n answer:\n \"The fields array in the search response includes canonicalName values with a filterable flag. Use canonicalName values where filterable is true as the field parameter in talonic_filter conditions. This search-then-filter pattern is the recommended workflow for precise queries.\",\n },\n ],\n mentions: [\"search\", \"omnisearch\", \"fuzzy\", \"discovery\"],\n },\n {\n slug: \"talonic-filter\",\n parentSlug: \"tools\",\n title: \"talonic_filter\",\n seoTitle: \"talonic_filter — Filter Documents by Extracted Fields\",\n description:\n \"MCP tool that filters workspace documents by extracted field values with composable conditions — eq, gt, between, contains — plus typing warnings surfaced.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Filter documents by extracted field values using composable conditions (`eq`, `gt`, `between`, `contains`, etc.).\",\n },\n {\n type: \"paragraph\",\n text: \"Accepts canonical field names (e.g. `vendor.name`, `policy.0_coverage_type`) which the Talonic API resolves to IDs server-side, or UUIDs directly.\",\n },\n {\n type: \"paragraph\",\n text: \"**`talonic_filter`** is the precision counterpart to **`talonic_search`**. While search uses fuzzy matching for discovery, filter applies exact conditions against extracted field values. This makes it ideal for queries like 'show me all invoices from vendor X over 1000 EUR' or 'contracts expiring before 2026-12-31'.\",\n },\n {\n type: \"paragraph\",\n text: \"Multiple conditions are AND-ed together, allowing you to build precise queries that narrow results progressively. The optional `search` parameter lets you combine free-text search with structured filters in a single call, and `sort` controls the result ordering.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"conditions\",\n type: \"array\",\n required: true,\n description:\n \"Filter conditions, AND-ed together. Each has `field` or `field_id`, `operator`, and `value`.\",\n },\n {\n name: \"search\",\n type: \"string\",\n description: \"Optional free-text search applied alongside filters.\",\n },\n {\n name: \"sort\",\n type: \"object\",\n description: 'Sort by a field: `{ field, direction: \"asc\" | \"desc\" }`.',\n },\n { name: \"page\", type: \"integer\", description: \"Page number for pagination.\" },\n { name: \"limit\", type: \"integer\", description: \"Results per page. Default: 50.\" },\n ],\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"Only fields where the search response shows `filterable: true` can be used with `talonic_filter`; entries with `filterable: false` have no extracted data yet. The `is_not_empty` operator checks materialized values, which are updated within seconds of extraction completing.\",\n },\n { type: \"heading\", level: 3, id: \"filter-example\", text: \"Example\" },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{\n \"conditions\": [\n { \"field\": \"vendor.name\", \"operator\": \"eq\", \"value\": \"Meridian Energy AG\" },\n { \"field\": \"invoice.total_eur\", \"operator\": \"gt\", \"value\": 1000 }\n ],\n \"sort\": { \"field\": \"invoice.total_eur\", \"direction\": \"desc\" },\n \"limit\": 20\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"data\": [\n {\n \"document_id\": \"doc_8f3a...\",\n \"filename\": \"invoice-2026-001.pdf\",\n \"fields\": {\n \"vendor.name\": \"Meridian Energy AG\",\n \"invoice.total_eur\": 1500.00,\n \"invoice.due_date\": \"2026-06-15\"\n }\n },\n {\n \"document_id\": \"doc_c2d9...\",\n \"filename\": \"invoice-2026-003.pdf\",\n \"fields\": {\n \"vendor.name\": \"Meridian Energy AG\",\n \"invoice.total_eur\": 1200.00,\n \"invoice.due_date\": \"2026-04-30\"\n }\n }\n ],\n \"total\": 2,\n \"page\": 1\n}`,\n },\n { type: \"heading\", level: 3, id: \"filter-operators\", text: \"Available operators\" },\n {\n type: \"paragraph\",\n text: \"The following operators are available for filter conditions: `eq` (equals), `neq` (not equals), `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), `between` (range, requires a two-element array as value), `contains` (substring match), `starts_with`, `ends_with`, `is_empty` (checks for null or empty values), and `is_not_empty` (checks for materialized values). Numeric operators (`gt`, `gte`, `lt`, `lte`, `between`) only resolve correctly when the schema field is typed as `number`. The next section explains how to handle that constraint.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"filter-schema-typing\",\n text: \"Schema typing (preventive + reactive)\",\n },\n {\n type: \"paragraph\",\n text: 'A numeric operator on a string-typed field that happens to hold numeric content (e.g. `\"€1,500.00\"`) silently returns zero matches — the comparison falls back to lexicographic ordering and almost never produces the result the user expects. There are two ways to handle this; pick the right one before constructing the call.',\n },\n {\n type: \"heading\",\n level: 3,\n id: \"filter-preventive\",\n text: \"Preventive — gate on `dataType`\",\n },\n {\n type: \"paragraph\",\n text: 'Call `talonic_search` first and read `dataType` on the field entry. If `dataType !== \"number\"`, do not issue a numeric operator on that field. Pick a string-friendly operator (`eq`, `contains`) or warn the user that the field needs a `data_type` change in the schema definition before the query can succeed. This avoids the silent-zero-matches outcome entirely.',\n },\n {\n type: \"heading\",\n level: 3,\n id: \"filter-reactive\",\n text: \"Reactive — handle `warnings[]`\",\n },\n {\n type: \"paragraph\",\n text: \"When a numeric operator is applied to a string-typed field anyway, the API attaches a `warnings[]` array to the filter response. Each entry has `code`, `message`, `field`/`field_id`, and a `suggestion`. The MCP tool surfaces this in `structuredContent` — agents should relay the `message` (and `suggestion`, when present) to the user rather than silently retrying.\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Response with a warning\",\n code: `{\n \"data\": [],\n \"total\": 0,\n \"warnings\": [\n {\n \"code\": \"numeric_operator_on_string_field\",\n \"message\": \"Operator \\`gt\\` was applied to field \\`invoice_total\\` typed as string. Numeric comparisons against string-typed fields use lexicographic ordering and may return zero matches.\",\n \"field\": \"invoice_total\",\n \"field_id\": \"fld_inv_total\",\n \"suggestion\": \"Change the field's data_type to \\`number\\` in the schema definition.\"\n }\n ]\n}`,\n },\n {\n type: \"heading\",\n level: 3,\n id: \"filter-combined-example\",\n text: \"Example: combined search and filter\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Combining free-text search with field-value filters\",\n code: `{\n \"conditions\": [\n { \"field\": \"invoice.due_date\", \"operator\": \"lte\", \"value\": \"2026-06-30\" },\n { \"field\": \"invoice.total_eur\", \"operator\": \"gte\", \"value\": 500 }\n ],\n \"search\": \"consulting services\",\n \"sort\": { \"field\": \"invoice.due_date\", \"direction\": \"asc\" },\n \"limit\": 10\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Pagination is supported via the `page` and `limit` parameters. The default page size is 50 results. For large workspaces with many matching documents, iterate through pages by incrementing `page` from 1. The response includes a `total` field showing the total number of matches, so the agent can determine how many pages remain and communicate this to the user.\",\n },\n {\n type: \"paragraph\",\n text: \"When building filters dynamically from user requests, agents should validate field names against the workspace's field registry first. The most reliable way is to call `talonic_search` to discover available canonical field names and check the `filterable` flag. Attempting to filter on a field that does not exist or is not yet filterable returns a `VALIDATION_ERROR` with a descriptive message. The agent should catch this error and suggest alternative field names rather than failing silently.\",\n },\n ],\n related: [\n { label: \"talonic_search\", slug: \"talonic-search\" },\n { label: \"Known Limitations\", slug: \"known-limitations\" },\n { label: \"Agent Decision Guide\", slug: \"agent-decision-guide\" },\n ],\n faq: [\n {\n question: \"How do I filter documents by field value?\",\n answer:\n \"Use talonic_filter with canonical field names and operators like eq, gt, between, contains. The API resolves field names to IDs server-side.\",\n },\n {\n question: \"How do I find the correct canonical field names for filtering?\",\n answer:\n \"Call talonic_search first — canonical field names appear in the fields[].canonicalName array. You can also inspect previously extracted documents to see their field structure.\",\n },\n {\n question: \"Can I combine free-text search with field filters?\",\n answer:\n \"Yes. Pass the search parameter alongside conditions to combine fuzzy text matching with structured field-value filters in a single call.\",\n },\n {\n question: \"What operators are available for talonic_filter?\",\n answer:\n \"Supported operators include eq, neq, gt, gte, lt, lte, between, contains, starts_with, ends_with, and is_empty. Numeric operators (gt, gte, lt, lte, between) require the schema field to be typed as number. String operators work on all field types.\",\n },\n {\n question: \"Why does my filter return zero results even though matching documents exist?\",\n answer:\n \"The most common cause is using a numeric operator (gt, lt, between) on a field that is typed as string in the schema. Currency symbols, commas, or locale formatting in the value also cause mismatches. Ensure the schema defines numeric fields as type number and that values are stored without formatting.\",\n },\n ],\n mentions: [\"filter\", \"canonical field names\", \"operators\", \"conditions\"],\n },\n {\n slug: \"talonic-get-document\",\n parentSlug: \"tools\",\n title: \"talonic_get_document\",\n seoTitle: \"talonic_get_document — Document Metadata & Status Tool\",\n description:\n \"MCP tool that fetches one document's metadata by ID: processing status, page count, and dashboard links. The polling primitive for browser-handoff uploads.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Fetch full metadata for a single document by ID, including processing log and link URLs.\",\n },\n {\n type: \"paragraph\",\n text: \"**`talonic_get_document`** retrieves comprehensive information about a document that has already been ingested into your Talonic workspace. This includes the file's status, page count, size, detected document type and language, the source that uploaded it, and direct links to the document in the Talonic dashboard and API.\",\n },\n {\n type: \"paragraph\",\n text: \"This tool is useful when the agent needs to check whether a document has finished processing, verify its detected type, or retrieve the dashboard link so the user can view the original. It does not return extracted data — for that, use **`talonic_extract`** with the same `document_id`.\",\n },\n {\n type: \"paragraph\",\n text: \"The `links.dashboard` URL in the response is particularly valuable for human-in-the-loop workflows. When the agent needs the user to verify an extraction against the original document, it can present this link as a direct way to view the source in the Talonic web interface.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"string\",\n required: true,\n description: \"The document UUID.\",\n },\n ],\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"The `document_id` returned by `talonic_extract` and other tools is stable. You can call `talonic_get_document` at any time to check the document's current status and metadata.\",\n },\n { type: \"heading\", level: 3, id: \"get-document-example\", text: \"Example\" },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{\n \"document_id\": \"doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c\"\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"id\": \"doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c\",\n \"filename\": \"invoice-2026-001.pdf\",\n \"status\": \"completed\",\n \"pages\": 2,\n \"size_bytes\": 184320,\n \"mime_type\": \"application/pdf\",\n \"type_detected\": \"Invoice\",\n \"language_detected\": \"de\",\n \"source\": { \"id\": \"src_a1b2...\", \"type\": \"api\" },\n \"links\": {\n \"self\": \"https://api.talonic.com/v1/documents/doc_8f3a...\",\n \"extractions\": \"https://api.talonic.com/v1/documents/doc_8f3a.../extractions\",\n \"dashboard\": \"https://app.talonic.com/documents/doc_8f3a...\"\n }\n}`,\n },\n {\n type: \"heading\",\n level: 3,\n id: \"get-document-workflow\",\n text: \"Example: human-in-the-loop verification\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Agent uses dashboard link for user verification\",\n code: `// After extracting data with low confidence on a critical field:\n// Agent calls talonic_get_document to get the dashboard link:\n{\n \"document_id\": \"doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c\"\n}\n\n// Agent presents to user:\n// \"The total_amount field has confidence 0.68.\n// Please verify against the original document:\n// https://app.talonic.com/documents/doc_8f3a...\"`,\n },\n {\n type: \"paragraph\",\n text: \"The `status` field in the response indicates the document's processing state. Common values are `completed` (ready for extraction and markdown retrieval), `processing` (still being ingested), and `failed` (ingestion encountered an error). Agents should check the status before attempting follow-up operations — calling `talonic_extract` on a document that is still `processing` will either wait or fail depending on the API's current behaviour.\",\n },\n {\n type: \"paragraph\",\n text: \"The `source` object in the response tells you how the document was uploaded. A `type` of `api` means it was uploaded via the MCP server or REST API, while `dashboard` means it was uploaded through the Talonic web interface. The `source.id` can be useful for filtering documents by upload source when a workspace has documents from multiple integration points.\",\n },\n {\n type: \"paragraph\",\n text: \"This tool is free to call — it does not consume extraction credits. Agents can call it as often as needed to check document status, retrieve links, or verify metadata without any cost concern. This makes it safe for polling scenarios where an agent needs to wait for a document to finish processing before proceeding with extraction.\",\n },\n ],\n related: [\n { label: \"talonic_to_markdown\", slug: \"talonic-to-markdown\" },\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n ],\n faq: [\n {\n question: \"How do I get document metadata via MCP?\",\n answer:\n \"Call talonic_get_document with the document UUID to get full metadata including processing log and link URLs.\",\n },\n {\n question: \"Does talonic_get_document return extracted data?\",\n answer:\n \"No. It returns metadata (filename, status, pages, type, language, links). For extracted field data, use talonic_extract with the same document_id.\",\n },\n {\n question: \"How can I link the user to the original document?\",\n answer:\n \"The response includes links.dashboard, which is a direct URL to view the document in the Talonic web interface. Present this to the user when they need to verify an extraction.\",\n },\n {\n question: \"Does talonic_get_document cost any credits?\",\n answer:\n \"No. It is a free metadata lookup that does not consume extraction credits. Agents can call it as often as needed to check document status, retrieve dashboard links, or verify metadata without cost concerns.\",\n },\n {\n question: \"What document statuses can talonic_get_document return?\",\n answer:\n \"Common statuses include completed (ready for extraction), processing (still being ingested), and failed (ingestion error). Check the status before attempting follow-up operations like extraction or markdown retrieval.\",\n },\n ],\n mentions: [\"document\", \"metadata\", \"processing log\", \"dashboard link\"],\n },\n {\n slug: \"talonic-to-markdown\",\n parentSlug: \"tools\",\n title: \"talonic_to_markdown\",\n seoTitle: \"talonic_to_markdown — OCR Documents to Clean Markdown\",\n description:\n \"MCP tool that returns OCR-converted markdown for a whole document. Accepts document_id, file_data plus filename, file_path, or file_url — no schema needed.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Get OCR-converted markdown for a document. Accepts `document_id` (cheapest — no re-upload), `file_data` + `filename`, `file_path`, or `file_url`.\",\n },\n {\n type: \"paragraph\",\n text: \"**`talonic_to_markdown`** converts a document's visual content into clean, structured markdown. Tables are rendered as markdown tables, headings are preserved, and the text is ordered to match the visual layout of the original document. This is the right tool when the user wants the full text of a document for summarisation, translation, or general analysis without needing structured field extraction.\",\n },\n {\n type: \"paragraph\",\n text: \"If you have already ingested the document (via a previous `talonic_extract` or `talonic_to_markdown` call), pass the `document_id` to skip re-uploading. This is the cheapest and fastest path because the OCR has already been performed. For new documents, use `file_data` + `filename` in chat clients, `file_path` for local files, or `file_url` for remote files.\",\n },\n {\n type: \"paragraph\",\n text: \"The returned markdown is suitable for feeding into an LLM's context window for downstream tasks. Because the conversion preserves table structure and heading hierarchy, the LLM can reason about the document's content without losing structural information that raw text extraction would discard.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"string\",\n description: \"ID of an already-ingested document (cheapest path).\",\n },\n {\n name: \"file_data\",\n type: \"string\",\n description: \"Base64-encoded file bytes. Pair with `filename`.\",\n },\n { name: \"filename\", type: \"string\", description: \"Original filename with extension.\" },\n {\n name: \"file_path\",\n type: \"string\",\n description:\n \"Local file path. Local (stdio) installs only; the hosted server refuses it.\",\n },\n {\n name: \"file_url\",\n type: \"string\",\n description: \"Remote URL the API fetches server-side.\",\n },\n ],\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"If you need both structured data and markdown, use `talonic_extract` with `include_markdown: true` instead of making two separate calls. This saves one upload and one processing cycle.\",\n },\n { type: \"heading\", level: 3, id: \"to-markdown-example\", text: \"Example\" },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{\n \"document_id\": \"doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c\"\n}`,\n },\n {\n type: \"code\",\n language: \"markdown\",\n title: \"Tool response\",\n code: `# Invoice INV-2026-001\n\n**Meridian Energy AG**\nMusterstraße 42, 10115 Berlin\n\n| Item | Amount |\n|-----------------------|------------|\n| Consulting — April | €1,200.00 |\n| Travel expenses | €300.00 |\n| **Total** | **€1,500.00** |\n\nDue date: 15 June 2026\nPayment terms: Net 30`,\n },\n {\n type: \"heading\",\n level: 3,\n id: \"to-markdown-url-example\",\n text: \"Example: convert from URL\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input: convert a remote PDF to markdown\",\n code: `{\n \"file_url\": \"https://example.com/annual-report-2025.pdf\"\n}`,\n },\n {\n type: \"code\",\n language: \"markdown\",\n title: \"Tool response: structured markdown output\",\n code: `# Annual Report 2025\n\n## Financial Highlights\n\n| Metric | 2025 | 2024 | Change |\n|---------------------|------------|------------|---------|\n| Revenue | €12.4M | €9.8M | +26.5% |\n| Net Income | €2.1M | €1.4M | +50.0% |\n| Employees | 142 | 98 | +44.9% |\n\n## Board of Directors\n\n- **Chair**: Dr. Maria Fischer\n- **CEO**: Thomas Bergmann\n- **CFO**: Sarah Lindqvist`,\n },\n {\n type: \"paragraph\",\n text: \"The markdown output is designed to be LLM-friendly. Agents can feed the returned markdown directly into their context window for summarisation, translation, comparison, or question-answering tasks. Because the conversion preserves semantic structure (headings denote sections, tables retain rows and columns, lists maintain hierarchy), downstream LLM reasoning is significantly more accurate than working with raw OCR text that has lost all formatting cues.\",\n },\n {\n type: \"paragraph\",\n text: \"For multi-page documents, the markdown includes page break indicators and preserves the reading order across pages. Headers, footers, and page numbers are typically stripped or de-duplicated to produce a clean reading experience. If the document contains images with embedded text (like scanned letterheads or stamps), the OCR engine extracts visible text from those regions as well, though image-only content without text is omitted from the markdown output.\",\n },\n {\n type: \"paragraph\",\n text: \"When an agent needs to compare two versions of a document, `talonic_to_markdown` is the right starting point. Convert both documents to markdown, then use standard text diffing within the agent's context to identify changes. This is more reliable than visual comparison because the markdown normalises formatting differences and focuses on content. The stable document IDs make it easy to retrieve markdown for previously processed documents without re-uploading.\",\n },\n ],\n related: [\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n { label: \"Drag & Drop Files\", slug: \"drag-and-drop\" },\n ],\n faq: [\n {\n question: \"How do I get markdown from a document via MCP?\",\n answer:\n \"Call talonic_to_markdown with a document_id (cheapest), or provide the file directly via file_data, file_path, or file_url.\",\n },\n {\n question: \"Does talonic_to_markdown preserve table structure?\",\n answer:\n \"Yes. Tables are rendered as markdown tables with proper column alignment. Headings and text ordering are also preserved to match the original document layout.\",\n },\n {\n question: \"Should I use talonic_to_markdown or talonic_extract with include_markdown?\",\n answer:\n \"If you only need the text, use talonic_to_markdown. If you need both structured fields and the full text, use talonic_extract with include_markdown: true to avoid two separate calls.\",\n },\n {\n question: \"Can I use talonic_to_markdown for document comparison?\",\n answer:\n \"Yes. Convert both document versions to markdown, then diff the text in the agent's context. Markdown normalises formatting differences and focuses on content, making comparison more reliable than visual methods. Use document_id for previously processed files to avoid re-uploading.\",\n },\n {\n question: \"Does talonic_to_markdown handle scanned documents?\",\n answer:\n \"Yes. The tool runs OCR on scanned PDFs, images (PNG, JPG, TIFF), and other image-based documents. Text is extracted from all visible regions including headers, stamps, and handwritten annotations where legible. The output is clean markdown regardless of whether the source is digital or scanned.\",\n },\n ],\n mentions: [\"markdown\", \"OCR\", \"document_id\", \"tables\"],\n },\n {\n slug: \"talonic-get-schema\",\n parentSlug: \"tools\",\n title: \"talonic_get_schema\",\n seoTitle: \"talonic_get_schema — Read a Saved Schema's Field List\",\n description:\n \"MCP tool that returns one saved Talonic schema with its full field definition (names, types, descriptions), so an agent knows which fields extraction returns.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Get one saved schema with its full field definition: the JSON Schema `definition` with every field's name, type and description, plus the schema's version and timestamps.\",\n },\n {\n type: \"paragraph\",\n text: \"**`talonic_get_schema`** is read-only and free. Call it when the user asks what a saved schema extracts, or before `talonic_extract` with a `schema_id` so the agent knows which fields will come back. Find the id with `talonic_list_schemas`; both the UUID and the `SCH-XXXXXXXX` short id work.\",\n },\n { type: \"heading\", level: 3, id: \"get-schema-input\", text: \"Input\" },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"`schema_id` (required): the schema's UUID or short id from `talonic_list_schemas`.\",\n ],\n },\n {\n type: \"paragraph\",\n text: \"Hosted chat clients such as Claude.ai do not let the model read MCP resources, so this tool is the way an agent there sees a schema's fields.\",\n },\n ],\n related: [\n { label: \"talonic_list_schemas\", slug: \"talonic-list-schemas\" },\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n ],\n faq: [],\n mentions: [\"schema\", \"schema_id\", \"fields\"],\n },\n {\n slug: \"talonic-list-apps\",\n parentSlug: \"tools\",\n title: \"talonic_list_apps\",\n seoTitle: \"talonic_list_apps — List the Apps in Your Workspace\",\n description:\n \"MCP tool that lists the Talonic Apps in a workspace with their id, name, one-line description, mode and enabled state, and supplies the app ids tools need.\",\n content: [\n {\n type: \"paragraph\",\n text: \"List the Talonic Apps in the user's workspace. Each entry has the app's `id`, `slug`, `display_name`, a one-line `description`, its `mode`, and whether it is `enabled`.\",\n },\n {\n type: \"paragraph\",\n text: \"**`talonic_list_apps`** is read-only and free. Call it when the user asks which apps or automations the workspace runs, or when another tool needs an app id: `talonic_list_decision_tasks` takes the id of an app whose `mode` is `external`.\",\n },\n { type: \"heading\", level: 3, id: \"list-apps-input\", text: \"Input\" },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"`enabled_only` (optional, default `true`): pass `false` to include disabled apps.\",\n ],\n },\n {\n type: \"paragraph\",\n text: \"Mode `external` means the app hands its decisions to an outside agent through the decision-task tools. Other modes decide inside Talonic.\",\n },\n ],\n related: [{ label: \"talonic_list_decision_tasks\", slug: \"talonic-list-decision-tasks\" }],\n faq: [],\n mentions: [\"apps\", \"app_id\", \"External mode\"],\n },\n {\n slug: \"talonic-list-schemas\",\n parentSlug: \"tools\",\n title: \"talonic_list_schemas\",\n seoTitle: \"talonic_list_schemas — List Saved Extraction Schemas\",\n description:\n \"MCP tool that lists every saved schema in your Talonic workspace with IDs, names, and full field definitions, so agents reuse schemas instead of redesigning.\",\n content: [\n {\n type: \"paragraph\",\n text: \"List all saved schemas as compact summaries. Returns schema IDs (both UUID and `SCH-XXXXXXXX` short format), names, descriptions, version, and field counts.\",\n },\n {\n type: \"paragraph\",\n text: \"The full per-field JSON Schema definition is intentionally omitted from the list — across many schemas that payload is large and can get truncated by some clients. To inspect one schema's full field definitions, call `talonic_get_schema` with its id. Clients that browse MCP resources (Claude Desktop, Cowork) can also read every definition at once from the `talonic://schemas` resource.\",\n },\n {\n type: \"paragraph\",\n text: \"**`talonic_list_schemas`** is a read-only tool that returns every saved schema in your workspace as a summary. Agents should call this before creating a new schema to avoid duplicates, and when the user asks about their available extraction templates. To read the full field structure of a specific schema, call `talonic_get_schema`.\",\n },\n {\n type: \"paragraph\",\n text: \"Each schema in the response includes both a UUID (`id`) and a human-friendly short ID (`short_id` in `SCH-XXXXXXXX` format). Either can be passed as `schema_id` to `talonic_extract`. The short ID is easier for users to reference in conversation, while the UUID is useful for programmatic workflows.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Call `talonic_list_schemas` before `talonic_save_schema` to check if a similar schema already exists. This prevents cluttering the workspace with near-duplicate schemas.\",\n },\n { type: \"heading\", level: 3, id: \"list-schemas-example\", text: \"Example\" },\n { type: \"paragraph\", text: \"No input parameters required.\" },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"schemas\": [\n {\n \"id\": \"sch_7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d\",\n \"short_id\": \"SCH-A1B2C3D4\",\n \"name\": \"Standard Invoice\",\n \"description\": \"Extracts vendor, line items, totals, and payment terms.\",\n \"version\": 3,\n \"field_count\": 6,\n \"definition\": {\n \"type\": \"object\",\n \"properties\": {\n \"vendor_name\": { \"type\": \"string\" },\n \"invoice_number\": { \"type\": \"string\" },\n \"total_amount\": { \"type\": \"number\" },\n \"due_date\": { \"type\": \"string\", \"format\": \"date\" },\n \"currency\": { \"type\": \"string\" },\n \"line_items\": { \"type\": \"array\" }\n },\n \"required\": [\"vendor_name\", \"total_amount\"]\n }\n },\n {\n \"id\": \"sch_e5f6a7b8-c9d0-1e2f-3a4b-5c6d7e8f9a0b\",\n \"short_id\": \"SCH-E5F6A7B8\",\n \"name\": \"Certificate of Insurance\",\n \"description\": \"Extracts insured party, coverage types, limits, and expiry.\",\n \"version\": 1,\n \"field_count\": 8,\n \"definition\": { \"type\": \"object\", \"properties\": { \"...\" : {} } }\n }\n ]\n}`,\n },\n {\n type: \"heading\",\n level: 3,\n id: \"list-schemas-workflow\",\n text: \"Example: check for duplicates before saving\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Agent checks existing schemas before creating a new one\",\n code: `// User: \"Create a schema for purchase orders\"\n// Agent first checks existing schemas:\n// talonic_list_schemas → {}\n\n// Response shows existing schemas:\n{\n \"schemas\": [\n {\n \"id\": \"sch_7a1b...\",\n \"short_id\": \"SCH-A1B2C3D4\",\n \"name\": \"Standard Invoice\",\n \"field_count\": 6\n },\n {\n \"id\": \"sch_c3d4...\",\n \"short_id\": \"SCH-C3D4E5F6\",\n \"name\": \"Purchase Order\",\n \"field_count\": 7\n }\n ]\n}\n\n// Agent: \"You already have a 'Purchase Order' schema (SCH-C3D4E5F6)\n// with 7 fields. Would you like to use it, or create a new one?\"`,\n },\n {\n type: \"paragraph\",\n text: \"Agents should call `talonic_list_schemas` proactively in several scenarios: before saving a new schema (to prevent duplicates), when the user asks about available extraction templates, and when starting a session that involves document extraction (to present schema options). The call is free and returns quickly, so there is no cost or latency penalty for checking frequently.\",\n },\n {\n type: \"paragraph\",\n text: \"The `version` field on each schema tracks how many times it has been updated through the Talonic dashboard. A schema at version 1 has never been modified since creation. Higher versions indicate the schema has been refined — potentially adding new fields, changing types, or updating required fields. Agents can use this information to inform the user about schema maturity when choosing between multiple similar schemas.\",\n },\n {\n type: \"paragraph\",\n text: \"The `field_count` in the response is a quick indicator of schema complexity without needing to parse the full definition. Schemas with fewer fields are faster to extract and produce more focused results. Schemas with many fields (10+) cover more ground but may have lower per-field confidence on complex documents. Agents can use field count to help users choose between a detailed schema and a simpler one for quick extractions.\",\n },\n ],\n related: [\n { label: \"talonic_save_schema\", slug: \"talonic-save-schema\" },\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n ],\n faq: [\n {\n question: \"How do I list schemas via MCP?\",\n answer:\n \"Call talonic_list_schemas to get all saved schemas with their definitions. The talonic://schemas resource also exposes this data.\",\n },\n {\n question: \"What is the difference between the UUID and SCH-XXXXXXXX ID?\",\n answer:\n \"Both reference the same schema. The UUID (id) is the full identifier, while SCH-XXXXXXXX (short_id) is a shorter, human-friendly format. Either can be passed as schema_id to talonic_extract.\",\n },\n {\n question: \"Does talonic_list_schemas require any parameters?\",\n answer:\n \"No. It takes no input parameters and returns all saved schemas in the workspace with their full definitions.\",\n },\n {\n question: \"Is talonic_list_schemas free to call?\",\n answer:\n \"Yes. It is a read-only metadata call that does not consume extraction credits. Agents can call it as often as needed to check for existing schemas, present options to the user, or verify a schema exists before using it in an extraction.\",\n },\n {\n question: \"How do I know which schema to use for a document?\",\n answer:\n \"Call talonic_list_schemas to see all available schemas with their names, descriptions, and field counts. Match the schema name and description to the document type. For example, use a 'Standard Invoice' schema for invoices and a 'Certificate of Insurance' schema for COIs. When unsure, start with an inline schema and save it after confirming the results.\",\n },\n ],\n mentions: [\"schemas\", \"list\", \"SCH-XXXXXXXX\", \"resource\"],\n },\n {\n slug: \"talonic-save-schema\",\n parentSlug: \"tools\",\n title: \"talonic_save_schema\",\n seoTitle: \"talonic_save_schema — Save Reusable Extraction Schemas\",\n description:\n \"MCP tool that persists a JSON Schema for reuse across extractions. Returns a schema_id (UUID or SCH-XXXXXXXX) to pass on every future talonic_extract call.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Save a schema definition to the workspace for reuse. Returns a `schema_id` that can be passed to `talonic_extract`.\",\n },\n {\n type: \"paragraph\",\n text: \"**`talonic_save_schema`** persists an extraction template so it can be referenced by ID in future `talonic_extract` calls. This is useful when the same schema will be applied to many documents — for example, a standard invoice schema used across all vendor invoices, or a contract schema applied to every new agreement.\",\n },\n {\n type: \"paragraph\",\n text: \"The recommended workflow is to iterate on the schema inline first (passing it directly to `talonic_extract`), verify the extraction results with the user, and only call `talonic_save_schema` once the schema design is confirmed. This avoids cluttering the workspace with draft schemas that never get used.\",\n },\n {\n type: \"paragraph\",\n text: \"The response returns both a UUID (`id`) and a short ID (`short_id` in `SCH-XXXXXXXX` format). Either can be used as `schema_id` in subsequent `talonic_extract` calls. The `version` field starts at 1 and increments if the schema is updated through the Talonic dashboard.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"name\",\n type: \"string\",\n required: true,\n description: \"Human-readable schema name.\",\n },\n {\n name: \"definition\",\n type: \"object\",\n required: true,\n description:\n 'Schema definition. Full JSON Schema `{type: \"object\", properties: {...}}` recommended.',\n },\n {\n name: \"description\",\n type: \"string\",\n description: \"What this schema extracts and when to use it.\",\n },\n ],\n },\n {\n type: \"callout\",\n text: 'Prefer full JSON Schema format with `type: \"object\"` and `properties`. The flat key-type map format is not fully supported server-side yet.',\n },\n { type: \"heading\", level: 3, id: \"save-schema-example\", text: \"Example\" },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{\n \"name\": \"Standard Invoice\",\n \"description\": \"Extracts vendor, line items, totals, and payment terms from invoices.\",\n \"definition\": {\n \"type\": \"object\",\n \"properties\": {\n \"vendor_name\": { \"type\": \"string\" },\n \"invoice_number\": { \"type\": \"string\" },\n \"total_amount\": { \"type\": \"number\" },\n \"due_date\": { \"type\": \"string\", \"format\": \"date\" },\n \"line_items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"description\": { \"type\": \"string\" },\n \"amount\": { \"type\": \"number\" }\n }\n }\n }\n },\n \"required\": [\"vendor_name\", \"total_amount\"]\n }\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"id\": \"sch_7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d\",\n \"short_id\": \"SCH-A1B2C3D4\",\n \"name\": \"Standard Invoice\",\n \"description\": \"Extracts vendor, line items, totals, and payment terms from invoices.\",\n \"version\": 1,\n \"field_count\": 5\n}`,\n },\n {\n type: \"heading\",\n level: 3,\n id: \"save-schema-workflow\",\n text: \"Example: iterate inline then save\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Step 1: test the schema inline with talonic_extract\",\n code: `// Agent extracts with inline schema first:\n{\n \"file_url\": \"https://example.com/sample-po.pdf\",\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"po_number\": { \"type\": \"string\" },\n \"vendor\": { \"type\": \"string\" },\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"description\": { \"type\": \"string\" },\n \"quantity\": { \"type\": \"integer\" },\n \"unit_price\": { \"type\": \"number\" }\n }\n }\n },\n \"total\": { \"type\": \"number\" },\n \"delivery_date\": { \"type\": \"string\", \"format\": \"date\" }\n },\n \"required\": [\"po_number\", \"vendor\", \"total\"]\n }\n}\n// → User reviews results, confirms the schema looks right`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Step 2: save the confirmed schema for reuse\",\n code: `// Agent calls talonic_save_schema:\n{\n \"name\": \"Purchase Order\",\n \"description\": \"Extracts PO number, vendor, line items, total, and delivery date.\",\n \"definition\": {\n \"type\": \"object\",\n \"properties\": {\n \"po_number\": { \"type\": \"string\" },\n \"vendor\": { \"type\": \"string\" },\n \"items\": { \"type\": \"array\" },\n \"total\": { \"type\": \"number\" },\n \"delivery_date\": { \"type\": \"string\", \"format\": \"date\" }\n },\n \"required\": [\"po_number\", \"vendor\", \"total\"]\n }\n}\n\n// Response:\n{\n \"id\": \"sch_d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a\",\n \"short_id\": \"SCH-D4E5F6A7\",\n \"name\": \"Purchase Order\",\n \"version\": 1,\n \"field_count\": 5\n}\n// → Future extractions use: { \"schema_id\": \"SCH-D4E5F6A7\" }`,\n },\n {\n type: \"paragraph\",\n text: \"The `description` field is optional but strongly recommended. A clear description helps agents (and users) understand when to use a particular schema. Agents can read schema descriptions from `talonic_list_schemas` to auto-select the right schema based on the document type. For example, if the user drops a purchase order, the agent can scan saved schema descriptions for keywords like 'purchase order' or 'PO' and suggest the matching schema automatically.\",\n },\n {\n type: \"paragraph\",\n text: \"Schema naming conventions matter for discoverability. Use descriptive, consistent names like 'Standard Invoice', 'Certificate of Insurance', or 'Employment Contract' rather than abbreviations or internal codes. These names appear in `talonic_list_schemas` results and the `talonic://schemas` resource, where users and agents browse them to find the right template. A well-named schema library reduces friction across the entire team.\",\n },\n ],\n related: [\n { label: \"talonic_list_schemas\", slug: \"talonic-list-schemas\" },\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n ],\n faq: [\n {\n question: \"How do I save a schema via MCP?\",\n answer:\n \"Call talonic_save_schema with a name and JSON Schema definition. It returns a schema_id for reuse in talonic_extract calls.\",\n },\n {\n question: \"When should I save a schema vs use an inline schema?\",\n answer:\n \"Save a schema when you will reuse it across many documents (e.g., a standard invoice template). Use inline schemas for one-off extractions or when iterating on schema design with the user.\",\n },\n {\n question: \"Can I update a saved schema?\",\n answer:\n \"Schema updates are managed through the Talonic dashboard. The version field in the response tracks changes. Via MCP, you can save a new schema with a different name if the design changes significantly.\",\n },\n {\n question: \"What is the recommended workflow for schema design?\",\n answer:\n \"Iterate inline first: pass the schema directly to talonic_extract, review results with the user, adjust fields as needed. Once the user confirms the schema produces good results, call talonic_save_schema to persist it. This prevents cluttering the workspace with draft schemas that never get used.\",\n },\n {\n question: \"Should I include a description when saving a schema?\",\n answer:\n \"Yes. The description helps agents auto-select the right schema based on document type, and helps team members understand what each schema extracts. Use clear language like 'Extracts vendor, line items, totals, and payment terms from invoices' so both humans and AI agents can match schemas to documents.\",\n },\n ],\n mentions: [\"save schema\", \"JSON Schema\", \"reuse\", \"version\"],\n },\n {\n slug: \"talonic-get-balance\",\n parentSlug: \"tools\",\n title: \"talonic_get_balance\",\n seoTitle: \"talonic_get_balance — Check Credits, Burn Rate, Runway\",\n description:\n \"MCP tool returning your Talonic credit balance, EUR value, 30-day burn rate, projected runway, tier, and next tier reset — for budget-aware agent behaviour.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Returns the workspace's current credit balance, EUR value, 30-day burn rate, projected runway in days, API tier, and the timestamp of the next monthly tier reset. Use it for budget-aware behaviour: read the balance before scheduling a large batch, or after a sequence of extractions to track spend.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"use-when\",\n text: \"When to use\",\n },\n {\n type: \"list\",\n items: [\n \"The user asks how many credits or how much budget they have left.\",\n \"Before kicking off a large or expensive operation (batch extract, re-extract many documents), to confirm budget headroom.\",\n \"The user asks how long the balance will last at the current rate.\",\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"do-not-use\",\n text: \"When not to use\",\n },\n {\n type: \"list\",\n items: [\n \"For per-call cost of a single extraction: that is already on every `talonic_extract` response under `cost`.\",\n \"To top up credits: route the user to the dashboard. Auto top-up is guarded by a separate scope and is intentionally not exposed at the MCP layer.\",\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"response-shape\",\n text: \"Response shape\",\n },\n {\n type: \"list\",\n items: [\n \"`balance_credits`: current credit balance (integer).\",\n \"`balance_eur`: current balance expressed in EUR (rounded to two decimals).\",\n \"`burn_rate_30d_credits`: total credits consumed in the trailing 30 days.\",\n \"`projected_runway_days`: days of runway at the current 30-day average burn rate. `-1` indicates no consumption in the trailing window (cannot compute a meaningful runway).\",\n \"`tier`: API tier of the workspace (`free`, `pro`, `enterprise`, etc.).\",\n \"`tier_resets_at`: ISO 8601 timestamp of the next monthly tier reset.\",\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"balance_credits\": 1888,\n \"balance_eur\": 9.44,\n \"burn_rate_30d_credits\": 360,\n \"projected_runway_days\": 157,\n \"tier\": \"pro\",\n \"tier_resets_at\": \"2026-06-01T00:00:00.000Z\"\n}`,\n },\n {\n type: \"heading\",\n level: 3,\n id: \"balance-budget-check\",\n text: \"Example: budget check before batch extraction\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Agent checks balance before processing 50 documents\",\n code: `// User: \"Extract data from all 50 invoices in my workspace\"\n// Agent first checks budget:\n// talonic_get_balance → {}\n\n// Response:\n{\n \"balance_credits\": 120,\n \"balance_eur\": 0.60,\n \"burn_rate_30d_credits\": 360,\n \"projected_runway_days\": 10,\n \"tier\": \"free\",\n \"tier_resets_at\": \"2026-06-01T00:00:00.000Z\"\n}\n\n// Agent: \"You have 120 credits remaining. Extracting 50 documents\n// will cost approximately 50 credits, leaving 70 credits.\n// Your tier resets on June 1st. Shall I proceed?\"`,\n },\n {\n type: \"paragraph\",\n text: \"Budget-aware agents use `talonic_get_balance` to prevent unexpected credit depletion. Before starting a large batch extraction, the agent checks the remaining balance and estimates whether the batch will exceed available credits. If the balance is low, the agent can warn the user, suggest processing a subset, or recommend upgrading the plan. This proactive approach prevents mid-batch failures due to exhausted credits.\",\n },\n {\n type: \"paragraph\",\n text: \"The `tier` field indicates the workspace's API plan: `free`, `pro`, or `enterprise`. Each tier has different daily extraction limits and credit allowances. The `tier_resets_at` timestamp shows when the monthly credit cycle resets, which helps agents answer questions like 'when will my credits refresh?' or 'should I wait for the reset before processing this batch?'. Agents can use this information to advise users on timing large extraction jobs.\",\n },\n {\n type: \"paragraph\",\n text: \"The `burn_rate_30d_credits` field shows total consumption over the trailing 30 days, not a daily average. Agents can divide by 30 to estimate daily usage. Combined with `balance_credits`, this provides a clear picture of workspace sustainability. A high burn rate with a low balance signals the need for a plan upgrade or reduced usage before the next tier reset.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"`talonic_get_balance` is read-only and never consumes credits, so it is always safe to call. Top-ups and plan changes are deliberately not exposed at the MCP layer — for those, send the user to the dashboard at [app.talonic.com](https://app.talonic.com) or the plan overview at [talonic.com/pricing](https://talonic.com/pricing).\",\n },\n ],\n related: [\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n { label: \"talonic_get_pricing\", slug: \"talonic-get-pricing\" },\n { label: \"talonic_get_usage\", slug: \"talonic-get-usage\" },\n ],\n faq: [\n {\n question: \"How do I check my Talonic credit balance from an agent?\",\n answer:\n \"Call talonic_get_balance with no arguments. Returns balance_credits, balance_eur, burn_rate_30d_credits, projected_runway_days, tier, and tier_resets_at. Read-only; safe to call at any time.\",\n },\n {\n question: \"What does projected_runway_days = -1 mean?\",\n answer:\n \"It means the workspace has had zero credit consumption in the trailing 30 days, so a meaningful runway projection cannot be computed. Treat -1 as 'unknown' rather than '0 days'.\",\n },\n {\n question: \"Should the agent check balance before every extraction?\",\n answer:\n \"Not for single extractions — that would add unnecessary latency. Check the balance before batch operations (10+ documents) or when the user explicitly asks about credits. For single extractions, proceed directly and let the API return a quota error if the balance is exhausted.\",\n },\n {\n question: \"How does the agent know the cost of an extraction?\",\n answer:\n \"Each talonic_extract response includes a cost field showing credits consumed for that extraction. Use talonic_get_balance before a batch to check available credits, and after to verify the remaining balance. Single extractions typically cost 1 credit each.\",\n },\n ],\n mentions: [\"credits\", \"balance\", \"EUR\", \"burn rate\", \"runway\", \"tier\", \"budget\"],\n },\n {\n slug: \"talonic-get-pricing\",\n parentSlug: \"tools\",\n title: \"talonic_get_pricing\",\n seoTitle: \"talonic_get_pricing — Credit Pricing Catalog for Agents\",\n description:\n \"MCP tool that returns Talonic's public credit pricing catalog: per-unit rates, EUR equivalents, and batch multipliers, so agents can predict spend upfront.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Returns the credit pricing catalog: fixed per-unit credit rates, their EUR equivalents, the credits-per-EUR conversion rate, and processing-mode multipliers (such as batch at 0.5x). Because the rates are fixed rather than token-based, an agent can read them and compute the exact cost of a planned job before spending a credit. The endpoint is public, so it works even before an API key is provisioned.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"use-when\",\n text: \"When to use\",\n },\n {\n type: \"list\",\n items: [\n \"Estimating the cost of a planned extraction, structuring, or matching job before running it.\",\n \"Answering a user question about how much Talonic costs per page or per operation.\",\n \"Deciding whether a workload fits a budget, especially before signing up.\",\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"do-not-use\",\n text: \"When not to use\",\n },\n {\n type: \"list\",\n items: [\n \"For the workspace's remaining credit balance: use `talonic_get_balance`.\",\n \"For what the workspace has already spent and on what: use `talonic_get_usage`.\",\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"response-shape\",\n text: \"Response shape\",\n },\n {\n type: \"list\",\n items: [\n \"`currency`: billing currency for the EUR equivalents (always `EUR`).\",\n \"`credits_per_eur`: conversion rate between credits and EUR (1,000 credits = 1 EUR at the standard rate).\",\n \"`multipliers`: processing-mode multipliers keyed by mode (e.g. `realtime: 1`, `batch: 0.5`).\",\n \"`units`: array of catalog lines, each with `unit`, `label`, `credits`, `eur`, and `free`.\",\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"currency\": \"EUR\",\n \"credits_per_eur\": 1000,\n \"multipliers\": { \"realtime\": 1, \"batch\": 0.5 },\n \"units\": [\n { \"unit\": \"page_ingest\", \"label\": \"Document page ingestion\", \"credits\": 100, \"eur\": 0.1, \"free\": false },\n { \"unit\": \"structuring_cell\", \"label\": \"Structuring cell (LLM-reasoned)\", \"credits\": 20, \"eur\": 0.02, \"free\": false },\n { \"unit\": \"registry_resolved_cell\", \"label\": \"Structuring cell (Field Registry resolved)\", \"credits\": 0, \"eur\": 0, \"free\": true },\n { \"unit\": \"intelligence_op\", \"label\": \"Intelligence operation (matching, cases, reconciliation)\", \"credits\": 100, \"eur\": 0.1, \"free\": false },\n { \"unit\": \"delivery\", \"label\": \"Delivery (webhook / export)\", \"credits\": 0, \"eur\": 0, \"free\": true },\n { \"unit\": \"validation\", \"label\": \"Validation / quality check\", \"credits\": 0, \"eur\": 0, \"free\": true }\n ]\n}`,\n },\n {\n type: \"heading\",\n level: 3,\n id: \"pricing-estimate-example\",\n text: \"Example: quote a workload before running it\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Agent estimates the cost of a 20-page batch extraction\",\n code: `// User: \"How much will it cost to extract this 20-page contract in batch mode?\"\n// Agent reads pricing:\n// talonic_get_pricing → {}\n\n// page_ingest = 100 credits, batch multiplier = 0.5\n// 20 pages * 100 credits * 0.5 = 1000 credits = 1.00 EUR\n\n// Agent: \"Extracting 20 pages in batch mode costs about 1,000 credits\n// (1.00 EUR). Realtime would be 2,000 credits (2.00 EUR). Proceed in batch?\"`,\n },\n {\n type: \"paragraph\",\n text: \"Cost-aware agents call `talonic_get_pricing` to turn a workload into a concrete quote before committing to it. Multiply the relevant per-unit rate by the expected unit count, then apply the processing-mode multiplier. Because the catalog also returns the credits-per-EUR rate, the agent can present the estimate in either credits or euros without hardcoding any number.\",\n },\n {\n type: \"paragraph\",\n text: \"The catalog distinguishes billable units from free ones. Document page ingestion, structuring cells filled by fresh model reasoning, and intelligence operations carry a cost; Field Registry resolved cells, delivery, and validation are free. A document whose fields are answered entirely from the Field Registry therefore incurs only its page-ingestion cost, which an agent can surface as a reason to reuse schemas across similar documents.\",\n },\n {\n type: \"paragraph\",\n text: \"Pricing pairs naturally with the other two cost tools. Before a job, quote it from the catalog; afterwards, verify what it actually cost with `talonic_get_usage`, whose `operation_type` values match the catalog's unit identifiers, and check the remaining headroom with `talonic_get_balance`. Because every estimate is derived from the live catalog rather than numbers baked into the agent's prompt, quotes stay correct even when Talonic adjusts a rate or adds a new billable unit.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Rates are fixed per unit rather than token-based, so a quote computed from the catalog is exact, not an estimate band. The only variables the agent needs are the unit counts (pages, cells, operations) and the processing mode.\",\n },\n ],\n related: [\n { label: \"talonic_get_usage\", slug: \"talonic-get-usage\" },\n { label: \"talonic_get_balance\", slug: \"talonic-get-balance\" },\n ],\n faq: [\n {\n question: \"Does talonic_get_pricing require an API key?\",\n answer:\n \"No. The pricing catalog is public, so an agent can read rates before signing up or provisioning a key. Call it with no arguments; it is read-only and safe to call at any time.\",\n },\n {\n question: \"How does an agent compute the cost of a job from the catalog?\",\n answer:\n \"Multiply the per-unit credits by the number of units (pages, cells, or operations), then apply the processing-mode multiplier (1 for realtime, 0.5 for batch). Divide by credits_per_eur to express the result in euros.\",\n },\n {\n question: \"Which operations are free in the catalog?\",\n answer:\n \"Field Registry resolved cells, delivery, and validation cost zero credits. Only fresh ingestion, fresh model-reasoned structuring cells, and intelligence operations (matching, cases, reconciliation) are billable.\",\n },\n ],\n mentions: [\n \"pricing\",\n \"credit catalog\",\n \"cost estimation\",\n \"per-page pricing\",\n \"batch discount\",\n \"credits per EUR\",\n \"budget\",\n ],\n },\n {\n slug: \"talonic-get-usage\",\n parentSlug: \"tools\",\n title: \"talonic_get_usage\",\n seoTitle: \"talonic_get_usage — Per-Function Credit Usage Reports\",\n description:\n \"MCP tool that breaks down Talonic credit consumption by platform function over a trailing window (default 30 days), ordered by spend to show cost drivers.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Returns the workspace's credit consumption grouped by platform function over a trailing window, plus the total. Where `talonic_get_balance` reports what is left, this tool reports where the credits went: how much each function (page ingestion, structuring cells, intelligence operations) cost over the period. The breakdown is ordered by spend, highest first, so the dominant cost driver is the first row.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"use-when\",\n text: \"When to use\",\n },\n {\n type: \"list\",\n items: [\n \"The user asks what they have spent credits on, or which function dominates their spend.\",\n \"Reviewing burn by function to decide whether to shift work to batch mode or trim an operation.\",\n \"Producing a spend report for the last N days.\",\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"do-not-use\",\n text: \"When not to use\",\n },\n {\n type: \"list\",\n items: [\n \"For the remaining balance and runway: use `talonic_get_balance`.\",\n \"For per-unit rates before running a job: use `talonic_get_pricing`.\",\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"arguments\",\n text: \"Arguments\",\n },\n {\n type: \"list\",\n items: [\n \"`days` (optional): trailing reporting window in days. Default 30, clamped between 1 and 365.\",\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"response-shape\",\n text: \"Response shape\",\n },\n {\n type: \"list\",\n items: [\n \"`period_days`: length of the reporting window in days.\",\n \"`total_credits`: total credits consumed across all functions in the window.\",\n \"`by_function`: array of `{ operation_type, operations, credits }`, highest spend first.\",\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{ \"days\": 30 }`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"period_days\": 30,\n \"total_credits\": 48200,\n \"by_function\": [\n { \"operation_type\": \"page_ingest\", \"operations\": 412, \"credits\": 41200 },\n { \"operation_type\": \"structuring_cell\", \"operations\": 300, \"credits\": 6000 },\n { \"operation_type\": \"intelligence_op\", \"operations\": 10, \"credits\": 1000 }\n ]\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Agents use `talonic_get_usage` to attribute spend to the functions that caused it. Pairing it with `talonic_get_balance` gives a full picture: balance shows how much is left, usage shows what consumed it, and pricing shows the rate of each function. An agent noticing that page ingestion dominates spend might suggest batch mode for the 0.5x discount, or reusing schemas so more cells resolve from the Field Registry for free.\",\n },\n {\n type: \"paragraph\",\n text: \"The figures read from the credit transaction ledger, so they reconcile exactly with the balance and history reported elsewhere. The `operation_type` values match the unit identifiers in the pricing catalog, which lets an agent join usage to rates and explain not just how many credits a function consumed but why. To express any figure in euros, divide by the credits-per-EUR rate from the pricing catalog.\",\n },\n {\n type: \"paragraph\",\n text: \"A practical reporting pattern: call `talonic_get_usage` with `days: 7` for a weekly report, join each `operation_type` row to its catalog line from `talonic_get_pricing`, and present spend per function in both credits and euros alongside the operation counts. Because the window is clamped to 1–365 days, month-over-month comparisons are two calls with different `days` values — no client-side bookkeeping or stored history is needed.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"`talonic_get_usage` is read-only and free to call. An empty `by_function` breakdown usually means no billable operations were charged in the window — see the FAQ below on shadow-mode metering — so treat it as 'nothing charged', not as an error.\",\n },\n ],\n related: [\n { label: \"talonic_get_pricing\", slug: \"talonic-get-pricing\" },\n { label: \"talonic_get_balance\", slug: \"talonic-get-balance\" },\n ],\n faq: [\n {\n question: \"How is talonic_get_usage different from talonic_get_balance?\",\n answer:\n \"Balance reports what is left (and runway); usage reports what was spent, grouped by function. Use balance to check headroom and usage to attribute spend to extraction, structuring, or intelligence operations.\",\n },\n {\n question: \"What window does talonic_get_usage cover?\",\n answer:\n \"The last 30 days by default. Pass days to change it, anywhere from 1 to 365. The response echoes period_days so the agent can confirm the window it summarized.\",\n },\n {\n question: \"Why is the breakdown empty?\",\n answer:\n \"Per-function rows populate as billable operations are charged. While metering runs in shadow mode the ledger records what each operation would cost without deducting, so the breakdown can be empty until enforcement is enabled. Pricing still returns the rates in the meantime.\",\n },\n ],\n mentions: [\n \"credit usage\",\n \"per-function spend\",\n \"credit consumption\",\n \"burn rate\",\n \"operation type\",\n \"spend report\",\n ],\n },\n {\n slug: \"talonic-request-upload\",\n parentSlug: \"tools\",\n title: \"talonic_request_upload\",\n seoTitle: \"talonic_request_upload — Browser-Handoff File Uploads\",\n description:\n \"MCP tool that mints a browser upload link for files too large for tool-call arguments. Returns a document_id, upload URL, and expiry for hosted connectors.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Request a one-time upload link for a file the agent cannot deliver directly. Returns a pre-allocated `document_id`, a browser-openable `upload_url` the user drops the file into, and an `expires_at` timestamp.\",\n },\n {\n type: \"paragraph\",\n text: \"**`talonic_request_upload`** exists to route around the **~32 KB tool-call argument cap** in hosted-connector environments like Claude.ai's web UI. Above that ceiling, `file_data` on `talonic_extract` is silently truncated and the extraction returns null fields. The browser-handoff flow sidesteps the cap entirely: the user opens the upload URL in a separate tab, drops the file, and the agent then references the resulting document by ID.\",\n },\n {\n type: \"paragraph\",\n text: \"Local-stdio installs (Claude Desktop, Cursor, Cline, Continue, Cowork) do not have this cap and should keep using `file_data` for small-to-medium files. This tool is for the hosted connector path or any sandboxed environment where you can't reliably stream the file through the tool call.\",\n },\n { type: \"heading\", level: 3, id: \"request-upload-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"The user has a file to extract and you are running in a hosted-connector environment (Claude.ai, ChatGPT) where `file_data` is not reliable.\",\n \"The file is larger than ~32 KB (typical for real invoices, contracts, COIs).\",\n \"The user explicitly asks for an upload link.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"request-upload-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"You can deliver the file directly via `file_data` (local-stdio installs with small files).\",\n \"The file is already accessible via a public URL — use `file_url` on `talonic_extract` instead.\",\n \"The document is already in the workspace — use `document_id` on `talonic_extract` instead.\",\n ],\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"filename\",\n type: \"string\",\n required: true,\n description:\n \"Filename with extension (e.g. `invoice.pdf`). Used to pre-allocate the document record and infer MIME type.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{\n \"filename\": \"invoice-2026-001.pdf\"\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"document_id\": \"doc_8f3a2b9c-1d4e-5f6a-7b8c-9d0e1f2a3b4c\",\n \"upload_url\": \"https://app.talonic.com/u/069b8d9a-b05d-41df-8047-129af7c7aad5\",\n \"expires_at\": \"2026-05-28T20:35:00.000Z\"\n}`,\n },\n {\n type: \"heading\",\n level: 3,\n id: \"request-upload-workflow\",\n text: \"End-to-end workflow\",\n },\n {\n type: \"list\",\n ordered: true,\n items: [\n \"Call `talonic_request_upload` with the filename. Capture `document_id`, `upload_url`, and `expires_at` from the response.\",\n \"Show the `upload_url` to the user and ask them to open it in a new browser tab and drop the file.\",\n 'Poll `talonic_get_document` with the `document_id` until `status` is `completed`. **Do not skip this step** — a user confirmation like \"uploaded\" only signals that the browser-side upload finished, not that server-side OCR and processing are done.',\n 'Once `status === \"completed\"`, call `talonic_extract` with the `document_id` and a `schema` or `schema_id` to pull out structured fields.',\n ],\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: 'Server-side processing (OCR + classification) typically takes 10–30 seconds after the browser upload completes. The agent must poll `talonic_get_document` until `status === \"completed\"` before calling `talonic_extract`. Calling extract too early returns errors that look like the file is missing.',\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Full sequence for a Claude.ai hosted-connector chat\",\n code: `// 1. Agent requests an upload link.\n// talonic_request_upload({ filename: \"rental-agreement.pdf\" })\n{\n \"document_id\": \"doc_1a2b3c4d-...\",\n \"upload_url\": \"https://app.talonic.com/u/069b8d9a-...\",\n \"expires_at\": \"2026-05-28T20:35:00.000Z\"\n}\n\n// 2. Agent: \"Open this link in a new tab and drop your file:\n// https://app.talonic.com/u/069b8d9a-...\n// I'll let you know once Talonic is done processing.\"\n\n// 3. After user drops the file, agent polls:\n// talonic_get_document({ document_id: \"doc_1a2b3c4d-...\" })\n// → status: \"processing\" → wait ~10s, poll again\n// → status: \"completed\" → ready to extract\n\n// 4. Agent extracts:\n// talonic_extract({\n// document_id: \"doc_1a2b3c4d-...\",\n// schema_id: \"SCH-RENTAL01\"\n// })\n// → structured JSON with per-field confidence scores`,\n },\n {\n type: \"paragraph\",\n text: \"The pre-allocated `document_id` is a real Talonic document from the moment the upload link is minted, but it stays in `pending` status until the user actually uploads. If the user closes the tab or the link expires (`expires_at`) without uploading, the document remains in `pending` and can be cleaned up via the dashboard. Re-issuing a fresh upload link for the same file is safe: the new link creates a new `document_id` with no link to the abandoned one.\",\n },\n {\n type: \"paragraph\",\n text: \"Agents should treat the `upload_url` as user-only information and never attempt to PUT to it themselves from the sandbox. Most sandboxed environments (Claude.ai's web tools, ChatGPT's Code Interpreter) cannot reach arbitrary S3-like endpoints, and even when they can, asking the user to open the link in their own browser preserves the user-agent boundary and avoids surprising the user with a backend upload they did not consent to.\",\n },\n ],\n related: [\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n { label: \"talonic_get_document\", slug: \"talonic-get-document\" },\n { label: \"Drag & Drop Files\", slug: \"drag-and-drop\" },\n { label: \"Known Limitations\", slug: \"known-limitations\" },\n ],\n faq: [\n {\n question: \"When should the agent use `talonic_request_upload` instead of `file_data`?\",\n answer:\n \"In hosted-connector environments (Claude.ai web, ChatGPT) where tool-call arguments are capped around ~32 KB decoded payload. Real-world documents (100 KB+) get silently truncated when sent via file_data. Local-stdio installs (Claude Desktop, Cursor, Cline, Continue, Cowork) have no such cap and can keep using file_data.\",\n },\n {\n question: \"Does a user message like 'uploaded' mean the file is ready to extract?\",\n answer:\n \"No. That confirms only the browser-side upload finished. Server-side OCR and extraction typically need another 10–30 seconds. The agent must poll talonic_get_document until status is 'completed' before calling talonic_extract; calling earlier may return errors that look like the file is missing.\",\n },\n {\n question: \"What happens if the user never opens the upload link?\",\n answer:\n \"The pre-allocated document_id remains in pending status. The expires_at timestamp indicates when the upload URL stops accepting writes — typically a short window (minutes). Past that, request a fresh link with talonic_request_upload again; the new call mints a new document_id and a new URL.\",\n },\n {\n question: \"Can the agent PUT the file to the upload_url itself?\",\n answer:\n \"It usually cannot — Claude.ai's sandbox and similar hosted environments restrict outbound egress to arbitrary endpoints. Even where it would technically work, you should still hand the link to the user: it preserves the user-agent boundary (the user controls what file gets uploaded) and matches what every other browser-handoff flow looks like.\",\n },\n {\n question: \"How do I keep a company's files together, and make them workspace data?\",\n answer:\n \"Pass `account` (a company name, alias or id from talonic_list_accounts; create one with talonic_create_account) so the document belongs to that company, and `add_to_workspace: true` so it is processed fully (values, Field Registry, questions, SQL) instead of text only. Without add_to_workspace the document is prepared for a single talonic_extract call.\",\n },\n {\n question: \"Why a separate tool instead of changing `talonic_extract`?\",\n answer:\n \"Keeping the upload-link step explicit makes the agent's reasoning visible to the user (the user sees an upload link in chat and knows what's happening). Folding it into talonic_extract would either silently change the contract for small files or introduce a hidden mode switch — both bad for predictability.\",\n },\n ],\n mentions: [\n \"upload\",\n \"browser-handoff\",\n \"presigned URL\",\n \"document_id\",\n \"Claude.ai\",\n \"32 KB cap\",\n ],\n },\n {\n slug: \"talonic-list-accounts\",\n parentSlug: \"tools\",\n title: \"talonic_list_accounts\",\n seoTitle: \"talonic_list_accounts — List Per-Company Workspace Accounts\",\n description:\n \"MCP tool that lists the companies a Talonic workspace keeps apart (portfolio companies, clients), so uploads, questions and SQL stay separate per company.\",\n content: [\n { type: \"heading\", level: 3, id: \"list-accounts-when-to-use\", text: \"When to use\" },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"Before uploading a company's files, to get the account name to pass as `account`.\",\n \"To see which companies the workspace holds.\",\n ],\n },\n {\n type: \"paragraph\",\n text: \"List the workspace's accounts. An account is a company (portfolio company, client, entity) inside one workspace; each document belongs to at most one, so questions and SQL can be answered per company and never mix two companies' files.\",\n },\n {\n type: \"paragraph\",\n text: \"Use it before uploading a company's files: pass the account name as `account` on `talonic_request_upload`. No parameters. Returns `data[]` of `{ id, name, aliases[], description, created_at }`.\",\n },\n ],\n related: [\n {\n label: \"talonic_request_upload\",\n slug: \"talonic-request-upload\",\n },\n ],\n faq: [\n {\n question: \"What if the company is missing?\",\n answer:\n \"Create it with talonic_create_account, then upload with `account` set to its name.\",\n },\n ],\n mentions: [\"account\", \"company\", \"portfolio company\", \"upload\"],\n },\n {\n slug: \"talonic-create-account\",\n parentSlug: \"tools\",\n title: \"talonic_create_account\",\n seoTitle: \"talonic_create_account — Add a Company Account to Talonic\",\n description:\n \"MCP tool that creates a company account in a Talonic workspace, with aliases, so its documents, answers and SQL are kept apart from every other company.\",\n content: [\n { type: \"heading\", level: 3, id: \"create-account-when-to-use\", text: \"When to use\" },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"The user is adding files for a company talonic_list_accounts does not show.\",\n \"Setting up a new workspace with one account per portfolio company.\",\n ],\n },\n {\n type: \"paragraph\",\n text: \"Create an account for a company the workspace does not have yet. Parameters: `name` (required), `aliases` (other names it appears under in documents, e.g. its legal name), `description`.\",\n },\n {\n type: \"paragraph\",\n text: \"Returns `{ id, name, aliases[], description, created_at }`. A name already in use returns 409.\",\n },\n ],\n related: [\n {\n label: \"talonic_request_upload\",\n slug: \"talonic-request-upload\",\n },\n ],\n faq: [\n {\n question: \"Why give aliases?\",\n answer:\n 'Documents name the same company differently (\"Filu\", \"Filu Group GmbH\"). Aliases let uploads and questions refer to the account by any of those names.',\n },\n ],\n mentions: [\"account\", \"company\", \"portfolio company\", \"upload\"],\n },\n {\n slug: \"talonic-list-agent-tasks\",\n parentSlug: \"tools\",\n title: \"talonic_list_agent_tasks\",\n seoTitle: \"talonic_list_agent_tasks — Agent Worklist for Documents\",\n description:\n \"MCP tool that lists Agent-stage tasks awaiting external processing in your Talonic workspace — metadata only, with status filters and cursor pagination.\",\n content: [\n {\n type: \"paragraph\",\n text: \"List Agent-stage tasks visible to the current workspace credential. The response contains task metadata and cursor pagination; payload data is deliberately fetched one task at a time so each disclosure can be audited.\",\n },\n {\n type: \"paragraph\",\n text: \"Agent stages are pipeline steps that park a running document until an external agent supplies a set of declared output fields — a risk assessment, an enrichment lookup, a judgment call the pipeline cannot make itself. When a document reaches an enabled Agent stage, the platform captures an immutable input snapshot, creates a task, and waits. This tool is the entry point of the pull workflow: it shows what work exists without exposing any document data.\",\n },\n {\n type: \"paragraph\",\n text: \"Each row in `data[]` carries identifiers (`id`, `document_id`, `pipeline_id`, `stage_id`), the lifecycle `status` (`available`, `claimed`, `submitted`, `timed_out`, or `cancelled`), the current `execution_epoch`, and the timing fields `claimed_at`, `lease_expires_at`, `timeout_at`, `submitted_at`, and `created_at`. That is enough to decide which task to inspect next — and nothing more, by design. `pagination.has_more` and `pagination.next_cursor` drive paging.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"list-agent-tasks-workflow\",\n text: \"Start the pull workflow\",\n },\n {\n type: \"list\",\n ordered: true,\n items: [\n 'Call `talonic_list_agent_tasks` with `status: \"available\"`.',\n \"Inspect a candidate with `talonic_get_agent_task`.\",\n \"Claim it with `talonic_claim_agent_task` before doing work.\",\n \"Heartbeat while processing, then submit only fields declared in `output_contract`.\",\n ],\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"status\",\n type: \"available | claimed | submitted | timed_out | cancelled\",\n description:\n \"Optional lifecycle-state filter. Start with `available` when looking for work.\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n description: \"Page size from 1 to 100. Defaults to 50.\",\n },\n {\n name: \"cursor\",\n type: \"string\",\n description: \"Opaque `pagination.next_cursor` from the previous page.\",\n },\n {\n name: \"pipeline_id\",\n type: \"uuid\",\n description:\n \"Optional: only this pipeline's tasks. To take a batch, list with `pipeline_id` and `status: available`, then claim each; skip a task that returns HTTP 409 (another agent took it).\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input and response\",\n code: `// talonic_list_agent_tasks({ \"status\": \"available\", \"limit\": 2 })\n{\n \"data\": [\n {\n \"id\": \"11111111-1111-4111-8111-111111111111\",\n \"document_id\": \"22222222-2222-4222-8222-222222222222\",\n \"stage_id\": \"33333333-3333-4333-8333-333333333333\",\n \"status\": \"available\",\n \"execution_epoch\": 1,\n \"claimed_at\": null,\n \"lease_expires_at\": null,\n \"timeout_at\": \"2026-08-30T12:00:00.000Z\",\n \"created_at\": \"2026-08-29T09:15:00.000Z\"\n }\n ],\n \"pagination\": { \"has_more\": false, \"next_cursor\": null }\n}`,\n },\n {\n type: \"paragraph\",\n text: 'For a long-running worker loop, list with `status: \"available\"` on a modest interval rather than a tight poll, and page with `cursor` only when `has_more` is true. Filtering by `claimed` or `timed_out` is useful for supervision — spotting tasks another worker abandoned (their lease expired but they were never resubmitted) that are now eligible for reclaiming via `talonic_claim_agent_task`.',\n },\n {\n type: \"callout\",\n text: \"An empty worklist is normal: tasks exist only when a running document reaches an enabled Agent stage and the credential's Sources-IAM rules allow it.\",\n },\n ],\n related: [\n { label: \"talonic_get_agent_task\", slug: \"talonic-get-agent-task\" },\n { label: \"talonic_claim_agent_task\", slug: \"talonic-claim-agent-task\" },\n { label: \"talonic_submit_agent_task\", slug: \"talonic-submit-agent-task\" },\n ],\n faq: [\n {\n question: \"Does listing Agent tasks expose document data?\",\n answer:\n \"No. The list returns metadata only. Fetching one task's immutable input snapshot uses talonic_get_agent_task and is recorded as an audited disclosure.\",\n },\n {\n question: \"What do the Agent task statuses mean?\",\n answer:\n \"available means no one holds the task; claimed means an agent holds a live lease; submitted means outputs were accepted and the document resumed; timed_out means the stage's deadline passed without a submission; cancelled means the platform withdrew the task, for example because the document was removed or the stage was reconfigured.\",\n },\n {\n question: \"How does pagination work on the Agent-task worklist?\",\n answer:\n \"Pass limit (1-100, default 50) to size the page. When pagination.has_more is true, pass the opaque pagination.next_cursor value as cursor on the next call. Cursors encode a position, not a filter, so keep the same status filter across pages.\",\n },\n ],\n mentions: [\"Agent stage\", \"worklist\", \"MCP agent\", \"cursor pagination\"],\n },\n {\n slug: \"talonic-get-agent-task\",\n parentSlug: \"tools\",\n title: \"talonic_get_agent_task\",\n seoTitle: \"talonic_get_agent_task — Fetch an Agent Task's Payload\",\n description:\n \"MCP tool that fetches one Agent task's immutable input snapshot, instructions, and declared output contract. Every payload fetch is an audited disclosure.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Fetch the immutable input snapshot captured when one document reached an Agent stage. The payload also carries stage instructions, timeout policy, and the only output fields the agent may return.\",\n },\n {\n type: \"paragraph\",\n text: \"The payload extends the metadata from `talonic_list_agent_tasks` with four fields. `input_snapshot` is the frozen view of the document's extracted data at the moment it entered the stage — later edits to the document do not leak into a running task. `output_contract` declares every field the agent may submit, each with a key, a `dataType`, and a `required` flag. `instructions` is the stage author's free-text brief. `timeout_fallthrough` (`hold`, `skip`, or `route_to_review`) says what happens to the document if nobody submits before `timeout_at`.\",\n },\n {\n type: \"paragraph\",\n text: \"Fetching a task does not lease it: another agent can still claim the work while you are reading it. Treat get as the inspection step — confirm the instructions and contract are something you can actually fulfil — then take the lease with `talonic_claim_agent_task` before doing any real processing. If a claim races you to it, pick another task from the list rather than waiting on that one.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Task ID returned by `talonic_list_agent_tasks`.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{ \"task_id\": \"11111111-1111-4111-8111-111111111111\" }`,\n },\n {\n type: \"paragraph\",\n text: \"Payload access is deliberately narrow. The worklist never includes snapshots, and each `talonic_get_agent_task` call is recorded as an audited disclosure of that document's data to the calling credential. Fetch payloads for tasks you actually intend to process rather than sweeping the queue — it keeps the audit trail meaningful and avoids disclosing document contents your workflow never needed.\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Key response fields\",\n code: `{\\n \"id\": \"11111111-1111-4111-8111-111111111111\",\\n \"status\": \"available\",\\n \"input_snapshot\": { \"vendor_name\": { \"value\": \"Acme\" } },\\n \"output_contract\": [\\n { \"key\": \"risk_score\", \"dataType\": \"number\", \"required\": true }\\n ],\\n \"instructions\": \"Assess supplier risk from the supplied evidence.\",\\n \"timeout_fallthrough\": \"route_to_review\"\\n}`,\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"Fetching a task payload is an audited data disclosure. Do not fetch tasks speculatively; inspect metadata first and fetch only work you intend to evaluate.\",\n },\n ],\n related: [\n { label: \"talonic_list_agent_tasks\", slug: \"talonic-list-agent-tasks\" },\n { label: \"talonic_claim_agent_task\", slug: \"talonic-claim-agent-task\" },\n ],\n faq: [\n {\n question: \"Can the snapshot change while an agent processes it?\",\n answer:\n \"No. It is captured when the document enters the Agent stage and remains immutable for that task. Results are validated against the accompanying output_contract.\",\n },\n {\n question: \"Does fetching an Agent task claim it?\",\n answer:\n \"No. talonic_get_agent_task is read-only; the task stays available and another agent can claim it while you inspect. Call talonic_claim_agent_task to take the lease before processing.\",\n },\n {\n question: \"What does timeout_fallthrough mean?\",\n answer:\n \"It is the stage's policy for a task nobody submits before timeout_at: hold keeps the document parked, skip lets the document continue without the agent outputs, and route_to_review sends it to human review. Use it to judge how urgent a task is.\",\n },\n ],\n mentions: [\"immutable snapshot\", \"output contract\", \"audit trail\", \"document task\"],\n },\n {\n slug: \"talonic-claim-agent-task\",\n parentSlug: \"tools\",\n title: \"talonic_claim_agent_task\",\n seoTitle: \"talonic_claim_agent_task — Lease an Agent Task Safely\",\n description:\n \"MCP tool that claims an available Agent task before processing. Returns the payload plus an execution epoch and lease so two agents never collide on a task.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Claim a task before processing. A successful claim returns the full payload plus a new `execution_epoch` and `lease_expires_at`; both prevent two agents from writing results for the same task.\",\n },\n {\n type: \"paragraph\",\n text: \"The claim is the concurrency boundary of the Agent-task workflow. Listing and fetching are read-only and race-free; the moment real work starts, exactly one actor must own the task. The lease makes ownership crash-safe — if the claimant dies, the lease simply expires and the task becomes reclaimable — while the epoch makes ownership unambiguous: whichever claim is newest wins, and everything an older claimant tries to write afterwards is rejected.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Available task to claim, or an expired claim to reclaim.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input and response (payload fields elided)\",\n code: `// talonic_claim_agent_task({ \"task_id\": \"11111111-1111-4111-8111-111111111111\" })\n{\n \"id\": \"11111111-1111-4111-8111-111111111111\",\n \"status\": \"claimed\",\n \"execution_epoch\": 2,\n \"claimed_at\": \"2026-08-29T10:00:00.000Z\",\n \"lease_expires_at\": \"2026-08-29T10:10:00.000Z\",\n \"input_snapshot\": { \"...\": \"full payload, same shape as talonic_get_agent_task\" },\n \"output_contract\": [{ \"key\": \"risk_score\", \"dataType\": \"number\", \"required\": true }],\n \"instructions\": \"Assess supplier risk from the supplied evidence.\"\n}`,\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"A live claim held by another actor returns HTTP 409. Do not retry in a tight loop. Select another available task or wait until the lease expires.\",\n },\n {\n type: \"paragraph\",\n text: \"Save the returned `execution_epoch`. Every heartbeat and submit must echo that exact epoch. Reclaiming an expired lease increments it, permanently invalidating work from the earlier claimant.\",\n },\n {\n type: \"paragraph\",\n text: \"Because a successful claim returns the complete payload, a worker that goes straight from the list to a claim never needs a separate `talonic_get_agent_task` call — inspect-then-claim is for when you want to read before committing, claim-directly is for when the worklist row is enough. After claiming, do the work, heartbeat if the lease is running short, and finish with a single `talonic_submit_agent_task` call.\",\n },\n ],\n related: [\n { label: \"talonic_heartbeat_agent_task\", slug: \"talonic-heartbeat-agent-task\" },\n { label: \"talonic_submit_agent_task\", slug: \"talonic-submit-agent-task\" },\n ],\n faq: [\n {\n question: \"What is an execution epoch?\",\n answer:\n \"It is the claim generation. Each successful claim or reclaim receives a new integer; stale epochs are rejected so an expired worker cannot overwrite a newer worker's result.\",\n },\n {\n question: \"Can I claim a task that is already claimed?\",\n answer:\n \"Only once its lease has expired. A live claim by another actor returns HTTP 409; after lease_expires_at passes without a heartbeat, the same claim call succeeds as a reclaim and increments the execution epoch.\",\n },\n {\n question: \"What happens if I claim a task and never finish it?\",\n answer:\n \"Nothing is written. The lease expires, the task becomes reclaimable, and if timeout_at passes with no submission the stage's timeout_fallthrough policy (hold, skip, or route_to_review) decides what happens to the document. Abandoning a claim never corrupts data — it only delays the document.\",\n },\n ],\n mentions: [\"claim lease\", \"execution epoch\", \"conflict\", \"reclaim\"],\n },\n {\n slug: \"talonic-heartbeat-agent-task\",\n parentSlug: \"tools\",\n title: \"talonic_heartbeat_agent_task\",\n seoTitle: \"talonic_heartbeat_agent_task — Keep a Task Lease Alive\",\n description:\n \"MCP tool that extends the lease on a claimed Agent task using its execution epoch, so long-running work is not reassigned to another agent mid-processing.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Extend the lease for a task you already claimed. Heartbeat before `lease_expires_at` when processing may take longer than the remaining lease window.\",\n },\n {\n type: \"paragraph\",\n text: \"A heartbeat is a cheap, targeted call: it echoes the `task_id` and the `execution_epoch` from your claim, and the platform pushes `lease_expires_at` forward. The response is the task's refreshed metadata — no payload — so the field to read is the new `lease_expires_at`, which becomes your next deadline. Heartbeat only while genuine processing is under way; a worker that heartbeats forever without submitting is indistinguishable from a stuck one and holds the document hostage until `timeout_at`.\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input and response (metadata only)\",\n code: `// talonic_heartbeat_agent_task({\n// \"task_id\": \"11111111-1111-4111-8111-111111111111\",\n// \"execution_epoch\": 2\n// })\n{\n \"id\": \"11111111-1111-4111-8111-111111111111\",\n \"status\": \"claimed\",\n \"execution_epoch\": 2,\n \"lease_expires_at\": \"2026-08-29T10:20:00.000Z\",\n \"timeout_at\": \"2026-08-30T12:00:00.000Z\"\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Treat a failed heartbeat as a hard stop. HTTP 409 means the epoch is stale — the lease lapsed and someone reclaimed the task — so any result you were computing now belongs to a claim that no longer exists and will be rejected on submit. Discard the work, return to `talonic_list_agent_tasks`, and pick up something new rather than racing the current owner.\",\n },\n {\n type: \"paragraph\",\n text: \"The lease and the stage timeout are separate clocks. Heartbeats move `lease_expires_at`, which governs who owns the task; they never move `timeout_at`, the stage-level deadline after which the platform applies the task's `timeout_fallthrough` policy. A worker can therefore hold a perfectly healthy lease and still lose the task to a stage timeout if processing drags on too long — budget the work against `timeout_at`, not just the lease.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Claimed task ID.\",\n },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"Exact epoch returned by the current successful claim.\",\n },\n ],\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"A stale epoch or a claim owned by another actor returns HTTP 409. Stop work and do not submit results after that conflict.\",\n },\n ],\n related: [\n { label: \"talonic_claim_agent_task\", slug: \"talonic-claim-agent-task\" },\n { label: \"talonic_submit_agent_task\", slug: \"talonic-submit-agent-task\" },\n ],\n faq: [\n {\n question: \"How often should an agent heartbeat?\",\n answer:\n \"Only when needed, comfortably before lease_expires_at. Use the updated lease expiry returned by each successful heartbeat rather than a fixed client-side assumption.\",\n },\n {\n question: \"What does a heartbeat return?\",\n answer:\n \"The task's refreshed metadata, including the new lease_expires_at and the current execution_epoch. It never returns the payload — the input snapshot was already delivered by the claim.\",\n },\n {\n question: \"My heartbeat returned HTTP 409 — can I still submit?\",\n answer:\n \"No. A 409 means your execution epoch is stale: the lease expired and the task was reclaimed or withdrawn. Submits with that epoch will also be rejected, so discard the in-flight work and claim a different task.\",\n },\n ],\n mentions: [\"heartbeat\", \"lease expiry\", \"execution epoch\", \"long-running task\"],\n },\n {\n slug: \"talonic-submit-agent-task\",\n parentSlug: \"tools\",\n title: \"talonic_submit_agent_task\",\n seoTitle: \"talonic_submit_agent_task — Submit Typed Task Outputs\",\n description:\n \"MCP tool that submits declared, typed outputs for a claimed Agent task in one transaction, validated against the output contract, resuming the document.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Return the result of a claimed Agent task. Output keys must match `output_contract` exactly, required fields must be present, and every value must match its declared data type. The platform validates the entire result before writing any cell.\",\n },\n {\n type: \"paragraph\",\n text: \"Submit is the last call of the pull workflow — list, get, claim, heartbeat, submit — and the only one that changes the document. It requires the `task_id` plus the exact `execution_epoch` from your claim; a stale epoch is rejected with HTTP 409 just as it is on heartbeats, which is what makes the workflow safe to run from several workers at once.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"task_id\", type: \"UUID\", required: true, description: \"Claimed task ID.\" },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"Exact epoch from the current claim.\",\n },\n {\n name: \"outputs\",\n type: \"object\",\n required: true,\n description:\n \"Declared field key to `{ value, confidence?, reasoning?, escalate?, quote?, document_id? }`. Confidence is 0–1; reasoning is at most 4,000 characters. On Agentic Review (product) tasks, `escalate: true` hands the field to a human instead of writing it (`value` is the proposal, `reasoning` the reason); `quote` + `document_id` give verbatim evidence for a changed value, required when the task's autonomy sets `requireQuote` (an unverified change is escalated, not written).\",\n },\n {\n name: \"summary\",\n type: \"string\",\n description: \"Optional overall result summary, at most 4,000 characters.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Submit result\",\n code: `{\\n \"task_id\": \"11111111-1111-4111-8111-111111111111\",\\n \"execution_epoch\": 3,\\n \"outputs\": {\\n \"risk_score\": {\\n \"value\": 0.72,\\n \"confidence\": 0.88,\\n \"reasoning\": \"Two adverse indicators in the supplied evidence.\"\\n }\\n },\\n \"summary\": \"Supplier requires enhanced review.\"\\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Validation is all-or-nothing. Every output key must exist in the task's `output_contract`, every `required` field must be present, and every `value` must match its declared data type. If any check fails, the platform rejects the whole submission and writes nothing — there is no partially-filled result to clean up. On success the task's status moves to `submitted`, the response returns the task's metadata, and the parked document resumes through the rest of its pipeline with your values in place.\",\n },\n {\n type: \"paragraph\",\n text: \"The optional `confidence` (0–1) and `reasoning` (up to 4,000 characters) accompany each value into the document's audit trail, and `summary` describes the result as a whole. Filling them in is worth the tokens: reviewers see them next to the value when deciding whether to trust it, and they are the only trace of why the agent answered as it did once the conversation that produced the answer is gone.\",\n },\n {\n type: \"callout\",\n text: \"Successful outputs are attributed to `AI Agent (MCP)` in the audit trail and stored with `mcp_agent` provenance. They do not receive human-review authority in v1.\",\n },\n ],\n related: [\n { label: \"talonic_get_agent_task\", slug: \"talonic-get-agent-task\" },\n { label: \"talonic_claim_agent_task\", slug: \"talonic-claim-agent-task\" },\n { label: \"talonic_heartbeat_agent_task\", slug: \"talonic-heartbeat-agent-task\" },\n ],\n faq: [\n {\n question: \"Can an Agent task return extra fields it discovered?\",\n answer:\n \"No. Undeclared fields and invalid types are rejected before any value is written. Add desired outputs to the Agent stage contract first, then run a new document task.\",\n },\n {\n question: \"What happens if my submission fails validation?\",\n answer:\n \"Nothing is written — the submit is transactional. The task stays claimed under your execution epoch, so fix the outputs to match the contract and submit again before the lease expires.\",\n },\n {\n question: \"Can I resubmit or amend after a successful submit?\",\n answer:\n \"No. A successful submit is terminal for that task: the status becomes submitted and the document resumes. Corrections happen downstream — in review or by rerunning the document — not by a second submit.\",\n },\n ],\n mentions: [\"transactional submit\", \"AI Agent (MCP)\", \"mcp_agent\", \"typed outputs\"],\n },\n {\n slug: \"talonic-list-decision-tasks\",\n parentSlug: \"tools\",\n title: \"talonic_list_decision_tasks\",\n seoTitle: \"talonic_list_decision_tasks — App Decision Inbox for Agents\",\n description:\n \"MCP tool that lists an External-mode app's decision tasks, the runs parked for an outside agent to decide, with status filters and cursor-based pagination.\",\n content: [\n {\n type: \"paragraph\",\n text: \"List the decision tasks of one Talonic App, newest first. A decision task is how an **External-mode** app hands a run's decision to an agent outside the platform: the run assembles its input package, freezes it, enters `awaiting_decision`, and offers a task. This tool is the polling alternative to the `app.decision_task.offered` webhook and the entry point of the decision workflow.\",\n },\n {\n type: \"paragraph\",\n text: \"Each row in `data[]` carries identifiers (`id`, `run_id`, `app_id`), the lifecycle `status`, the current `execution_epoch`, the lease settings (`lease_seconds`, `claimed_by`, `claimed_at`, `lease_expires_at`, `heartbeat_at`), the hard `sla_deadline_at`, and `submitted_at` / `created_at`. The input package is never inlined here: it is read page by page after a claim, and every page read is journaled onto the run.\",\n },\n {\n type: \"callout\",\n text: 'Every one of these tools runs at the platform\\'s `decide` tier. A `tlnc_` workspace API key needs a `decide` grant on the app. An OAuth connector session (Claude.ai) needs the `apps:decide` scope — consented in person when the connector is added, never pre-consented — plus a live workspace role of `senior_member` or above; the claim is then recorded as the client acting for that person (\"Claude for Jane Doe\"). Web sessions are refused. A 403 names what is missing (`decide_grant_required`, `insufficient_scope`, `insufficient_tier`); the agent should report it rather than retry.',\n },\n {\n type: \"heading\",\n level: 3,\n id: \"list-decision-tasks-workflow\",\n text: \"The decision workflow\",\n },\n {\n type: \"list\",\n ordered: true,\n items: [\n 'Call `talonic_list_decision_tasks` with the `app_id` and `status: \"available\"`.',\n \"Claim a task with `talonic_claim_decision_task`; the claim returns the output contract, precedents and the package descriptor.\",\n \"Read the frozen input package with `talonic_read_decision_package`, page by page from `package.first_cursor`.\",\n \"Heartbeat with `talonic_heartbeat_decision_task` while deciding, then finish with `talonic_submit_decision_task` — or `talonic_release_decision_task` / `talonic_fail_decision_task`.\",\n ],\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"app_id\",\n type: \"UUID\",\n required: true,\n description: \"The External-mode app whose inbox to read.\",\n },\n {\n name: \"status\",\n type: \"available | claimed | submitted | released | failed | timed_out | cancelled\",\n description:\n \"Optional lifecycle-state filter. Start with `available` when looking for work.\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n description: \"Page size from 1 to 100. Defaults to 50.\",\n },\n {\n name: \"cursor\",\n type: \"string\",\n description: \"Opaque `pagination.next_cursor` from the previous page.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input and response\",\n code: `// talonic_list_decision_tasks({ \"app_id\": \"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa\", \"status\": \"available\", \"limit\": 1 })\n{\n \"data\": [\n {\n \"id\": \"11111111-1111-4111-8111-111111111111\",\n \"customer_id\": \"cccccccc-cccc-4ccc-8ccc-cccccccccccc\",\n \"run_id\": \"22222222-2222-4222-8222-222222222222\",\n \"app_id\": \"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa\",\n \"status\": \"available\",\n \"execution_epoch\": 0,\n \"input_package_ref\": \"run\",\n \"lease_seconds\": 120,\n \"claimed_by\": null,\n \"claimed_at\": null,\n \"lease_expires_at\": null,\n \"heartbeat_at\": null,\n \"sla_deadline_at\": \"2026-09-22T10:10:00.000Z\",\n \"submitted_at\": null,\n \"created_at\": \"2026-09-22T10:00:00.000Z\",\n \"updated_at\": \"2026-09-22T10:00:00.000Z\"\n }\n ],\n \"pagination\": { \"has_more\": false, \"next_cursor\": null }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"`sla_deadline_at` is the decision SLA (default 10 minutes, configurable per app): if no valid decision arrives by then, the platform applies the app's declared fallback policy — a resident rule set decides, the run parks as a system-raised review, or the run fails. Filtering by `claimed` or `timed_out` is useful for supervision; a task whose lease expired is eligible for reclaiming.\",\n },\n ],\n related: [\n { label: \"talonic_claim_decision_task\", slug: \"talonic-claim-decision-task\" },\n { label: \"talonic_read_decision_package\", slug: \"talonic-read-decision-package\" },\n { label: \"talonic_submit_decision_task\", slug: \"talonic-submit-decision-task\" },\n { label: \"talonic_list_agent_tasks\", slug: \"talonic-list-agent-tasks\" },\n ],\n faq: [\n {\n question: \"How is a decision task different from an Agent task?\",\n answer:\n \"An Agent task parks one document at a pipeline stage and asks for declared output fields. A decision task parks one App run and asks for the run's decision: the outcome is validated against the app's output contract, must cite evidence from the frozen input package, and is written to the app's ledger with decided_by.type external_agent. The two protocols share the lease, heartbeat and execution-epoch mechanics.\",\n },\n {\n question:\n \"Why does the tool return 403 insufficient_scope, or carry talonic/can_invoke: false in its _meta?\",\n answer:\n \"The decide tier is an independent grant: operate does not imply it. A tlnc_ key needs a decide grant on that app, granted by a workspace owner. An OAuth connector session needs the apps:decide scope and a senior_member role or above, read live on every call. If the connector was added before the scope existed, its token lacks it: the hosted server then lists the seven tools flagged with _meta.talonic/can_invoke: false (descriptions stay unchanged), and the fix is to remove and re-add the Talonic connector so the consent screen offers 'Claim and decide tasks'.\",\n },\n {\n question: \"What do the decision task statuses mean?\",\n answer:\n \"available means no one holds the task; claimed means an agent holds a live lease; submitted means a decision was accepted and the run resumed; released means the claimant gave it back (it returns to available); failed means the claimant declared it undecidable and the fallback applied; timed_out means the SLA passed; cancelled means the run was cancelled or the task withdrawn.\",\n },\n ],\n mentions: [\n \"decision task\",\n \"External mode\",\n \"Talonic Apps\",\n \"decide grant\",\n \"cursor pagination\",\n ],\n },\n {\n slug: \"talonic-claim-decision-task\",\n parentSlug: \"tools\",\n title: \"talonic_claim_decision_task\",\n seoTitle: \"talonic_claim_decision_task — Lease an App Decision Task\",\n description:\n \"MCP tool that claims an External-mode decision task and returns the bundle: a fresh execution epoch, the output contract, precedents and a package descriptor.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Take the exclusive lease on a decision task. A successful claim bumps `execution_epoch`, sets `lease_expires_at`, and returns everything needed to decide except the records themselves: the `task` metadata, the `output_contract` the decision must satisfy, the `precedents` reference block (resolved reviews on similar runs), and a `package` descriptor.\",\n },\n {\n type: \"paragraph\",\n text: \"There is no separate fetch step in this protocol: claiming **is** the payload disclosure, and it is journaled onto the run. The claim is an exclusive lease with a default TTL of 120 seconds (configurable per app), clamped by the task's SLA deadline. A task whose lease lapsed can be reclaimed; the epoch moves on and the previous claimant's submit is rejected.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Task ID from `talonic_list_decision_tasks` or the offered webhook.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Claim response\",\n code: `// talonic_claim_decision_task({ \"task_id\": \"11111111-1111-4111-8111-111111111111\" })\n{\n \"task\": {\n \"id\": \"11111111-1111-4111-8111-111111111111\",\n \"run_id\": \"22222222-2222-4222-8222-222222222222\",\n \"app_id\": \"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa\",\n \"status\": \"claimed\",\n \"execution_epoch\": 1,\n \"lease_seconds\": 120,\n \"claimed_by\": \"kkkkkkkk-kkkk-4kkk-8kkk-kkkkkkkkkkkk\",\n \"lease_expires_at\": \"2026-09-22T10:02:00.000Z\",\n \"sla_deadline_at\": \"2026-09-22T10:10:00.000Z\",\n \"...\": \"remaining metadata as in the list\"\n },\n \"output_contract\": {\n \"type\": \"object\",\n \"required\": [\"approve\"],\n \"properties\": {\n \"approve\": { \"type\": \"boolean\" },\n \"hold_reason\": { \"type\": \"string\" }\n }\n },\n \"precedents\": [],\n \"package\": {\n \"package_kind\": \"records\",\n \"record_count\": 3,\n \"page_size\": 500,\n \"first_cursor\": \"eyJvZmZzZXQiOjB9\",\n \"documents\": [\n {\n \"document_id\": \"dddddddd-dddd-4ddd-8ddd-dddddddddddd\",\n \"filename\": \"invoice-4711.pdf\",\n \"mime_type\": \"application/pdf\",\n \"file_url\": \"/v1/documents/dddddddd-dddd-4ddd-8ddd-dddddddddddd/file\"\n }\n ]\n }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"`output_contract` arrives in the manifest's own convention: a plain contract is the bare JSON Schema the `outcome` validates against; a `verdict_matrix` or `record_set` contract is wrapped with its `kind` so the agent knows which envelope to submit. `package.first_cursor` is `null` when the package has no records. `package_kind` is `mining_round` for a rule-mining round driven from outside, whose package is one record holding the round's prompts and tool listing.\",\n },\n {\n type: \"callout\",\n text: \"Save `execution_epoch` from the claim. Heartbeat, submit, release and fail all require it; a stale epoch is HTTP 409 and never enters the ledger.\",\n },\n ],\n related: [\n { label: \"talonic_read_decision_package\", slug: \"talonic-read-decision-package\" },\n { label: \"talonic_heartbeat_decision_task\", slug: \"talonic-heartbeat-decision-task\" },\n { label: \"talonic_submit_decision_task\", slug: \"talonic-submit-decision-task\" },\n ],\n faq: [\n {\n question: \"Can I inspect a decision task before claiming it?\",\n answer:\n \"Only its metadata, through the list. The platform discloses the output contract, precedents and package only to the claimant, and journals that disclosure. Claim, read, and release it if it is not yours to decide.\",\n },\n {\n question: \"What happens when two agents claim the same task?\",\n answer:\n \"The second claim returns HTTP 409 while the first lease is live. Once the lease expires without a heartbeat, the task can be reclaimed; the epoch is bumped and any submit carrying the old epoch is rejected.\",\n },\n ],\n mentions: [\"claim\", \"exclusive lease\", \"execution epoch\", \"output contract\", \"precedents\"],\n },\n {\n slug: \"talonic-read-decision-package\",\n parentSlug: \"tools\",\n title: \"talonic_read_decision_package\",\n seoTitle: \"talonic_read_decision_package — Read a Frozen Input Package\",\n description:\n \"MCP tool that pages through a claimed decision task's frozen input package: the records and provenance locators the decision must rest on, with opaque cursors.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read the run's frozen input package, one page at a time. The package was assembled and enriched when the run started and is served exactly as persisted; nothing is added at read time, so every claimant of the same task sees the same bytes. Only the client holding the live claim may read it (anyone else gets HTTP 409), and each page read journals a `package_read` event onto the run.\",\n },\n {\n type: \"paragraph\",\n text: \"Each record in `data[]` is `{ binding, index, record }` — the input binding alias, the record's position within it, and the record with its cells and their provenance locators. The first page (no `cursor`) additionally carries `documents`, the source documents behind the package's cells, so a surface can offer the originals without walking every page.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"task_id\", type: \"UUID\", required: true, description: \"Claimed task ID.\" },\n {\n name: \"cursor\",\n type: \"string\",\n description:\n \"Opaque package cursor: `package.first_cursor` from the claim, then `pagination.next_cursor`. Omit for the first page.\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n description:\n \"Records per page, 1 to 2,000. Defaults to the platform page size reported as `package.page_size` on the claim (500 unless the deployment configures otherwise).\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"First page\",\n code: `// talonic_read_decision_package({ \"task_id\": \"11111111-1111-4111-8111-111111111111\", \"limit\": 2 })\n{\n \"task_id\": \"11111111-1111-4111-8111-111111111111\",\n \"run_id\": \"22222222-2222-4222-8222-222222222222\",\n \"record_count\": 3,\n \"page_size\": 2,\n \"documents\": [\n {\n \"document_id\": \"dddddddd-dddd-4ddd-8ddd-dddddddddddd\",\n \"filename\": \"invoice-4711.pdf\",\n \"mime_type\": \"application/pdf\",\n \"file_url\": \"/v1/documents/dddddddd-dddd-4ddd-8ddd-dddddddddddd/file\"\n }\n ],\n \"data\": [\n {\n \"binding\": \"invoice\",\n \"index\": 0,\n \"record\": {\n \"invoice_total\": {\n \"value\": 1250.0,\n \"locator\": \"dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:invoice_total\",\n \"confidence\": 0.97,\n \"document_id\": \"dddddddd-dddd-4ddd-8ddd-dddddddddddd\"\n },\n \"supplier_name\": {\n \"value\": \"Acme GmbH\",\n \"locator\": \"dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:supplier_name\",\n \"confidence\": 0.99,\n \"document_id\": \"dddddddd-dddd-4ddd-8ddd-dddddddddddd\"\n }\n }\n }\n ],\n \"pagination\": { \"has_more\": true, \"next_cursor\": \"eyJvZmZzZXQiOjJ9\" }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Keep the locators. The submit's `evidence` block must cite the package references the decision relied on, and the platform checks each one against this package — copy them verbatim rather than reconstructing them. Walk pages while `pagination.has_more` is true; the cursor is an offset into the frozen record order, so a walk is stable even across a release and reclaim.\",\n },\n {\n type: \"callout\",\n text: \"For a rule-mining round driven from outside (`package_kind: mining_round`), the package is a single record `{ system_prompt, first_turn, tools }` — what the hosted model would have seen. The round's tools are called over the platform's REST routes; this MCP surface does not wrap them yet.\",\n },\n ],\n related: [\n { label: \"talonic_claim_decision_task\", slug: \"talonic-claim-decision-task\" },\n { label: \"talonic_submit_decision_task\", slug: \"talonic-submit-decision-task\" },\n ],\n faq: [\n {\n question: \"Why does reading the package return HTTP 409?\",\n answer:\n \"The package is readable by the current claimant only. Either the task was never claimed by this credential, or the lease lapsed and another agent reclaimed it. Claim (or reclaim) the task first, then read.\",\n },\n {\n question: \"Is reading the package a side effect?\",\n answer:\n \"It changes nothing in the task or run, but each page read is journaled as package_read with the offset and count, so the run's ledger shows what the deciding agent actually looked at.\",\n },\n ],\n mentions: [\n \"input package\",\n \"provenance locator\",\n \"package_read\",\n \"evidence\",\n \"cursor pagination\",\n ],\n },\n {\n slug: \"talonic-heartbeat-decision-task\",\n parentSlug: \"tools\",\n title: \"talonic_heartbeat_decision_task\",\n seoTitle: \"talonic_heartbeat_decision_task — Keep a Decision Lease\",\n description:\n \"MCP tool that extends the lease on a claimed decision task using the execution epoch from the claim, never past the SLA deadline, so long reviews keep it.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Extend the lease on a claimed decision task. The lease is short by design (120 seconds by default) so an abandoned claim frees quickly; a decision that takes longer keeps its claim alive by heartbeating before `lease_expires_at`. The lease never extends past `sla_deadline_at` — that is the hard decision deadline, after which the app's fallback policy applies.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"task_id\", type: \"UUID\", required: true, description: \"Claimed task ID.\" },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"Exact epoch from the current claim.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Heartbeat response\",\n code: `// talonic_heartbeat_decision_task({ \"task_id\": \"11111111-1111-4111-8111-111111111111\", \"execution_epoch\": 1 })\n{\n \"id\": \"11111111-1111-4111-8111-111111111111\",\n \"status\": \"claimed\",\n \"execution_epoch\": 1,\n \"heartbeat_at\": \"2026-09-22T10:01:30.000Z\",\n \"lease_expires_at\": \"2026-09-22T10:03:30.000Z\",\n \"sla_deadline_at\": \"2026-09-22T10:10:00.000Z\",\n \"...\": \"remaining metadata as in the list\"\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Treat a failed heartbeat as a hard stop. HTTP 409 means the epoch is stale — the lease lapsed and the task was reclaimed, released, cancelled or timed out — so any decision you were forming belongs to a claim that no longer exists and will be rejected on submit. Discard it and return to `talonic_list_decision_tasks`.\",\n },\n ],\n related: [\n { label: \"talonic_claim_decision_task\", slug: \"talonic-claim-decision-task\" },\n { label: \"talonic_submit_decision_task\", slug: \"talonic-submit-decision-task\" },\n { label: \"talonic_release_decision_task\", slug: \"talonic-release-decision-task\" },\n ],\n faq: [\n {\n question: \"How often should an agent heartbeat a decision task?\",\n answer:\n \"Comfortably inside the lease: with the default 120-second lease, roughly every 60 seconds while the decision is still being worked on. Stop once the task is submitted, released or failed.\",\n },\n {\n question: \"Can a heartbeat extend past the SLA deadline?\",\n answer:\n \"No. The lease is clamped to sla_deadline_at. If the decision cannot be made before then, submit what you have with an honest confidence, release the task, or fail it with a reason so the fallback policy runs deliberately rather than by timeout.\",\n },\n ],\n mentions: [\"heartbeat\", \"lease expiry\", \"SLA deadline\", \"execution epoch\"],\n },\n {\n slug: \"talonic-submit-decision-task\",\n parentSlug: \"tools\",\n title: \"talonic_submit_decision_task\",\n seoTitle: \"talonic_submit_decision_task — Submit an Evidenced Decision\",\n description:\n \"MCP tool that submits the decision for a claimed task: outcome checked against the output contract, evidence against the frozen package, rationale required.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Return the decision for a claimed task. The platform verifies three things transactionally before writing anything: the `outcome` against the task's `output_contract`, every `evidence` locator against the run's frozen input package, and the presence of a `rationale`. On success the task becomes `submitted`, the run resumes through the app's threshold checks and action layer, and the sealed record names `decided_by.type: external_agent`. Talonic writes the ledger; the agent never does.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"task_id\", type: \"UUID\", required: true, description: \"Claimed task ID.\" },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"Exact epoch from the current claim.\",\n },\n {\n name: \"outcome\",\n type: \"object\",\n required: true,\n description:\n \"The decision. For a plain contract, the object its JSON Schema validates. For a `verdict_matrix` contract, `{ subjects: [{ subject_key, rule_outcomes, auto?, detail? }] }`. For a `record_set` contract, its fields-and-rows envelope.\",\n },\n {\n name: \"evidence\",\n type: \"string[]\",\n required: true,\n description:\n \"Provenance locators the decision relied on, copied verbatim from the package (or `db:` / `ref:` locators the app holds a read grant on). Up to 10,000 entries of at most 512 characters. An empty array is accepted only when the app allows unevidenced decisions.\",\n },\n {\n name: \"rationale\",\n type: \"string\",\n required: true,\n description:\n \"A short summary of why — never private chain-of-thought. At most 4,000 characters.\",\n },\n {\n name: \"confidence\",\n type: \"number\",\n description:\n \"Optional confidence from 0 to 1; the app's confidence floor may route a low value to review.\",\n },\n {\n name: \"service_version\",\n type: \"string\",\n description:\n \"Optional build identifier of the deciding service (at most 64 characters); recorded as `decided_by.label`.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Submit a decision\",\n code: `// talonic_submit_decision_task({\n// \"task_id\": \"11111111-1111-4111-8111-111111111111\",\n// \"execution_epoch\": 1,\n// \"outcome\": { \"approve\": true },\n// \"evidence\": [\n// \"dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:invoice_total\",\n// \"dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:supplier_name\"\n// ],\n// \"rationale\": \"Total matches the purchase order and the supplier is on the approved list.\",\n// \"confidence\": 0.93\n// })\n{\n \"id\": \"11111111-1111-4111-8111-111111111111\",\n \"run_id\": \"22222222-2222-4222-8222-222222222222\",\n \"status\": \"submitted\",\n \"execution_epoch\": 1,\n \"submitted_at\": \"2026-09-22T10:02:10.000Z\",\n \"...\": \"remaining metadata as in the list\"\n}`,\n },\n {\n type: \"paragraph\",\n text: \"A refused submission is HTTP 422 with the reason (`Decision violates the output contract: …`, `An evidence block is required …`, a locator outside the package, or a malformed matrix envelope), is journaled as `rejected`, and changes nothing: the task stays `claimed` under your epoch, so fix the payload and submit again before the lease ends. A stale epoch is HTTP 409. A successful submit is terminal — corrections happen downstream in review, not by a second submit.\",\n },\n {\n type: \"callout\",\n text: \"The rationale is a summary for the ledger and for the humans who review it, not a transcript. For a rule-mining round driven from outside, the round's long summary travels in `outcome.summary` and the rationale is one line.\",\n },\n ],\n related: [\n { label: \"talonic_claim_decision_task\", slug: \"talonic-claim-decision-task\" },\n { label: \"talonic_read_decision_package\", slug: \"talonic-read-decision-package\" },\n { label: \"talonic_release_decision_task\", slug: \"talonic-release-decision-task\" },\n { label: \"talonic_fail_decision_task\", slug: \"talonic-fail-decision-task\" },\n ],\n faq: [\n {\n question: \"Can the evidence cite something outside the input package?\",\n answer:\n \"Only a db: or ref: locator naming a source connection or reference table the app holds a read grant on; those are accepted as attestations and journaled. Any other off-package locator, and the reserved api: prefix, is rejected. Everything else must appear verbatim in the package.\",\n },\n {\n question: \"What if the app's thresholds disagree with my decision?\",\n answer:\n \"The submit is still accepted. Thresholds — the confidence floor for auto-execution and value ceilings requiring approval — are enforced by the platform after the decision and before execution, for every mode. A breach routes the run to a human review; it never fails silently.\",\n },\n ],\n mentions: [\n \"evidence block\",\n \"rationale\",\n \"output contract\",\n \"external_agent\",\n \"transactional submit\",\n ],\n },\n {\n slug: \"talonic-release-decision-task\",\n parentSlug: \"tools\",\n title: \"talonic_release_decision_task\",\n seoTitle: \"talonic_release_decision_task — Give a Decision Task Back\",\n description:\n \"MCP tool that releases a claimed decision task back to available without deciding it, so another agent can claim it; the next claim bumps the execution epoch.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Give a claimed decision task back. The task returns to `available` with its row intact, the release is journaled, and the next claim bumps the epoch. Use it when you cannot finish within the lease or the SLA but another agent — or you, later — could still decide it; the task is not failed and no review is raised.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"task_id\", type: \"UUID\", required: true, description: \"Claimed task ID.\" },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"Exact epoch from the current claim.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Release response\",\n code: `// talonic_release_decision_task({ \"task_id\": \"11111111-1111-4111-8111-111111111111\", \"execution_epoch\": 1 })\n{\n \"id\": \"11111111-1111-4111-8111-111111111111\",\n \"status\": \"available\",\n \"execution_epoch\": 1,\n \"claimed_by\": null,\n \"lease_expires_at\": null,\n \"...\": \"remaining metadata as in the list\"\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Releasing is cheaper than letting the lease lapse: the task is immediately claimable instead of waiting out the lease, and the ledger records a deliberate give-back rather than a silent timeout. The SLA clock keeps running throughout, so a task released late in its window may time out before anyone reclaims it.\",\n },\n ],\n related: [\n { label: \"talonic_claim_decision_task\", slug: \"talonic-claim-decision-task\" },\n { label: \"talonic_fail_decision_task\", slug: \"talonic-fail-decision-task\" },\n ],\n faq: [\n {\n question: \"Release or fail — which one?\",\n answer:\n \"Release when the task is decidable but not by you right now: another claimant gets the same package and contract. Fail when no claimant could decide it from this package: that raises a Human Review with your reason and applies the app's fallback policy.\",\n },\n ],\n mentions: [\"release\", \"give-back\", \"execution epoch\"],\n },\n {\n slug: \"talonic-fail-decision-task\",\n parentSlug: \"tools\",\n title: \"talonic_fail_decision_task\",\n seoTitle: \"talonic_fail_decision_task — Declare a Task Undecidable\",\n description:\n \"MCP tool that marks a claimed decision task as undecidable: it raises a Human Review carrying the agent's reason and applies the app's declared fallback policy.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Declare that the claimed task cannot be decided. The platform raises a Human Review carrying your `reason` and applies the app's declared **fallback policy**: `rules` (a resident rule set decides — the only policy with a deterministic safety net), `hold` (the run parks as a system-raised review) or `none` (the run fails explicitly). The task ends in status `failed`; the ledger records the fallback decision with `fallback: true`.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"task_id\", type: \"UUID\", required: true, description: \"Claimed task ID.\" },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"Exact epoch from the current claim.\",\n },\n {\n name: \"reason\",\n type: \"string\",\n required: true,\n description:\n \"Why the task cannot be decided, at most 2,000 characters. Becomes the review's question context, so name the missing or contradictory evidence.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Fail response\",\n code: `// talonic_fail_decision_task({\n// \"task_id\": \"11111111-1111-4111-8111-111111111111\",\n// \"execution_epoch\": 1,\n// \"reason\": \"The package carries two supplier names for one invoice and neither matches the purchase order.\"\n// })\n{\n \"id\": \"11111111-1111-4111-8111-111111111111\",\n \"status\": \"failed\",\n \"execution_epoch\": 1,\n \"...\": \"remaining metadata as in the list\"\n}`,\n },\n {\n type: \"paragraph\",\n text: \"Fail is for genuinely undecidable tasks — contradictory or insufficient input that no claimant could resolve. A decision you can make with low confidence is better submitted with `confidence` set: the app's confidence floor routes it to review if needed, and the reviewer sees your outcome and rationale instead of an empty slot. For a rule-mining round driven from outside, fail seals the round as `interrupted` with your reason and raises no review.\",\n },\n ],\n related: [\n { label: \"talonic_release_decision_task\", slug: \"talonic-release-decision-task\" },\n { label: \"talonic_submit_decision_task\", slug: \"talonic-submit-decision-task\" },\n ],\n faq: [\n {\n question: \"Is failing a decision task destructive?\",\n answer:\n \"Yes, and it is annotated `destructiveHint: true`. No data is deleted, but the task moves to failed for good, a review is raised with your reason, and the fallback policy the app declared runs, which can fail the whole run (under the rules policy it still produces a decision). A failed task is not reclaimable.\",\n },\n ],\n mentions: [\"fail\", \"fallback policy\", \"Human Review\", \"undecidable\"],\n },\n {\n slug: \"talonic-list-fields\",\n parentSlug: \"tools\",\n title: \"talonic_list_fields\",\n seoTitle: \"talonic_list_fields — List Field Registry Concepts\",\n description:\n \"MCP tool that lists the workspace's Field Registry: canonical concepts Talonic discovered across documents, with stable ids, maturity, synonyms and counts.\",\n content: [\n {\n type: \"paragraph\",\n text: \"List the workspace's **Field Registry** — the canonical concepts Talonic has discovered across every ingested document. Each entry carries a stable `id`, `canonical_name`, `data_type`, a named `maturity` level, `synonyms`, a curated `description`, `occurrence_count` and `superseded_by` when the row was merged into another concept.\",\n },\n { type: \"heading\", level: 3, id: \"list-fields-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"You need to know WHAT data exists before querying it.\",\n \"You want the exact field id for `talonic_get_field` or `talonic_field_values`.\",\n \"You are choosing between similar concepts and want their maturity and occurrence counts side by side.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"list-fields-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"To locate a specific document by name — use `talonic_search`.\",\n \"To filter documents by a field value — use `talonic_filter`.\",\n \"When you are unsure which field holds a concept — call `talonic_find_data` first; it matches by meaning.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"list-fields-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"search\",\n type: \"string\",\n description: \"Case-insensitive contains match on canonical_name / display_name.\",\n },\n {\n name: \"maturity\",\n type: \"string\",\n description:\n \"`core`, `proven` or `candidate`. Prefer `core`/`proven` for anything you build on.\",\n },\n {\n name: \"include_superseded\",\n type: \"boolean\",\n description:\n \"Include rows merged into a survivor (they carry `superseded_by`). Default false.\",\n },\n { name: \"limit\", type: \"number\", description: \"Page size (default 20, max 100).\" },\n {\n name: \"cursor\",\n type: \"string\",\n description: \"Opaque cursor from `pagination.next_cursor`.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"list-fields-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n { name: \"data[].id\", type: \"string\", description: \"Stable field UUID.\" },\n {\n name: \"data[].canonical_name\",\n type: \"string\",\n description: \"Normalized concept name.\",\n },\n {\n name: \"data[].maturity\",\n type: \"string\",\n description:\n \"`core` (fully trusted), `proven` (recurring, stable id) or `candidate` (new; may still be merged or renamed).\",\n },\n {\n name: \"data[].synonyms\",\n type: \"string[]\",\n description: \"Names folded onto the concept by merges and cleanup.\",\n },\n {\n name: \"data[].superseded_by\",\n type: \"object|null\",\n description: \"Set when the row was merged into a survivor; follow `superseded_by.id`.\",\n },\n {\n name: \"pagination\",\n type: \"object\",\n description: \"`total`, `limit`, `has_more`, `next_cursor`.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{ \"search\": \"invoice\", \"maturity\": \"proven\", \"limit\": 5 }`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"data\": [\n {\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"canonical_name\": \"invoice_number\",\n \"display_name\": \"Invoice Number\",\n \"data_type\": \"string\",\n \"maturity\": \"proven\",\n \"tier\": 2,\n \"synonyms\": [\"inv_no\", \"invoice no\"],\n \"description\": \"The supplier's invoice identifier\",\n \"occurrence_count\": 412,\n \"superseded_by\": null,\n \"links\": { \"self\": \"/v1/fields/a1b2…\", \"card\": \"/v1/fields/a1b2…/card\", \"values\": \"/v1/fields/a1b2…/values\" }\n }\n ],\n \"pagination\": { \"total\": 1, \"limit\": 5, \"has_more\": false, \"next_cursor\": null }\n}`,\n },\n ],\n related: [\n { label: \"talonic_search\", slug: \"talonic-search\" },\n { label: \"talonic_filter\", slug: \"talonic-filter\" },\n ],\n faq: [\n {\n question: \"What does maturity mean and which level should I build on?\",\n answer:\n \"`core` (tier 1) is universal and fully trusted; `proven` (tier 2) recurs and has a stable id; `candidate` (tier 3) is newly discovered and may still be merged or renamed. Build on `core` or `proven`; treat `candidate` as a hint.\",\n },\n ],\n mentions: [\n \"field registry\",\n \"list fields\",\n \"maturity\",\n \"canonical fields\",\n \"superseded_by\",\n \"field ids\",\n ],\n },\n {\n slug: \"talonic-get-field\",\n parentSlug: \"tools\",\n title: \"talonic_get_field\",\n seoTitle: \"talonic_get_field — Get a Field Registry Concept Card\",\n description:\n \"MCP tool that returns a Field Registry concept card by id or name: definition, synonyms, maturity, occurrence stats, top values with examples and schema usage.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Get the **concept card** for one field: what it means (curated description and extraction instruction), its synonyms and merge aliases, maturity, where it occurs (document and occurrence counts, first/last seen, document-type spread), its value distribution (top values with counts, distinct count, examples), schema usage, and identity links (`superseded_by`, absorbed concepts). Accepts a field `name` in the user's own words — it is resolved through canonical name, synonyms, merge aliases and the registry's spelling fold, then followed to the live concept.\",\n },\n { type: \"heading\", level: 3, id: \"get-field-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"You must decide whether a field is the right concept for a question.\",\n \"You need example values or the value shape before writing a filter or a query.\",\n \"The user names a field ('Invoice No', 'Vertragsnummer') and you need the live concept behind it.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"get-field-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"To list many fields — use `talonic_list_fields`.\",\n \"To read every value of a field — use `talonic_field_values`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"get-field-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"field_id\",\n type: \"string\",\n description: \"Field UUID. Provide either `field_id` or `name`.\",\n },\n {\n name: \"name\",\n type: \"string\",\n description:\n \"Field name to resolve (canonical → synonyms → aliases → spelling fold, redirects followed).\",\n },\n {\n name: \"include_history\",\n type: \"boolean\",\n description: \"Append the curation trail (tier changes, merges, renames), newest first.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"get-field-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n {\n name: \"definition\",\n type: \"object\",\n description: \"`description`, `instruction`, `synonyms[]`, `aliases[]`.\",\n },\n {\n name: \"identity\",\n type: \"object\",\n description: \"`pinned`, `source`, `superseded_by`, `absorbed[]`.\",\n },\n {\n name: \"occurrence\",\n type: \"object\",\n description:\n \"`occurrence_count`, `document_count`, `first_seen_at`, `last_seen_at`, `document_type_distribution`.\",\n },\n {\n name: \"values\",\n type: \"object\",\n description: \"`total`, `distinct_count`, `top[]` (value, count, share), `examples[]`.\",\n },\n { name: \"usage\", type: \"object\", description: \"`schema_count`, `schema_field_count`.\" },\n {\n name: \"resolution\",\n type: \"object\",\n description: \"Present when `name` was given: `matched_by` and `redirected_from[]`.\",\n },\n {\n name: \"history\",\n type: \"object\",\n description: \"Present when `include_history` is true.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{ \"name\": \"Invoice No\", \"include_history\": true }`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"canonical_name\": \"invoice_number\",\n \"maturity\": \"proven\",\n \"data_type\": \"string\",\n \"definition\": { \"description\": \"The supplier's invoice identifier\", \"instruction\": \"Extract the invoice number as printed\", \"synonyms\": [\"inv_no\"], \"aliases\": [{ \"name\": \"invoice no\", \"source\": \"merge\" }] },\n \"identity\": { \"pinned\": false, \"source\": null, \"superseded_by\": null, \"absorbed\": [] },\n \"occurrence\": { \"occurrence_count\": 412, \"document_count\": 398, \"first_seen_at\": \"2026-03-02T09:14:00.000Z\", \"last_seen_at\": \"2026-09-04T16:02:11.000Z\", \"document_type_distribution\": { \"invoice\": 398 } },\n \"values\": { \"total\": 412, \"distinct_count\": 405, \"top\": [{ \"value\": \"INV-2026-0001\", \"count\": 2, \"share\": 0.0049 }], \"examples\": [\"INV-2026-0001\", \"RE-88231\"] },\n \"usage\": { \"schema_count\": 2, \"schema_field_count\": 2 },\n \"resolution\": { \"matched_by\": \"synonym\", \"redirected_from\": [] },\n \"history\": { \"total\": 1, \"data\": [{ \"kind\": \"tier_changed\", \"at\": \"2026-04-01T00:00:00.000Z\", \"detail\": { \"direction\": \"promoted\", \"from_maturity\": \"candidate\", \"to_maturity\": \"proven\" } }] }\n}`,\n },\n ],\n related: [\n { label: \"talonic_search\", slug: \"talonic-search\" },\n { label: \"talonic_filter\", slug: \"talonic-filter\" },\n ],\n faq: [\n {\n question: \"Can I pass the user's wording instead of an id?\",\n answer:\n \"Yes. `name` is resolved through the canonical name, synonyms, merge aliases and the registry's spelling fold, then followed to the live concept; the response's `resolution.matched_by` says which arm matched.\",\n },\n ],\n mentions: [\n \"concept card\",\n \"field definition\",\n \"field by name\",\n \"resolve field\",\n \"example values\",\n \"field history\",\n ],\n },\n {\n slug: \"talonic-field-values\",\n parentSlug: \"tools\",\n title: \"talonic_field_values\",\n seoTitle: \"talonic_field_values — Read a Field Across Documents\",\n description:\n \"MCP tool that reads a Field Registry concept's current values across documents with provenance: document, value, confidence, source text and resolution band.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read a field's **current values across documents**, with provenance — one row per bound occurrence: document id, filename and type, the value, its confidence, the raw name it was captured under, the verbatim source text, and the resolution band that bound it. Rows are Sources-IAM filtered for the caller and cursor-paginated newest first.\",\n },\n { type: \"heading\", level: 3, id: \"field-values-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"The user asks 'what are all the X across my documents'.\",\n \"You need to tabulate or aggregate one concept across the corpus.\",\n \"You want the evidence (source text plus document) behind a value.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"field-values-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"Multi-field, row-shaped queries over documents — use `talonic_filter`.\",\n \"One document's full field set — use `talonic_get_document`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"field-values-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"field_id\",\n type: \"string\",\n description: \"Field UUID. Provide either `field_id` or `name`.\",\n },\n {\n name: \"name\",\n type: \"string\",\n description: \"Field name (resolved like `talonic_get_field`).\",\n },\n {\n name: \"document_id\",\n type: \"string\",\n description: \"Only occurrences on this document.\",\n },\n {\n name: \"value\",\n type: \"string\",\n description: \"Case-insensitive contains filter on the value text.\",\n },\n { name: \"limit\", type: \"number\", description: \"Page size (default 20, max 100).\" },\n {\n name: \"cursor\",\n type: \"string\",\n description: \"Opaque cursor from `pagination.next_cursor`.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"field-values-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n {\n name: \"data[].document_id\",\n type: \"string\",\n description:\n \"Document the value came from (`document_filename`, `document_type` alongside).\",\n },\n {\n name: \"data[].value\",\n type: \"any\",\n description: \"The current bound value as captured.\",\n },\n {\n name: \"data[].confidence\",\n type: \"number|null\",\n description: \"Capture confidence 0–1.\",\n },\n {\n name: \"data[].provenance\",\n type: \"object\",\n description:\n \"`raw_field_name`, `source_text`, `resolved_by` (`exact`, `cluster`, `semantic_auto`, `llm_rescue`, …), `needs_confirmation`, `via_redirect`.\",\n },\n {\n name: \"concept_ids\",\n type: \"string[]\",\n description: \"The concept plus absorbed redirects whose occurrences are included.\",\n },\n { name: \"pagination\", type: \"object\", description: \"`total` counts the visible set.\" },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{ \"name\": \"invoice_number\", \"value\": \"2026\", \"limit\": 2 }`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"field_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"canonical_name\": \"invoice_number\",\n \"concept_ids\": [\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"],\n \"data\": [\n {\n \"occurrence_id\": \"0f1e2d3c-…\",\n \"document_id\": \"f0e1d2c3-…\",\n \"document_filename\": \"RE-2026-0142.pdf\",\n \"document_type\": \"invoice\",\n \"value\": \"INV-2026-0142\",\n \"confidence\": 0.97,\n \"provenance\": { \"raw_field_name\": \"Rechnungsnummer\", \"source_text\": \"Rechnungsnummer: INV-2026-0142\", \"resolved_by\": \"exact\", \"needs_confirmation\": false, \"via_redirect\": false },\n \"links\": { \"document\": \"/v1/documents/f0e1…\", \"document_fields\": \"/v1/documents/f0e1…/fields\" }\n }\n ],\n \"pagination\": { \"total\": 37, \"limit\": 2, \"has_more\": true, \"next_cursor\": \"MGYx…\" }\n}`,\n },\n ],\n related: [\n { label: \"talonic_search\", slug: \"talonic-search\" },\n { label: \"talonic_filter\", slug: \"talonic-filter\" },\n ],\n faq: [\n {\n question: \"Are the values filtered by the caller's document visibility?\",\n answer:\n \"Yes. Rows and `pagination.total` are Sources-IAM filtered as the API key's minting user, exactly like the other document reads.\",\n },\n ],\n mentions: [\n \"field values\",\n \"values across documents\",\n \"provenance\",\n \"source text\",\n \"resolution band\",\n \"cross-document\",\n ],\n },\n {\n slug: \"talonic-find-data\",\n parentSlug: \"tools\",\n title: \"talonic_find_data\",\n seoTitle: \"talonic_find_data — Locate the Data Behind Any Concept\",\n description:\n \"MCP tool that resolves a natural-language concept to the fields, values, documents and passages that carry it, optionally within one account. Read-only.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Locate the **real data behind a concept** before querying anything. It resolves a phrase in the user's words ('payment volume per transaction', 'Vertragslaufzeit'), by meaning and by its words, to the fields, values, documents and text passages that carry it — even when the field was captured under a different name. Pass `account` when the question names one portfolio company, so another company's figures cannot come back.\",\n },\n { type: \"heading\", level: 3, id: \"find-data-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"The user asks about a concept and you are unsure which field holds it.\",\n \"`talonic_list_fields` or `talonic_search` came back empty or ambiguous.\",\n \"The answer may live in document prose rather than a captured cell.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"find-data-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"Reading a known field's values — use `talonic_field_values`.\",\n \"Filtering by a known field — use `talonic_filter`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"find-data-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"query\",\n type: \"string\",\n required: true,\n description: \"The concept, in the user's words.\",\n },\n {\n name: \"concepts\",\n type: \"string[]\",\n description:\n \"Several concepts resolved to fields in one call (fields only, no text search).\",\n },\n {\n name: \"top_k\",\n type: \"number\",\n description: \"Max results per group (1–25, default 10).\",\n },\n {\n name: \"document_ids\",\n type: \"string[]\",\n description: \"Hard scope: restrict every group to these documents.\",\n },\n {\n name: \"account\",\n type: \"string\",\n description:\n \"Only the documents of this account (portfolio company), by name or alias, e.g. `Filu` (see `talonic_list_accounts`). Narrows like `document_ids`; an unknown name returns an error listing the accounts.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"find-data-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n {\n name: \"result.fields\",\n type: \"array\",\n description:\n \"Matching concepts: canonical_name, field ids/keys, maturity, occurrence_count, sample values with their documents.\",\n },\n {\n name: \"result.values / result.documents / result.passages\",\n type: \"array\",\n description:\n \"Value, document and passage groups — each item a ready handle for the next call.\",\n },\n {\n name: \"citations\",\n type: \"array\",\n description: \"Provenance the platform attached to the result.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{ \"query\": \"revenue\", \"account\": \"Filu\", \"top_k\": 5 }`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"tool\": \"find_data\",\n \"result\": {\n \"fields\": [{ \"canonical_name\": \"contract_end_date\", \"field_key\": \"contract_end_date\", \"occurrence_count\": 88, \"samples\": [{ \"value\": \"2027-12-31\", \"document_id\": \"f0e1…\" }] }],\n \"documents\": [{ \"document_id\": \"f0e1…\", \"filename\": \"Supply-Agreement-2024.pdf\", \"score\": 0.81 }],\n \"passages\": []\n },\n \"citations\": [{ \"document_id\": \"f0e1…\" }]\n}`,\n },\n ],\n related: [\n { label: \"talonic_search\", slug: \"talonic-search\" },\n { label: \"talonic_filter\", slug: \"talonic-filter\" },\n ],\n faq: [\n {\n question: \"How is this different from talonic_search?\",\n answer:\n \"`talonic_search` matches literal keywords across documents, fields, sources and schemas. `talonic_find_data` matches by MEANING against the field registry and document text and returns ready handles (field ids, document ids, passages) for the next call.\",\n },\n ],\n mentions: [\n \"find data\",\n \"semantic retrieval\",\n \"concept to field\",\n \"which field holds\",\n \"locate data\",\n \"passages\",\n ],\n },\n {\n slug: \"talonic-list-agent-tools\",\n parentSlug: \"tools\",\n title: \"talonic_list_agent_tools\",\n seoTitle: \"talonic_list_agent_tools — Platform Agent Tool Registry\",\n description:\n \"MCP tool that lists the platform's agent tool registry: retrieval, provenance and analysis primitives of the Talonic agent, with input schemas and access flags.\",\n content: [\n {\n type: \"paragraph\",\n text: \"List the platform's **agent tool registry**: every retrieval, provenance and analysis primitive the in-product Talonic agent runs on (`find_data`, `describe_data`, `query_data` for read-only SQL over the extracted data, `get_document_markdown`, `workspace_overview`, …), each with its JSON input schema and whether **this** credential may invoke it. An API key reaches the read-only subset; the platform enforces the capability matrix on every call.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Target API: [Talonic API reference](https://talonic.com/docs/api) — `GET /v1/agent/tools`.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Not listed on ChatGPT connections: OpenAI's plugin review requires every model-callable operation to be its own tool, so the hosted server omits `talonic_list_agent_tools` and `talonic_invoke_agent_tool` for ChatGPT. Every other client lists both.\",\n },\n { type: \"heading\", level: 3, id: \"list-agent-tools-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"You need a capability the dedicated `talonic_*` tools do not cover (SQL over structured data, a workspace overview, cohort discovery).\",\n \"You want to see exactly what the in-product agent can do before driving it yourself with `talonic_invoke_agent_tool`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"list-agent-tools-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"Anything a dedicated `talonic_*` tool already does — prefer those, they are shaped for you.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"list-agent-tools-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"only_invocable\",\n type: \"boolean\",\n description: \"Hide tools this credential cannot invoke. Default true.\",\n },\n {\n name: \"include_schemas\",\n type: \"boolean\",\n description: \"Include each tool's JSON input schema. Default true.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"list-agent-tools-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n {\n name: \"tools[].name\",\n type: \"string\",\n description: \"Tool name to pass to `talonic_invoke_agent_tool`.\",\n },\n {\n name: \"tools[].can_invoke\",\n type: \"boolean\",\n description: \"Whether this credential's role may run it.\",\n },\n {\n name: \"tools[].input_schema\",\n type: \"object\",\n description: \"JSON Schema of the tool's `args`.\",\n },\n {\n name: \"invocable_count / totalCount\",\n type: \"number\",\n description: \"Counts over the full registry.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{ \"only_invocable\": true, \"include_schemas\": false }`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"tools\": [\n { \"name\": \"find_data\", \"description\": \"CALL THIS FIRST to locate the real data behind a natural-language concept…\", \"impact\": \"read\", \"capability\": \"data.read\", \"can_invoke\": true },\n { \"name\": \"query_data\", \"description\": \"Run a read-only SQL SELECT over the extracted data…\", \"impact\": \"read\", \"capability\": \"data.read\", \"can_invoke\": true }\n ],\n \"invocable_count\": 12,\n \"totalCount\": 48\n}`,\n },\n ],\n related: [\n { label: \"talonic_search\", slug: \"talonic-search\" },\n { label: \"talonic_filter\", slug: \"talonic-filter\" },\n ],\n faq: [\n {\n question: \"Why are some tools listed with can_invoke false?\",\n answer:\n \"An API key runs as a read-only principal, so tools above the `data.read` capability (anything that spends credits or writes) are listed for transparency but cannot be invoked through the API.\",\n },\n ],\n mentions: [\n \"agent tools\",\n \"tool registry\",\n \"query_data\",\n \"describe_data\",\n \"capabilities\",\n \"can_invoke\",\n ],\n },\n {\n slug: \"talonic-invoke-agent-tool\",\n parentSlug: \"tools\",\n title: \"talonic_invoke_agent_tool\",\n seoTitle: \"talonic_invoke_agent_tool — Run a Platform Agent Tool\",\n description:\n \"MCP tool that invokes one platform agent tool directly with your own arguments, no model in the loop: read-only SQL over extracted data, document text and more.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Invoke **one named tool** from the platform's agent tool registry directly, with no model in the loop — you choose the arguments. This is how an external agent uses Talonic's retrieval and provenance while driving control flow itself: `query_data` for a read-only SQL `SELECT` over the extracted data, `describe_data` for the queryable field list, `get_document_markdown` to read a document's text. Denied capabilities come back as an error naming the capability required; the platform re-checks every call. The platform runs every caller of this route, API key or OAuth session alike, as its least-privilege viewer role, which grants only the registry's read-only tools (capability `data.read`); write-capable registry tools are never invocable here, so this tool reads and never changes workspace data.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Target API: [Talonic API reference](https://talonic.com/docs/api) — `POST /v1/agent/tools/{name}/invoke`.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Not listed on ChatGPT connections: OpenAI's plugin review requires every model-callable operation to be its own tool, so the hosted server omits `talonic_list_agent_tools` and `talonic_invoke_agent_tool` for ChatGPT. Every other client lists both.\",\n },\n { type: \"heading\", level: 3, id: \"invoke-agent-tool-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"`talonic_list_agent_tools` showed a tool with `can_invoke: true` that does what you need.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"invoke-agent-tool-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\"Anything a dedicated `talonic_*` tool already does — prefer those.\"],\n },\n { type: \"heading\", level: 3, id: \"invoke-agent-tool-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n { name: \"name\", type: \"string\", description: \"Tool name, e.g. `query_data`.\" },\n {\n name: \"args\",\n type: \"object\",\n description: \"Arguments matching the tool's `input_schema`.\",\n },\n {\n name: \"document_ids\",\n type: \"string[]\",\n description: \"Hard scope for scope-aware tools.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"invoke-agent-tool-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n { name: \"tool\", type: \"string\", description: \"The tool that ran.\" },\n { name: \"result\", type: \"any\", description: \"The tool's parsed output.\" },\n {\n name: \"citations / artifacts / cards\",\n type: \"array\",\n description: \"Present when the tool attached them.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: `{ \"name\": \"query_data\", \"args\": { \"sql\": \"SELECT field_key, count(*) FROM cells GROUP BY 1 ORDER BY 2 DESC LIMIT 5\" } }`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Tool response\",\n code: `{\n \"tool\": \"query_data\",\n \"result\": { \"rows\": [{ \"field_key\": \"invoice_number\", \"count\": 412 }], \"row_count\": 1 }\n}`,\n },\n ],\n related: [\n { label: \"talonic_search\", slug: \"talonic-search\" },\n { label: \"talonic_filter\", slug: \"talonic-filter\" },\n ],\n faq: [\n {\n question: \"Does invoking a tool cost credits?\",\n answer:\n \"No. Every tool an API key can reach is LLM-free, so there is no model call to meter; the route is bounded by its own rate-limit namespace instead.\",\n },\n ],\n mentions: [\n \"invoke tool\",\n \"query_data\",\n \"sql over extracted data\",\n \"document markdown\",\n \"agent tool\",\n \"no model in the loop\",\n ],\n },\n {\n slug: \"talonic-list-specs\",\n parentSlug: \"tools\",\n title: \"talonic_list_specs\",\n seoTitle: \"talonic_list_specs — List Runnable Spec Pipelines via MCP\",\n description:\n \"MCP tool that lists your Talonic workspace's Specs, the configured pipelines an agent can run, with schema ids, publish state, and the field and node counts.\",\n content: [\n {\n type: \"paragraph\",\n text: \"List the workspace's **Specs** — the configured pipelines an agent can run with `talonic_run_spec`. Each row carries the Spec `id`, `name`, the `schema_id` it materializes onto (a different id from the Spec's own), the published `version` and `materialized_version` (null when never published), `field_count`, `node_count` and timestamps.\",\n },\n { type: \"heading\", level: 3, id: \"list-specs-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"You need a `spec_id` to run the customer's pipeline.\",\n \"The user refers to 'our invoice pipeline' and you must find it.\",\n \"You want to see which Specs are published (`version` non-null) before running.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"list-specs-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"You want ad-hoc extraction schemas — use `talonic_list_schemas`.\",\n \"You want to discover fields — use `talonic_list_fields` / `talonic_find_data`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"list-specs-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"search\",\n type: \"string\",\n description: \"Case-insensitive contains match on the Spec name.\",\n },\n { name: \"limit\", type: \"number\", description: \"Page size (default 20, max 100).\" },\n {\n name: \"cursor\",\n type: \"string\",\n description: \"Opaque cursor from `pagination.next_cursor`.\",\n },\n {\n name: \"order\",\n type: \"string\",\n description: \"`asc` or `desc`, sorted by `updated_at` (default desc).\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"list-specs-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n { name: \"data[].id\", type: \"string\", description: \"Spec UUID.\" },\n { name: \"data[].name\", type: \"string\", description: \"Spec name.\" },\n {\n name: \"data[].schema_id\",\n type: \"string\",\n description:\n \"The schema this Spec materializes onto — a different id from the Spec's own.\",\n },\n {\n name: \"data[].version\",\n type: \"number|null\",\n description: \"Published version number, or null if never published.\",\n },\n {\n name: \"data[].materialized_version\",\n type: \"number|null\",\n description: \"Version currently materialized onto the schema, or null.\",\n },\n {\n name: \"data[].field_count\",\n type: \"number\",\n description: \"Number of fields in the Spec.\",\n },\n {\n name: \"data[].node_count\",\n type: \"number\",\n description: \"Number of nodes in the authored rail.\",\n },\n {\n name: \"pagination.next_cursor\",\n type: \"string|null\",\n description: \"Cursor for the next page, or null when there isn't one.\",\n },\n ],\n },\n ],\n related: [\n { label: \"talonic_get_spec\", slug: \"talonic-get-spec\" },\n { label: \"talonic_run_spec\", slug: \"talonic-run-spec\" },\n ],\n faq: [\n {\n question: \"Why does a Spec have both an id and a schema_id?\",\n answer:\n \"The Spec is the authoring document; running it materializes onto a schema, which has its own id. `talonic_run_spec` takes the Spec id.\",\n },\n ],\n mentions: [\"specs\", \"list specs\", \"pipelines\", \"configured pipeline\", \"spec id\"],\n },\n {\n slug: \"talonic-get-spec\",\n parentSlug: \"tools\",\n title: \"talonic_get_spec\",\n seoTitle: \"talonic_get_spec — Inspect a Spec's Rail, Schema & Fields\",\n description:\n \"MCP tool that returns one Spec's full structure: version state, the schema it fills, the authored rail of nodes, the compiled execution phases, and its fields.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Get one Spec's full structure: identity and version state, the schema it materializes onto, `nodes[]` — the rail as authored, in editing order — and `phases[]` — the compiled execution plan, in run order. A validation checkpoint expands to one phase per gate, so the two lists differ on purpose. `fields[]` maps Spec fields to schema fields. Pass `include_versions` to also fetch `versions[]`, the Spec's published version history, newest first.\",\n },\n { type: \"heading\", level: 3, id: \"get-spec-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"You need to explain what a run will do before starting it.\",\n \"You want to confirm a Spec is published (`version` non-null) before calling `talonic_run_spec`.\",\n \"You need to map Spec field names to schema field keys.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"get-spec-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"You want to list all Specs — use `talonic_list_specs`.\",\n \"You are ready to execute the pipeline — use `talonic_run_spec`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"get-spec-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"spec_id\",\n type: \"string\",\n required: true,\n description: \"Spec UUID (from `talonic_list_specs`).\",\n },\n {\n name: \"include_versions\",\n type: \"boolean\",\n description: \"Also fetch the published versions list (adds `versions[]`).\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"get-spec-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n { name: \"id\", type: \"string\", description: \"Spec UUID.\" },\n { name: \"name\", type: \"string\", description: \"Spec name.\" },\n {\n name: \"version\",\n type: \"number|null\",\n description: \"Published version number, or null if never published.\",\n },\n {\n name: \"materialized_version\",\n type: \"number|null\",\n description: \"Version currently materialized onto the schema, or null.\",\n },\n {\n name: \"schema.id\",\n type: \"string\",\n description: \"The schema this Spec materializes onto.\",\n },\n {\n name: \"nodes[].type\",\n type: \"string\",\n description:\n \"Stage type in the authored rail: one of `source`, `registry`, `schema`, `resolve`, `valid`, `assembly`, `deliver`, `reconcile`, `sanitize`, `triage`, `switch`.\",\n },\n { name: \"nodes[].name\", type: \"string\", description: \"Node display name.\" },\n {\n name: \"phases[].number\",\n type: \"number\",\n description: \"Phase order in the compiled execution plan.\",\n },\n {\n name: \"phases[].type\",\n type: \"string\",\n description:\n \"Compiled phase type, derived from the rail stage it came from (`rail_stage_id` joins back to `nodes[].node_id`); Source and Data Product stages produce no phase, and a validation checkpoint expands to one phase per gate.\",\n },\n { name: \"phases[].name\", type: \"string\", description: \"Phase display name.\" },\n {\n name: \"fields[].name\",\n type: \"string\",\n description: \"Spec field name, mapped to its schema field.\",\n },\n {\n name: \"versions[].version\",\n type: \"number\",\n description: \"Published version number (present when `include_versions` is true).\",\n },\n {\n name: \"versions[].is_materialized\",\n type: \"boolean\",\n description: \"Whether this version is the one currently materialized onto the schema.\",\n },\n ],\n },\n ],\n related: [\n { label: \"talonic_list_specs\", slug: \"talonic-list-specs\" },\n { label: \"talonic_run_spec\", slug: \"talonic-run-spec\" },\n ],\n faq: [\n {\n question: \"Why do nodes and phases differ?\",\n answer:\n \"`nodes[]` is the rail as authored, in editing order; `phases[]` is the compiled execution plan, in run order. A validation checkpoint expands into one phase per gate, so a single authored node can produce several phases — the two lists differ on purpose.\",\n },\n ],\n mentions: [\"spec structure\", \"rail\", \"phases\", \"compiled plan\", \"spec versions\"],\n },\n {\n slug: \"talonic-run-spec\",\n parentSlug: \"tools\",\n title: \"talonic_run_spec\",\n seoTitle: \"talonic_run_spec — Run a Spec Pipeline over Your Documents\",\n description:\n \"MCP tool that runs a Spec pipeline over workspace documents or public file URLs in one call and returns a normalized run envelope that an agent can poll.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Run a Spec — the customer's configured pipeline — over a set of documents in one call. Provide exactly one of `document_ids` (documents already in the workspace) or `file_urls` (public https files, max 20 — Talonic ingests them first). The call returns a RunEnvelope that normalizes two different backends (`/v1/pipelines` for `document_ids`, `/v1/run` for `file_urls`) into one shape, so the agent never has to know which route ran — only which id to poll with: poll `talonic_get_run` with `pipeline_id` when `run_kind` is `pipeline`, or with `run_id` when it is `run`. Running a Spec consumes credits.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Documents not yet in the workspace: `talonic_request_upload` → poll `talonic_get_document` → `talonic_run_spec` with `document_ids`. Remote public files: `file_urls` (max 20).\",\n },\n { type: \"heading\", level: 3, id: \"run-spec-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"The user wants to run their configured pipeline (a Spec) over documents.\",\n \"You need to process files through a Spec and produce its structured rows.\",\n \"You already have a `spec_id` from `talonic_list_specs` and either workspace documents or public file URLs.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"run-spec-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"One-off extraction with an ad-hoc schema — use `talonic_extract`.\",\n \"Checking progress on a run already started — use `talonic_get_run`.\",\n \"Reading a completed run's rows — use `talonic_get_run_results`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"run-spec-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"spec_id\",\n type: \"string\",\n required: true,\n description: \"Spec UUID (from `talonic_list_specs`).\",\n },\n {\n name: \"document_ids\",\n type: \"string[]\",\n description: \"Workspace document ids (1–500). Mutually exclusive with `file_urls`.\",\n },\n {\n name: \"file_urls\",\n type: \"string[]\",\n description: \"Public https file URLs (1–20). Mutually exclusive with `document_ids`.\",\n },\n { name: \"name\", type: \"string\", description: \"Display name for the run.\" },\n {\n name: \"pipeline_mode\",\n type: \"string\",\n description: \"`new` (default) or `append` to the Spec's existing pipeline.\",\n },\n {\n name: \"batch_id\",\n type: \"string\",\n description: \"Caller grouping key. Only applies to the `file_urls` path.\",\n },\n {\n name: \"metadata\",\n type: \"object\",\n description:\n \"Flat caller tags stamped on every ingested document. Only applies to the `file_urls` path.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"run-spec-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n {\n name: \"run_kind\",\n type: \"string\",\n description: \"`pipeline` (document_ids route) or `run` (file_urls route).\",\n },\n {\n name: \"run_id\",\n type: \"string|null\",\n description: \"Run id when `run_kind` is `run`; null otherwise.\",\n },\n {\n name: \"pipeline_id\",\n type: \"string|null\",\n description: \"Pipeline id when `run_kind` is `pipeline`; null otherwise.\",\n },\n { name: \"spec_id\", type: \"string\", description: \"The Spec that ran.\" },\n {\n name: \"spec_name\",\n type: \"string|null\",\n description: \"The Spec's display name, when the backend returned one; null otherwise.\",\n },\n {\n name: \"status\",\n type: \"string\",\n description: \"`processing`, `completed` or `failed`, normalized across both backends.\",\n },\n {\n name: \"raw_status\",\n type: \"string|null\",\n description: \"The backend's own status string, unnormalized.\",\n },\n {\n name: \"input_count\",\n type: \"number\",\n description: \"Number of documents or URLs submitted.\",\n },\n {\n name: \"enqueued_documents\",\n type: \"number|null\",\n description:\n \"Documents enqueued for processing on the `document_ids` route; absent on the `file_urls` route.\",\n },\n {\n name: \"appended\",\n type: \"boolean\",\n description:\n \"Whether this run appended to the Spec's existing pipeline (`pipeline_mode: 'append'`); present on the `document_ids` route only.\",\n },\n {\n name: \"documents[]\",\n type: \"array\",\n description: \"Per-document detail, present on the `file_urls` route.\",\n },\n {\n name: \"message\",\n type: \"string|null\",\n description:\n \"Informational message from the API, e.g. 'Pipeline created and queued for processing.'; null when not provided.\",\n },\n { name: \"links\", type: \"object\", description: \"Follow-up URLs, e.g. a poll link.\" },\n ],\n },\n ],\n related: [\n { label: \"talonic_get_run\", slug: \"talonic-get-run\" },\n { label: \"talonic_get_run_results\", slug: \"talonic-get-run-results\" },\n { label: \"talonic_request_upload\", slug: \"talonic-request-upload\" },\n ],\n faq: [\n {\n question: \"Does this cost credits?\",\n answer:\n \"Yes — ingestion/OCR and extraction meter credits per document exactly as a run started in the app does; validation and delivery stages are free. Check `talonic_get_pricing` and `talonic_get_balance` before a large batch.\",\n },\n ],\n mentions: [\n \"run spec\",\n \"run pipeline\",\n \"execute pipeline\",\n \"file_urls\",\n \"document_ids\",\n \"pipeline_mode\",\n ],\n },\n {\n slug: \"talonic-get-run\",\n parentSlug: \"tools\",\n title: \"talonic_get_run\",\n seoTitle: \"talonic_get_run — Poll a Spec Run's Status and Progress\",\n description:\n \"MCP tool that polls a Spec run started by talonic_run_spec and returns normalized status, document-level progress counters and, for pipelines, phase progress.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Poll a Spec run started by `talonic_run_spec`: a normalized `status`, document-level progress, and — for pipeline runs — per-phase progress. Pass exactly one of `run_id` or `pipeline_id` — poll with `pipeline_id` when `run_kind` is `pipeline`, or with `run_id` when it is `run`.\",\n },\n { type: \"heading\", level: 3, id: \"get-run-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"You just called `talonic_run_spec` and need to track progress.\",\n \"You want to know when a run finished, or whether any documents errored.\",\n \"Poll every 5–10 seconds; stop as soon as `status` is `completed` or `failed`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"get-run-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"Starting a run — use `talonic_run_spec`.\",\n \"Reading the structured rows once a run is complete — use `talonic_get_run_results`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"get-run-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"run_id\",\n type: \"string\",\n description:\n \"From a `run_kind: 'run'` envelope (`/v1/run`). Provide exactly one of `run_id` or `pipeline_id`.\",\n },\n {\n name: \"pipeline_id\",\n type: \"string\",\n description:\n \"From a `run_kind: 'pipeline'` envelope (`/v1/pipelines`). Provide exactly one of `run_id` or `pipeline_id`.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"get-run-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n {\n name: \"status\",\n type: \"string\",\n description: \"`processing`, `completed` or `failed`, normalized across both backends.\",\n },\n {\n name: \"raw_status\",\n type: \"string|null\",\n description: \"The backend's own status string, unnormalized.\",\n },\n {\n name: \"progress.total_documents\",\n type: \"number|null\",\n description: \"Total documents in the run.\",\n },\n {\n name: \"progress.completed_documents\",\n type: \"number|null\",\n description: \"Documents finished successfully.\",\n },\n {\n name: \"progress.error_documents\",\n type: \"number|null\",\n description: \"Documents that errored.\",\n },\n {\n name: \"progress.phases[]\",\n type: \"array\",\n description:\n \"Per-phase progress for pipeline runs — phase id, name, type, and completed/running/error counts.\",\n },\n { name: \"documents[]\", type: \"array\", description: \"Per-document detail, when present.\" },\n {\n name: \"error_message\",\n type: \"string|null\",\n description: \"Top-level error, when `status` is `failed`.\",\n },\n ],\n },\n ],\n related: [\n { label: \"talonic_run_spec\", slug: \"talonic-run-spec\" },\n { label: \"talonic_get_run_results\", slug: \"talonic-get-run-results\" },\n ],\n faq: [\n {\n question: \"How long does a run take?\",\n answer:\n \"Seconds per document for the extraction stage, plus whatever validation, resolution, assembly or delivery stages the Spec's rail contains; poll every 5–10 seconds and stop on completed or failed.\",\n },\n ],\n mentions: [\"run status\", \"poll run\", \"pipeline progress\", \"run progress\"],\n },\n {\n slug: \"talonic-get-run-results\",\n parentSlug: \"tools\",\n title: \"talonic_get_run_results\",\n seoTitle: \"talonic_get_run_results — Read Structured Rows of a Run\",\n description:\n \"MCP tool that reads a Spec run's structured rows, one per document, with column definitions, clean per-field values and the count of values still in review.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read a Spec run's structured rows: one row per document, with the Spec's fields as clean values, plus the `columns[]` definitions that describe each field's key, display name and data type. Cells held for review serialize as `null` until a reviewer approves them — check `pending_review_count` to see how many are still held. Pass `include: ['provenance']` for per-field source spans, or `include: ['cells']` for the heavier cell-level payload.\",\n },\n { type: \"heading\", level: 3, id: \"get-run-results-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"`talonic_get_run` reports `completed` — or you want to read partial rows while it is still `processing`.\",\n \"You need the Spec's structured output for one document or the whole run.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"get-run-results-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"Checking run progress — use `talonic_get_run`.\",\n \"Per-field provenance of a single value — pass `include: ['provenance']` here, or use `talonic_field_values`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"get-run-results-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"run_id\",\n type: \"string\",\n description:\n \"From a `run_kind: 'run'` envelope, alone — or accompanying `pipeline_id` to scope that pipeline's results to one submission.\",\n },\n {\n name: \"pipeline_id\",\n type: \"string\",\n description:\n \"From a `run_kind: 'pipeline'` envelope. Optionally pass `run_id` alongside it to scope results to one submission within the pipeline.\",\n },\n { name: \"document_id\", type: \"string\", description: \"Restrict to one document.\" },\n {\n name: \"include\",\n type: \"string[]\",\n description: \"`cells` and/or `provenance` — extra per-field detail; heavier payload.\",\n },\n { name: \"limit\", type: \"number\", description: \"Page size (1–200, default 50).\" },\n {\n name: \"cursor\",\n type: \"string\",\n description: \"Opaque cursor from `pagination.next_cursor`.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"get-run-results-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n {\n name: \"columns[].field_key\",\n type: \"string\",\n description: \"Stable field key, matches `data[].fields` keys.\",\n },\n {\n name: \"columns[].display_name\",\n type: \"string\",\n description: \"Human-readable column label.\",\n },\n {\n name: \"columns[].data_type\",\n type: \"string\",\n description: \"The field's data type (string, number, array, etc.).\",\n },\n {\n name: \"data[].document_id\",\n type: \"string\",\n description: \"The document this row belongs to.\",\n },\n { name: \"data[].filename\", type: \"string\", description: \"The document's filename.\" },\n {\n name: \"data[].status\",\n type: \"string\",\n description: \"`complete`, `partial`, `error` or `processing` for this document's row.\",\n },\n {\n name: \"data[].fields\",\n type: \"object\",\n description: \"`{ field_key: value }` — the clean values; held cells are `null`.\",\n },\n {\n name: \"pagination\",\n type: \"object\",\n description: \"`total`, `limit`, `has_more`, `next_cursor`.\",\n },\n {\n name: \"pending_review_count\",\n type: \"number\",\n description: \"Number of held (pending-review) cells on this page.\",\n },\n ],\n },\n ],\n related: [\n { label: \"talonic_get_run\", slug: \"talonic-get-run\" },\n { label: \"talonic_field_values\", slug: \"talonic-field-values\" },\n ],\n faq: [\n {\n question: \"Why is a value null?\",\n answer:\n \"Held (pending review) cells serialize as null until a reviewer approves them; `pending_review_count` tells you how many are held on the page.\",\n },\n ],\n mentions: [\"run results\", \"pipeline results\", \"structured rows\", \"columns\", \"pending review\"],\n },\n {\n slug: \"talonic-ask\",\n parentSlug: \"tools\",\n title: \"talonic_ask\",\n seoTitle: \"talonic_ask — Ask Cited, Verified Questions of Documents\",\n description:\n \"MCP tool that answers a natural-language question over your workspace documents as cited markdown with per-claim source links and a verification verdict.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Ask a natural-language question over the workspace's documents and get a cited, verified answer in markdown. The Talonic agent plans over the structured field plane, runs read-only SQL over extracted cells, reads document text, and grounds every load-bearing claim in a source span. The call waits up to `wait_seconds` (default 45, max 55) for the answer; if it is not ready in time, the response comes back `processing` with an `ask_id` to poll. Consumes credits.\",\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"Costs credits. For a known field's values use `talonic_field_values` or `talonic_filter` — they are free.\",\n },\n { type: \"heading\", level: 3, id: \"ask-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"The user asks an open question about their documents, e.g. 'which vendors invoiced us twice in May?'\",\n \"The user wants a summary across documents.\",\n \"The answer needs reasoning over several fields, not a single known value.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"ask-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\n \"Reading a known field's values — use `talonic_field_values` (free).\",\n \"Filtering documents by a known value — use `talonic_filter` (free).\",\n \"Locating which field holds a concept — use `talonic_find_data`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"ask-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"question\",\n type: \"string\",\n required: true,\n description: \"The question, in the user's words (max 4000 characters).\",\n },\n {\n name: \"scope\",\n type: \"object\",\n description:\n \"Restrict the question to a slice of the workspace — `document_ids[]`, `schema_id`, `pipeline_id`, `data_product_id`, `document_type`, `source_id`, `tags[]`, `ingested_after`, `ingested_before`. Present fields are ANDed.\",\n },\n {\n name: \"conversation_id\",\n type: \"string\",\n description: \"Continue an existing conversation; the agent sees prior turns.\",\n },\n {\n name: \"output_format\",\n type: \"object\",\n description:\n \"Shape the answer — `instruction` and/or `template`. Form only, never grounding.\",\n },\n {\n name: \"wait_seconds\",\n type: \"number\",\n default: \"45\",\n description:\n \"Seconds to wait for the answer before returning `processing` (0–55, default 45).\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"ask-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n {\n name: \"ask_id\",\n type: \"string\",\n description: \"The ask's id — pass to `talonic_get_answer` if still processing.\",\n },\n { name: \"status\", type: \"string\", description: \"`completed`, `processing` or `error`.\" },\n {\n name: \"conversation_id\",\n type: \"string\",\n description: \"This ask's conversation id; pass it back to continue the thread.\",\n },\n { name: \"answer\", type: \"string\", description: \"The answer, in markdown.\" },\n {\n name: \"citations[].quote\",\n type: \"string\",\n description: \"The exact source span backing a claim.\",\n },\n {\n name: \"citations[].document_id\",\n type: \"string\",\n description: \"The document the citation came from.\",\n },\n {\n name: \"citations[].filename\",\n type: \"string\",\n description: \"That document's filename.\",\n },\n {\n name: \"verification.verdict\",\n type: \"string\",\n description: \"Whether every load-bearing claim checked out against its citation.\",\n },\n {\n name: \"usage.credits_charged\",\n type: \"number\",\n description: \"Credits consumed by this ask.\",\n },\n {\n name: \"waited_ms\",\n type: \"number\",\n description: \"How long the call actually waited before returning.\",\n },\n ],\n },\n ],\n related: [\n { label: \"talonic_get_answer\", slug: \"talonic-get-answer\" },\n { label: \"talonic_find_data\", slug: \"talonic-find-data\" },\n { label: \"talonic_field_values\", slug: \"talonic-field-values\" },\n ],\n faq: [\n {\n question: \"What if the answer is not ready in time?\",\n answer:\n \"The tool returns status `processing` with the `ask_id`; call `talonic_get_answer` with it a few seconds later. Passing `conversation_id` lets follow-up questions see earlier turns.\",\n },\n ],\n mentions: [\"ask\", \"question answering\", \"RAG\", \"cited answer\", \"verification\", \"conversation\"],\n },\n {\n slug: \"talonic-get-answer\",\n parentSlug: \"tools\",\n title: \"talonic_get_answer\",\n seoTitle: \"talonic_get_answer — Poll a Talonic Ask for Its Answer\",\n description:\n \"MCP tool that polls a question started with talonic_ask until the cited, verified answer is ready, so agents never block on long questions over big workspaces.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Poll an ask started by `talonic_ask` that was still `processing` when its wait ended. Returns the same cited, verified answer envelope once the ask completes.\",\n },\n { type: \"heading\", level: 3, id: \"get-answer-use-when\", text: \"When to use\" },\n {\n type: \"list\",\n items: [\n \"`talonic_ask` returned `status: 'processing'` with an `ask_id` — poll every few seconds until `completed` or `error`.\",\n ],\n },\n { type: \"heading\", level: 3, id: \"get-answer-do-not-use\", text: \"When not to use\" },\n {\n type: \"list\",\n items: [\"Asking a new question — use `talonic_ask`.\"],\n },\n { type: \"heading\", level: 3, id: \"get-answer-params\", text: \"Parameters\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"ask_id\",\n type: \"string\",\n required: true,\n description: \"The ask id, from `talonic_ask`.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"get-answer-response\", text: \"Response shape\" },\n {\n type: \"param-table\",\n title: \"Fields\",\n params: [\n { name: \"status\", type: \"string\", description: \"`completed`, `processing` or `error`.\" },\n {\n name: \"answer\",\n type: \"string\",\n description: \"The answer, in markdown, once completed.\",\n },\n {\n name: \"citations[]\",\n type: \"array\",\n description: \"Source spans backing the answer, once completed.\",\n },\n {\n name: \"verification\",\n type: \"object\",\n description: \"Verdict on whether claims checked out, once completed.\",\n },\n { name: \"usage\", type: \"object\", description: \"Credits and tokens consumed.\" },\n {\n name: \"poll_hint\",\n type: \"string\",\n description:\n \"Present only while `status` is `processing`; a hint to poll again shortly.\",\n },\n ],\n },\n ],\n related: [{ label: \"talonic_ask\", slug: \"talonic-ask\" }],\n faq: [\n {\n question: \"How often should I poll?\",\n answer: \"Every 2–5 seconds; most asks complete within a minute.\",\n },\n ],\n mentions: [\"get answer\", \"poll ask\", \"answer status\"],\n },\n]\n","import type { RawSection } from \"../types\"\n\n// The Process Plane tools (`talonic_process_*`, src/tools/processes.ts).\n// Rendered at talonic.com/docs/mcp/<slug>; docs/sections.json keeps a mirror\n// (`mcp-<slug>`) that tests/content/tool-sections.test.ts holds in step.\n// The tools are listed only when the caller holds the Process Plane view\n// permission; every page says so.\n\nexport const sections: RawSection[] = [\n {\n slug: \"talonic-process-list\",\n parentSlug: \"tools\",\n title: \"talonic_process_list\",\n seoTitle: \"talonic_process_list — List a Workspace's Processes\",\n description:\n \"MCP tool that lists a Talonic workspace's processes with their live version, folder, tags and number of steps. Start here: the other process tools take its id.\",\n content: [\n {\n type: \"paragraph\",\n text: \"List the workspace's processes: name, live version (null when only a draft exists), folder, tags, number of steps and last edit. Start here; the `id` is what the other process tools take. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the run and sign permissions on every call.\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_list({})\\n{ \"data\": [{ \"id\": \"11111111-1111-4111-8111-111111111111\", \"name\": \"Vendor bank details change\", \"liveVersion\": 3, \"folder\": \"Finance\", \"tags\": [\"ap\"], \"steps\": 7 }] }',\n },\n ],\n related: [\n {\n label: \"talonic_process_run\",\n slug: \"talonic-process-run\",\n },\n {\n label: \"talonic_process_runs\",\n slug: \"talonic-process-runs\",\n },\n ],\n faq: [\n {\n question: \"Does it show drafts?\",\n answer:\n \"Yes. A process with `liveVersion: null` has never been published and cannot be started.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-run\",\n parentSlug: \"tools\",\n title: \"talonic_process_run\",\n seoTitle: \"talonic_process_run — Start a Process for One Item\",\n description:\n \"MCP tool that starts a published Talonic process for one item, with values given by field name, and returns the process's reply or where the run stands now.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Start a published process for one item. Values go by field name. Works for processes whose items are posted (started by hand, by another system or by a form). When the process has a reply step that answers in time, the reply comes back. Starting a process can send mail, call other systems and ask people to sign, so call it only when the user asks. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the run and sign permissions on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"From talonic_process_list.\",\n },\n {\n name: \"values\",\n type: \"object\",\n required: true,\n description:\n \"Values by field name; an unknown name is refused with the list of the process's fields.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_run({ \"process_id\": \"11111111-1111-4111-8111-111111111111\", \"values\": { \"Vendor\": \"Acme\", \"Amount\": 1200 } })\\n{ \"runId\": \"22222222-2222-4222-8222-222222222222\", \"process\": \"Vendor bank details change\", \"reply\": { \"status\": 200, \"body\": \"Received\" } }',\n },\n ],\n related: [\n {\n label: \"talonic_process_status\",\n slug: \"talonic-process-status\",\n },\n {\n label: \"talonic_process_list\",\n slug: \"talonic-process-list\",\n },\n ],\n faq: [\n {\n question: \"Is it a write?\",\n answer:\n \"Yes. It needs the Process Plane run permission and the write scope, and it is annotated as not read-only.\",\n },\n ],\n mentions: [\"start\", \"run\", \"process\", \"workflow\"],\n },\n {\n slug: \"talonic-process-status\",\n parentSlug: \"tools\",\n title: \"talonic_process_status\",\n seoTitle: \"talonic_process_status — Where a Process Run Stands\",\n description:\n \"MCP tool that shows where a Talonic process run stands: per step how many items are waiting, done or failed, and each item's state. Default: the latest run.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Where a run stands: per step how many items wait, are done or failed, and each item's state. Without `run_id`, the latest run. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the run and sign permissions on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process.\",\n },\n {\n name: \"run_id\",\n type: \"UUID\",\n required: false,\n description: \"A run; default the latest.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_status({ \"process_id\": \"11111111-1111-4111-8111-111111111111\" })\\n{ \"status\": { \"...\": \"per step counts\" }, \"items\": { \"runId\": \"22222222-2222-4222-8222-222222222222\", \"items\": [{ \"name\": \"Acme\", \"state\": \"waiting\" }] } }',\n },\n ],\n related: [\n {\n label: \"talonic_process_runs\",\n slug: \"talonic-process-runs\",\n },\n {\n label: \"talonic_process_sign\",\n slug: \"talonic-process-sign\",\n },\n ],\n faq: [],\n mentions: [\"status\", \"run\", \"process\"],\n },\n {\n slug: \"talonic-process-runs\",\n parentSlug: \"tools\",\n title: \"talonic_process_runs\",\n seoTitle: \"talonic_process_runs — Process Runs Across Processes\",\n description:\n \"MCP tool that lists Talonic process runs across all processes, newest first, with items done, waiting and failed; filter by process or runs waiting for you.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Runs across all processes, newest first, 50 a page: state (running, completed, failed, or stuck = open with a failed item) and item counts. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the run and sign permissions on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"state\",\n type: \"string\",\n required: false,\n description: \"running, completed, failed or stuck.\",\n },\n {\n name: \"process_id\",\n type: \"UUID\",\n required: false,\n description: \"Only this process.\",\n },\n {\n name: \"waiting_for_me\",\n type: \"boolean\",\n required: false,\n description: \"Only runs with a sign-off or form waiting for the caller.\",\n },\n {\n name: \"page\",\n type: \"integer\",\n required: false,\n description: \"0-based page.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_runs({ \"state\": \"stuck\" })\\n{ \"runs\": [{ \"runId\": \"22222222-2222-4222-8222-222222222222\", \"process\": \"Vendor bank details change\", \"status\": \"running\", \"items\": 3, \"failed\": 1 }], \"page\": 0, \"more\": false }',\n },\n ],\n related: [\n {\n label: \"talonic_process_status\",\n slug: \"talonic-process-status\",\n },\n ],\n faq: [],\n mentions: [\"runs\", \"executions\", \"stuck\"],\n },\n {\n slug: \"talonic-process-waiting-for-me\",\n parentSlug: \"tools\",\n title: \"talonic_process_waiting_for_me\",\n seoTitle: \"talonic_process_waiting_for_me — Sign-offs for You\",\n description:\n \"MCP tool that lists the Talonic sign-offs and forms waiting for the caller, per process and step, with how many items wait on each before the run moves on.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Sign-offs and forms waiting for the person behind the key: per process and step, how many items wait. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the run and sign permissions on every call.\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_waiting_for_me({})\\n{ \"data\": [{ \"processId\": \"11111111-1111-4111-8111-111111111111\", \"process\": \"Vendor bank details change\", \"stepId\": \"ok\", \"step\": \"Finance signs\", \"waiting\": 2 }] }',\n },\n ],\n related: [\n {\n label: \"talonic_process_sign\",\n slug: \"talonic-process-sign\",\n },\n {\n label: \"talonic_process_status\",\n slug: \"talonic-process-status\",\n },\n ],\n faq: [],\n mentions: [\"approval\", \"sign-off\", \"inbox\"],\n },\n {\n slug: \"talonic-process-sign\",\n parentSlug: \"tools\",\n title: \"talonic_process_sign\",\n seoTitle: \"talonic_process_sign — Sign a Step of a Process Run\",\n description:\n \"MCP tool that signs a sign-off step of a Talonic process run for the caller: approve every waiting item or only some, with a decision where the step offers one.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Sign a sign-off step for the caller: all waiting items, or only `items`. A step with choices needs `decision`. Allowed only where the caller is assigned to the step, as on the screen. Signing moves real work on, so call it only when the user decides. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the run and sign permissions on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process.\",\n },\n {\n name: \"run_id\",\n type: \"UUID\",\n required: true,\n description: \"The run.\",\n },\n {\n name: \"step_id\",\n type: \"string\",\n required: true,\n description: \"The step id from talonic_process_waiting_for_me.\",\n },\n {\n name: \"items\",\n type: \"string[]\",\n required: false,\n description: \"Item keys; default every waiting item.\",\n },\n {\n name: \"decision\",\n type: \"string\",\n required: false,\n description: \"One of the step's choices.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_sign({ \"process_id\": \"11111111-1111-4111-8111-111111111111\", \"run_id\": \"22222222-2222-4222-8222-222222222222\", \"step_id\": \"ok\" })\\n{ \"released\": 2, \"alreadySigned\": 0 }',\n },\n ],\n related: [\n {\n label: \"talonic_process_waiting_for_me\",\n slug: \"talonic-process-waiting-for-me\",\n },\n ],\n faq: [\n {\n question: \"Can it sign for someone else?\",\n answer:\n \"No. It signs as the person behind the key, and only steps that person is assigned to.\",\n },\n ],\n mentions: [\"approve\", \"sign\", \"sign-off\"],\n },\n {\n slug: \"talonic-process-get\",\n parentSlug: \"tools\",\n title: \"talonic_process_get\",\n seoTitle: \"talonic_process_get — Read One Process and Its Draft\",\n description:\n \"MCP tool that reads one Talonic process with its draft: its fields, its steps with their ids and settings, and the arrows between them, before changing it.\",\n content: [\n {\n type: \"paragraph\",\n text: \"One process with its draft: fields, steps (id, kind, name, settings) and the arrows between them. Use it to see step ids before changing one step, or to read what a process does. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process, from talonic_process_list.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_get({ \"process_id\": \"1111…\" })\\n{ \"id\": \"1111…\", \"name\": \"Invoice approval\", \"activeVersion\": 2, \"draft\": { \"fields\": [], \"steps\": [{ \"id\": \"s_1\", \"kind\": \"approval\", \"name\": \"Manager approval\" }], \"flow\": [] } }',\n },\n ],\n related: [\n {\n label: \"talonic_process_change\",\n slug: \"talonic-process-change\",\n },\n {\n label: \"talonic_process_check\",\n slug: \"talonic-process-check\",\n },\n ],\n faq: [\n {\n question: \"Does it return the live version or the draft?\",\n answer:\n \"The draft. `activeVersion` says which published version is live; talonic_process_check shows how the draft differs from it.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-create\",\n parentSlug: \"tools\",\n title: \"talonic_process_create\",\n seoTitle: \"talonic_process_create — Set Up a New Process Draft\",\n description:\n \"MCP tool that sets up a new Talonic process as a draft, from a description in plain words or an exported n8n workflow. Nothing runs until it is published.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Set up a new process as a draft. Pass `description` in the user's own words (what comes in, what is read or checked, who decides, what goes out), or `workflow_json` with an exported n8n workflow to take it over. Nothing runs and nothing is sent until the process is published. The answer names what a person still has to choose (`stillOpen`, `questions`). Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"description\",\n type: \"string\",\n required: false,\n description: \"What the process should do, 10 to 2,000 characters.\",\n },\n {\n name: \"workflow_json\",\n type: \"string\",\n required: false,\n description: \"An exported n8n workflow as JSON text, instead of description.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_create({ \"description\": \"Invoices arrive by mail. Read vendor and amount. Over 10,000 a manager approves.\" })\\n{ \"id\": \"1111…\", \"name\": \"Invoice approval\", \"steps\": 5, \"explanation\": \"Reads each invoice and sends large ones to a manager.\", \"questions\": [\"Who is the manager?\"], \"stillOpen\": [\"Who signs here? Choose a person, a role or a group.\"], \"notes\": [] }',\n },\n ],\n related: [\n {\n label: \"talonic_process_change\",\n slug: \"talonic-process-change\",\n },\n {\n label: \"talonic_process_check\",\n slug: \"talonic-process-check\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n ],\n faq: [\n {\n question: \"Does creating a process start anything?\",\n answer:\n \"No. It is a draft until talonic_process_publish; no document is read, no mail sent and no system called before that.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-change\",\n parentSlug: \"tools\",\n title: \"talonic_process_change\",\n seoTitle: \"talonic_process_change — Change a Talonic Process Draft\",\n description:\n \"MCP tool that changes a Talonic process draft from an instruction in plain words, and saves nothing until the user agreed when the change reduces governance.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Change a process draft from an instruction in plain words: add, remove or reorder steps, change who decides, what is sent, any setting. With `step_id` only that step's settings change. The live version stays as it is until the process is published. When the change would have fewer people or checks look at items (a sign-off removed, a signer dropped, fewer items reaching a person, an agent step acting on its own), nothing is saved and the answer is `needs_confirmation` with the points; call again with `confirmed: true` only after the user has read them and agreed. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process, from talonic_process_list.\",\n },\n {\n name: \"change\",\n type: \"string\",\n required: true,\n description: \"What should change.\",\n },\n {\n name: \"step_id\",\n type: \"string\",\n required: false,\n description: \"Only this step's settings; ids come from talonic_process_get.\",\n },\n {\n name: \"confirmed\",\n type: \"boolean\",\n required: false,\n description:\n \"true only after needs_confirmation was shown to the user and they agreed.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_change({ \"process_id\": \"1111…\", \"change\": \"Remove the manager approval.\" })\\n{ \"status\": \"needs_confirmation\", \"reductions\": [\"\\\\\"Manager approval\\\\\" is removed: nobody signs or reviews there any more.\"] }',\n },\n ],\n related: [\n {\n label: \"talonic_process_get\",\n slug: \"talonic-process-get\",\n },\n {\n label: \"talonic_process_check\",\n slug: \"talonic-process-check\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n ],\n faq: [\n {\n question: \"What does needs_confirmation mean?\",\n answer:\n \"Nothing was saved. The change takes control away from people; show the user the listed points and send the same change with `confirmed: true` only if they agree.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-check\",\n parentSlug: \"tools\",\n title: \"talonic_process_check\",\n seoTitle: \"talonic_process_check — Check a Draft Before Going Live\",\n description:\n \"MCP tool that says what a Talonic process draft still needs per step before it can go live, every problem it finds, and what publishing it would change.\",\n content: [\n {\n type: \"paragraph\",\n text: \"What a draft still needs before it can go live (`stillNeeded`, per step), every problem the check finds, and what publishing would change against the live version. Call it before publishing and tell the user what is open. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process, from talonic_process_list.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_check({ \"process_id\": \"1111…\" })\\n{ \"check\": { \"canPublish\": false, \"stillNeeded\": [{ \"stepId\": \"s_1\", \"key\": \"assignees\", \"message\": \"Who signs here? Choose a person, a role or a group.\" }], \"problems\": [] }, \"changes\": { \"changes\": [{ \"type\": \"step_added\", \"text\": \"Manager approval added\" }] } }',\n },\n ],\n related: [\n {\n label: \"talonic_process_change\",\n slug: \"talonic-process-change\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n {\n label: \"talonic_process_test_run\",\n slug: \"talonic-process-test-run\",\n },\n ],\n faq: [\n {\n question: \"Can a draft with open points be published?\",\n answer: \"No. talonic_process_publish is refused while `canPublish` is false.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-test-run\",\n parentSlug: \"tools\",\n title: \"talonic_process_test_run\",\n seoTitle: \"talonic_process_test_run — Test a Process Draft Safely\",\n description:\n \"MCP tool that runs a Talonic process draft on real documents in a test copy that sends nothing out, so you can see each step's result before going live.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Run the draft on real documents in a test copy: nothing is delivered, emailed or called. Steps that are not set up yet end the test (`endsAt`). Returns the test copy's `processId` and the `runId`; follow it with talonic_process_status on that processId. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process, from talonic_process_list.\",\n },\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"Documents to run the draft on, 1 to 100.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_test_run({ \"process_id\": \"1111…\", \"document_ids\": [\"3333…\"] })\\n{ \"processId\": \"4444…\", \"endsAt\": [{ \"stepId\": \"s_1\", \"name\": \"Manager approval\" }], \"runId\": \"2222…\" }',\n },\n ],\n related: [\n {\n label: \"talonic_process_status\",\n slug: \"talonic-process-status\",\n },\n {\n label: \"talonic_process_check\",\n slug: \"talonic-process-check\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n ],\n faq: [\n {\n question: \"Does a test run send mail?\",\n answer: \"No. A test copy delivers nothing, sends no mail and calls no system.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-publish\",\n parentSlug: \"tools\",\n title: \"talonic_process_publish\",\n seoTitle: \"talonic_process_publish — Make a Process Draft Live\",\n description:\n \"MCP tool that makes a Talonic process draft the live version, so it starts, sends mail and calls systems for real. Refused while the check still finds an error.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Make the draft the live version. From then on the process runs for real: it starts on what its start says (arriving documents, mail, another system), sends its mail and calls its systems. Refused while the check finds an error. Call it only when the user said to publish, after showing them talonic_process_check. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process, from talonic_process_list.\",\n },\n {\n name: \"reason\",\n type: \"string\",\n required: false,\n description: \"Why this change, for the record.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_publish({ \"process_id\": \"1111…\", \"reason\": \"Second approver added\" })\\n{ \"version\": 3, \"changed\": true }',\n },\n ],\n related: [\n {\n label: \"talonic_process_check\",\n slug: \"talonic-process-check\",\n },\n {\n label: \"talonic_process_versions\",\n slug: \"talonic-process-versions\",\n },\n {\n label: \"talonic_process_rollback\",\n slug: \"talonic-process-rollback\",\n },\n ],\n faq: [\n {\n question: \"Can a publish be undone?\",\n answer:\n \"talonic_process_rollback makes an earlier version live again. What the new version already did (mail sent, systems called) stays done.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-versions\",\n parentSlug: \"tools\",\n title: \"talonic_process_versions\",\n seoTitle: \"talonic_process_versions — Published Process Versions\",\n description:\n \"MCP tool that lists the published versions of a Talonic process, newest first, with who published each one and why, to choose a version to roll back to.\",\n content: [\n {\n type: \"paragraph\",\n text: \"The published versions of a process, newest first, with who published and why. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process, from talonic_process_list.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_versions({ \"process_id\": \"1111…\" })\\n[{ \"n\": 3, \"publishedAt\": \"2026-11-24T06:22:00Z\", \"reason\": \"Second approver added\" }]',\n },\n ],\n related: [\n {\n label: \"talonic_process_rollback\",\n slug: \"talonic-process-rollback\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n ],\n faq: [\n {\n question: \"Is the draft a version?\",\n answer: \"No. Only published states are versions.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-rollback\",\n parentSlug: \"tools\",\n title: \"talonic_process_rollback\",\n seoTitle: \"talonic_process_rollback — Roll a Process Back Live\",\n description:\n \"MCP tool that makes an earlier published version of a Talonic process live again. It changes what runs for real, so call it only when the user asks for it.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Make an earlier published version live again. It changes what runs for real, so call it only when the user asks for it. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process, from talonic_process_list.\",\n },\n {\n name: \"version\",\n type: \"integer\",\n required: true,\n description: \"The version number to make live again.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_rollback({ \"process_id\": \"1111…\", \"version\": 2 })\\n{ \"version\": 2 }',\n },\n ],\n related: [\n {\n label: \"talonic_process_versions\",\n slug: \"talonic-process-versions\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n ],\n faq: [\n {\n question: \"Does a rollback change the draft?\",\n answer: \"No. The draft stays as it is; only the live version changes.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-delete\",\n parentSlug: \"tools\",\n title: \"talonic_process_delete\",\n seoTitle: \"talonic_process_delete — Delete a Process for Good\",\n description:\n \"MCP tool that deletes a Talonic process. Not possible while a run is open, and it cannot be undone: call it only when the user named the process to delete.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Delete a process. Not possible while a run is open, and it cannot be undone: call it only when the user asked to delete this process by name. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process, from talonic_process_list.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_delete({ \"process_id\": \"1111…\" })\\n{ \"deleted\": true }',\n },\n ],\n related: [\n {\n label: \"talonic_process_list\",\n slug: \"talonic-process-list\",\n },\n {\n label: \"talonic_process_runs\",\n slug: \"talonic-process-runs\",\n },\n ],\n faq: [\n {\n question: \"What happens to its past runs?\",\n answer: \"A process with an open run cannot be deleted. Finished runs go with the process.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-item\",\n parentSlug: \"tools\",\n title: \"talonic_process_item\",\n seoTitle: \"talonic_process_item — One Item's Way Through a Run\",\n description:\n \"MCP tool that shows one item's way through a Talonic process run, step by step, with status, time and notes such as why it stopped, and its values now.\",\n content: [\n {\n type: \"paragraph\",\n text: \"One item's way through a run, step by step (status, time, and a note such as why it stopped or where a mail went), and its values now. Item keys come from talonic_process_status. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process, from talonic_process_list.\",\n },\n {\n name: \"run_id\",\n type: \"UUID\",\n required: true,\n description: \"The run.\",\n },\n {\n name: \"item_key\",\n type: \"string\",\n required: true,\n description: \"The item's key (documentId) from the run.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_item({ \"process_id\": \"1111…\", \"run_id\": \"2222…\", \"item_key\": \"3333…\" })\\n{ \"steps\": [{ \"name\": \"Log it\", \"status\": \"stopped\", \"note\": \"The other system answered 500.\", \"canRetry\": true }], \"values\": [{ \"name\": \"amount\", \"value\": 900 }] }',\n },\n ],\n related: [\n {\n label: \"talonic_process_status\",\n slug: \"talonic-process-status\",\n },\n {\n label: \"talonic_process_retry\",\n slug: \"talonic-process-retry\",\n },\n ],\n faq: [\n {\n question: \"Where do I see why an item failed?\",\n answer: \"In the `note` of the step that stopped.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-retry\",\n parentSlug: \"tools\",\n title: \"talonic_process_retry\",\n seoTitle: \"talonic_process_retry — Retry the Failed Steps of a Run\",\n description:\n \"MCP tool that tries every failed step of a Talonic process run again. Steps that send or call will send or call again: use it once the cause is fixed.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Try every failed step of a run again. Steps that send or call will send or call again, so use it when the cause of the failure is fixed. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"run_id\",\n type: \"UUID\",\n required: true,\n description: \"The run, from talonic_process_runs.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_retry({ \"run_id\": \"2222…\" })\\n{ \"retried\": 1 }',\n },\n ],\n related: [\n {\n label: \"talonic_process_runs\",\n slug: \"talonic-process-runs\",\n },\n {\n label: \"talonic_process_item\",\n slug: \"talonic-process-item\",\n },\n ],\n faq: [\n {\n question: \"Does a retry repeat steps that succeeded?\",\n answer: \"No. Only failed steps run again.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-send-back\",\n parentSlug: \"tools\",\n title: \"talonic_process_send_back\",\n seoTitle: \"talonic_process_send_back — Send Items Back in a Run\",\n description:\n \"MCP tool that sends items back from a sign-off step of a Talonic process run with a reason, for the caller: the opposite of signing, where they are assigned.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Send items back from a sign-off step with a reason: the opposite of signing. Allowed only where the caller is assigned to the step. It moves real work, so call it only when the user decides. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process, from talonic_process_list.\",\n },\n {\n name: \"run_id\",\n type: \"UUID\",\n required: true,\n description: \"The run.\",\n },\n {\n name: \"step_id\",\n type: \"string\",\n required: true,\n description: \"The sign-off step.\",\n },\n {\n name: \"items\",\n type: \"string[]\",\n required: true,\n description: \"Item keys.\",\n },\n {\n name: \"reason\",\n type: \"string\",\n required: true,\n description: \"Why they go back.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_send_back({ \"process_id\": \"1111…\", \"run_id\": \"2222…\", \"step_id\": \"s_1\", \"items\": [\"3333…\"], \"reason\": \"Amount does not match the order\" })\\n{ \"sentBack\": 1 }',\n },\n ],\n related: [\n {\n label: \"talonic_process_sign\",\n slug: \"talonic-process-sign\",\n },\n {\n label: \"talonic_process_waiting_for_me\",\n slug: \"talonic-process-waiting-for-me\",\n },\n ],\n faq: [\n {\n question: \"Where do sent-back items go?\",\n answer:\n \"To where the process says: the step before, or the step its settings name for stopped items.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-setup\",\n parentSlug: \"tools\",\n title: \"talonic_process_setup\",\n seoTitle: \"talonic_process_setup — People, Mailboxes and Look-ups\",\n description:\n \"MCP tool that lists what Talonic processes can use: who a step can wait for, the connected mailboxes, the names of stored secrets and data look-ups can read.\",\n content: [\n {\n type: \"paragraph\",\n text: \"What processes of this workspace can use: who a step can wait for (roles, groups), the connected mailboxes and whether each may send, the names of stored secrets (never values), and the shared data a look-up step can read. Connecting a mailbox and storing a secret happen in the Talonic web app, not through a tool. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_setup({})\\n{ \"people\": { \"roles\": [{ \"id\": \"owner\", \"name\": \"Admin\" }], \"groups\": [] }, \"mailboxes\": { \"data\": [{ \"id\": \"5555…\", \"name\": \"Gmail (ap@example.com)\", \"canSend\": true, \"ownership\": \"company\", \"usable\": true }] }, \"secrets\": { \"data\": [\"erp_token\"] }, \"lookupData\": { \"state\": \"ready\", \"indexes\": [{ \"name\": \"contracts.contracts\", \"rows\": 3, \"ready\": true }] } }',\n },\n ],\n related: [\n {\n label: \"talonic_process_mailbox_ownership\",\n slug: \"talonic-process-mailbox-ownership\",\n },\n {\n label: \"talonic_process_change\",\n slug: \"talonic-process-change\",\n },\n ],\n faq: [\n {\n question: \"Can a secret's value be read?\",\n answer: \"No. Only names are returned, by this tool and by the API.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-mailbox-ownership\",\n parentSlug: \"tools\",\n title: \"talonic_process_mailbox_ownership\",\n seoTitle: \"talonic_process_mailbox_ownership — Mailbox Owners\",\n description:\n \"MCP tool that marks a connected mailbox as one person's own or the company's, which decides who may put it on a Talonic process. A governance decision.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Say whether a connected mailbox is one person's own (`individual`: only that person may put it on a process) or the company's (`company`: everyone who builds processes may). A governance decision: call it only when the user asks. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"mailbox_id\",\n type: \"UUID\",\n required: true,\n description: \"The mailbox, from talonic_process_setup.\",\n },\n {\n name: \"ownership\",\n type: \"individual | company\",\n required: true,\n description: \"Whose it is.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_mailbox_ownership({ \"mailbox_id\": \"5555…\", \"ownership\": \"company\" })\\n{ \"id\": \"5555…\", \"ownership\": \"company\" }',\n },\n ],\n related: [\n {\n label: \"talonic_process_setup\",\n slug: \"talonic-process-setup\",\n },\n ],\n faq: [\n {\n question: \"Who may change this?\",\n answer: \"People with the Process Plane govern permission.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n {\n slug: \"talonic-process-address\",\n parentSlug: \"tools\",\n title: \"talonic_process_address\",\n seoTitle: \"talonic_process_address — A Process's Inbound Address\",\n description:\n \"MCP tool that shows whether a Talonic process has an address other systems send items to, and makes one when asked; the address is shown once, when made.\",\n content: [\n {\n type: \"paragraph\",\n text: \"The address other systems send items to (a webhook). Without `make` it only says whether one exists; the address itself is shown once, when it is made. With `make: true` it makes one and returns the `path` to post to. An existing address is replaced only with `replace: true`: the old one stops working at once and whatever sends to it stops getting through, so ask the user first. `test: true` is the address of the test copy, whose runs send nothing out. Listed only when the person behind the key holds the Process Plane view permission in the workspace; the platform checks the permission for the action on every call.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"process_id\",\n type: \"UUID\",\n required: true,\n description: \"The process, from talonic_process_list.\",\n },\n {\n name: \"make\",\n type: \"boolean\",\n required: false,\n description: \"true: make the address. Default: only say whether one exists.\",\n },\n {\n name: \"test\",\n type: \"boolean\",\n required: false,\n description: \"The address of the test copy.\",\n },\n {\n name: \"replace\",\n type: \"boolean\",\n required: false,\n description: \"true only after the user agreed to switch the existing address off.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Example\",\n code: '// talonic_process_address({ \"process_id\": \"1111…\", \"make\": true })\\n{ \"token\": \"…\", \"path\": \"/process-hooks/…\" }',\n },\n ],\n related: [\n {\n label: \"talonic_process_run\",\n slug: \"talonic-process-run\",\n },\n {\n label: \"talonic_process_setup\",\n slug: \"talonic-process-setup\",\n },\n ],\n faq: [\n {\n question: \"Can I read an address again later?\",\n answer: \"No. It is shown once. Making a new one switches the old one off.\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n]\n","import type { RawSection } from \"../../types\"\n\nconst pageArgs = [\n { name: \"limit\", type: \"integer\", description: \"Items per page, 1-100. Default 20.\" },\n { name: \"cursor\", type: \"string\", description: \"`pagination.next_cursor` of the previous page.\" },\n {\n name: \"order\",\n type: \"asc | desc\",\n description: \"By creation time. Default desc (newest first).\",\n },\n { name: \"after\", type: \"ISO-8601\", description: \"Only items created after this time.\" },\n { name: \"before\", type: \"ISO-8601\", description: \"Only items created before this time.\" },\n]\n\nexport const section: RawSection = {\n slug: \"data-management-tools\",\n parentSlug: \"tool-groups\",\n title: \"Documents, extractions, jobs and schemas\",\n seoTitle: \"Manage Documents, Extractions, Jobs and Schemas via MCP\",\n description:\n \"MCP tools to list, re-extract and delete Talonic documents, read and correct extracted values, run and cancel jobs over many documents, and edit saved schemas.\",\n content: [\n {\n type: \"paragraph\",\n text: \"These tools cover the day-to-day housekeeping of a workspace: listing documents, reading a document again, correcting values, running one saved schema over many documents as a job, and changing or removing saved schemas. Every call runs as the person behind the connection: a document that person cannot see answers 404, exactly like a missing one.\",\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"The tools are listed when the connection can read the workspace's documents; changes need the `write` scope. `talonic_delete_document` and `talonic_delete_schema` cannot be undone, and `talonic_update_schema` with a new field list removes every field you do not send again. Agents confirm with the user before calling them. Re-extracting a document and creating a job consume credits and are not deduplicated: after a timeout, check the first call's result before calling again.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-list-documents\", text: \"talonic_list_documents\" },\n {\n type: \"paragraph\",\n text: \"List documents, newest first, one page at a time. Returns `data[]` (id, filename, pages, status, source, field count, created_at) and `pagination { total, limit, has_more, next_cursor }`.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"status\",\n type: \"string\",\n description: \"Only documents with this status, e.g. `error`.\",\n },\n { name: \"source_id\", type: \"UUID\", description: \"Only documents from this source.\" },\n {\n name: \"source_type\",\n type: \"string\",\n description: \"Only documents from this kind of source.\",\n },\n { name: \"search\", type: \"string\", description: \"Filename contains (case-insensitive).\" },\n {\n name: \"parent_id\",\n type: \"UUID\",\n description:\n \"Only documents unpacked from this one (email attachments, archive members).\",\n },\n { name: \"relation\", type: \"string\", description: \"Only nested documents of this kind.\" },\n { name: \"top_level\", type: \"boolean\", description: \"`true` hides nested documents.\" },\n {\n name: \"text_degraded\",\n type: \"boolean\",\n description: \"`true`: only documents whose text could not be read verbatim.\",\n },\n ...pageArgs,\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-reextract-document\",\n text: \"talonic_reextract_document\",\n },\n {\n type: \"paragraph\",\n text: \"Read an existing document again and capture its values afresh, without uploading it again. Consumes credits like a new extraction. Answers at once with `status: processing`; poll `talonic_get_document` until it is `completed`.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"document_id\", type: \"UUID\", required: true, description: \"The document.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-delete-document\", text: \"talonic_delete_document\" },\n {\n type: \"paragraph\",\n text: \"Delete one document with its captured values. Cannot be undone. Documents only shared with the user are read-only and answer 404. Returns `{ deleted: true, id }`.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"document_id\", type: \"UUID\", required: true, description: \"The document.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-list-extractions\", text: \"talonic_list_extractions\" },\n {\n type: \"paragraph\",\n text: \"List extractions, one per document with captured values, newest first. An extraction's id is its document's id.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"document_id\", type: \"UUID\", description: \"Only this document's extraction.\" },\n { name: \"status\", type: \"complete | failed\", description: \"Only finished or failed ones.\" },\n ...pageArgs,\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-get-extraction\", text: \"talonic_get_extraction\" },\n {\n type: \"paragraph\",\n text: \"One extraction in full: every field with its value, type and confidence.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"extraction_id\",\n type: \"UUID\",\n required: true,\n description: \"The extraction (document) id.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-get-extraction-data\",\n text: \"talonic_get_extraction_data\",\n },\n {\n type: \"paragraph\",\n text: \"One extraction's values as a flat field → value map, or as a one-row CSV (`{ format: 'csv', csv }`).\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"extraction_id\",\n type: \"UUID\",\n required: true,\n description: \"The extraction (document) id.\",\n },\n { name: \"format\", type: \"json | csv\", description: \"Default json.\" },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-correct-extraction\",\n text: \"talonic_correct_extraction\",\n },\n {\n type: \"paragraph\",\n text: \"Correct captured values. Each correction is kept as a new version of the value, attributed to the connection. A value a reviewer confirmed, or one waiting for approval, is not overwritten: it is reported in `cells_skipped`. Returns the extraction with `cells_written` and `cells_skipped`.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"extraction_id\",\n type: \"UUID\",\n required: true,\n description: \"The extraction (document) id.\",\n },\n {\n name: \"values\",\n type: \"object\",\n required: true,\n description: \"`{ <field_name>: corrected value }` for the fields to change.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-list-jobs\", text: \"talonic_list_jobs\" },\n {\n type: \"paragraph\",\n text: \"List jobs (one saved schema run over a set of documents), newest first.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"status\", type: \"string\", description: \"Only jobs with this status.\" },\n ...pageArgs,\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-get-job\", text: \"talonic_get_job\" },\n {\n type: \"paragraph\",\n text: \"One job's status, schema, document count, timestamps and error. Poll it after `talonic_create_job`.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"job_id\", type: \"UUID\", required: true, description: \"The job.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-get-job-results\", text: \"talonic_get_job_results\" },\n {\n type: \"paragraph\",\n text: \"A job's result rows: one per document with its values, confidence and validation flags. Readable while the job still runs.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"job_id\", type: \"UUID\", required: true, description: \"The job.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-create-job\", text: \"talonic_create_job\" },\n {\n type: \"paragraph\",\n text: \"Run a saved schema over many documents and collect one row of values per document. Consumes credits per document. Name the documents, or pass `all_documents: true` for every completed document of the workspace. Returns the job id; poll `talonic_get_job`.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"schema_id\",\n type: \"UUID\",\n required: true,\n description: \"The saved schema to run.\",\n },\n { name: \"document_ids\", type: \"UUID[]\", description: \"The documents to process.\" },\n {\n name: \"all_documents\",\n type: \"boolean\",\n description: \"`true`: every completed document, instead of `document_ids`.\",\n },\n { name: \"name\", type: \"string\", description: \"A name for the job, up to 200 characters.\" },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-cancel-job\", text: \"talonic_cancel_job\" },\n {\n type: \"paragraph\",\n text: \"Cancel a pending or running job; rows already produced stay. Safe to retry: a job that already ended answers 409 and is left as it is.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"job_id\", type: \"UUID\", required: true, description: \"The job.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-update-schema\", text: \"talonic_update_schema\" },\n {\n type: \"paragraph\",\n text: \"Rename a saved schema, change its description, or replace its field list. A new `definition` or `fields` list replaces every field, so read the schema first with `talonic_get_schema` and send the whole list. A schema managed by a Spec answers 409; change the Spec in the app instead.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"schema_id\",\n type: \"string\",\n required: true,\n description: \"UUID or SCH-XXXXXXXX short id.\",\n },\n { name: \"name\", type: \"string\", description: \"New name, up to 100 characters.\" },\n {\n name: \"description\",\n type: \"string | null\",\n description: \"New description; null clears it.\",\n },\n {\n name: \"definition\",\n type: \"object\",\n description: \"The full field list as JSON Schema: `{ properties, required }`.\",\n },\n {\n name: \"fields\",\n type: \"object[]\",\n description:\n \"The full field list as rows: `field_name`, `display_name`, `data_type`, `description`, `is_required`.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-delete-schema\", text: \"talonic_delete_schema\" },\n {\n type: \"paragraph\",\n text: \"Delete a saved schema. Cannot be undone; documents already extracted with it keep their values. A schema managed by a Spec answers 409.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"schema_id\",\n type: \"string\",\n required: true,\n description: \"UUID or SCH-XXXXXXXX short id.\",\n },\n ],\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\nexport const section: RawSection = {\n slug: \"events-tools\",\n parentSlug: \"tool-groups\",\n title: \"Events\",\n seoTitle: \"talonic_list_events — Read the Talonic Workspace Event Feed\",\n description:\n \"MCP tool that reads your Talonic workspace's event feed (extractions, run results, review verdicts, deliveries) and resumes from a saved cursor later.\",\n content: [\n {\n type: \"paragraph\",\n text: \"**`talonic_list_events`** reads what happened in the workspace: documents extracted, runs completed or failed, review verdicts, delivery outcomes. These are the same events your webhooks receive, so an agent or a scheduled job can catch up on anything a webhook missed, or answer “what failed since this morning?”.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Listed when the connection can read the workspace. Only events about documents the connected person may see are returned.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-list-events\", text: \"talonic_list_events\" },\n {\n type: \"paragraph\",\n text: \"Two ways to page. Without `after` you get the newest events first, paged with `limit` and `offset`. With `after` set to an event id or a saved `next_cursor`, you get strictly newer events, oldest first: process them in order, save the returned `next_cursor`, and pass it as `after` next time. `next_cursor` is `null` only at the end of the feed.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"after\",\n type: \"string\",\n description:\n \"Resume point: a saved `next_cursor` or an event id. Returns newer events, oldest first.\",\n },\n {\n name: \"since\",\n type: \"string\",\n description: \"Only events created at or after this ISO-8601 time.\",\n },\n {\n name: \"event_type\",\n type: \"string | string[]\",\n description: \"One event type or several.\",\n },\n { name: \"limit\", type: \"integer\", description: \"Events per page, 1-200.\", default: \"50\" },\n {\n name: \"offset\",\n type: \"integer\",\n description: \"Events to skip on the newest-first listing.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Resume from a saved cursor\",\n code: '{ \"after\": \"1042\", \"limit\": 100 }\\n\\n→ { \"data\": [{ \"id\": \"1043\", \"event_type\": \"extraction.completed\", \"payload\": { … }, \"created_at\": \"2026-11-25T07:01:12Z\" }], \"next_cursor\": \"1043\" }',\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\nexport const section: RawSection = {\n slug: \"aggregate-tools\",\n parentSlug: \"tool-groups\",\n title: \"Workspace metrics\",\n seoTitle: \"talonic_aggregate — Workspace Metrics in One MCP Call\",\n description:\n \"MCP tools that answer monitoring questions about a Talonic workspace in one call: documents received or failed, app verdicts, deliveries and cost per document.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Ask for several numbers about the workspace in one request: how many documents arrived or failed in the last 12 hours, how many lack a value, verdicts by state, median cost per document. Only numbers come back, never document content, and only documents the connected person may see are counted.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Listed when the workspace offers metrics to the connection. One metrics request per workspace runs at a time; a second one answers 429 and should be retried after a few seconds.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-aggregate-catalog\",\n text: \"talonic_aggregate_catalog\",\n },\n {\n type: \"paragraph\",\n text: \"What can be counted: every dataset with its fields, which fields can be grouped and filtered with which operators, the measures, the limits (window length, queries per request) and whether this workspace may see cost fields. Free; call it before the first metrics request.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-aggregate\", text: \"talonic_aggregate\" },\n {\n type: \"paragraph\",\n text: \"Computes several named numbers (20 by default) over a half-open window `[from, to)` of at most 31 days by default; the catalog states the limits that apply. Each query picks a dataset and a measure (`count`, `count_distinct`, `sum`, `avg`, `min`, `max`, `median`, `p1`-`p99`), optional filters and up to three group-by fields or `hour` / `day`. A count over nothing is `0`; an average or percentile over nothing is `null`. Cost fields are in US dollars.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"from\",\n type: \"string\",\n required: true,\n description: \"Window start, inclusive, ISO-8601 with an offset (`2026-11-05T12:00:00Z`).\",\n },\n {\n name: \"to\",\n type: \"string\",\n required: true,\n description: \"Window end, exclusive, with an offset.\",\n },\n {\n name: \"scope\",\n type: \"object\",\n description:\n \"Document selectors for every query: `document_ids`, `tags`, `system_tags`, `source_connection_ids`, `document_types`, `client_batch_ids`, `roots_only`, `attachments_only`.\",\n },\n {\n name: \"queries\",\n type: \"object[]\",\n required: true,\n description:\n \"Each `{ id, dataset, measure, of?, where?, group_by? }`; `id` is lowercase letters, digits and underscores and keys the result.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Documents received and failed today\",\n code: '{\\n \"from\": \"2026-11-25T00:00:00Z\",\\n \"to\": \"2026-11-26T00:00:00Z\",\\n \"queries\": [\\n { \"id\": \"received\", \"dataset\": \"documents\", \"measure\": \"count\" },\\n { \"id\": \"failed\", \"dataset\": \"documents\", \"measure\": \"count\", \"where\": [{ \"field\": \"failed\", \"op\": \"eq\", \"value\": true }] }\\n ]\\n}',\n },\n {\n type: \"paragraph\",\n text: \"Errors: `400 invalid_aggregate` names the allowed datasets, fields or measures; `403 cost_not_visible` when the workspace may not see costs; `422 aggregate_timeout` names the dataset to narrow.\",\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\nexport const section: RawSection = {\n slug: \"admin-tools\",\n parentSlug: \"tool-groups\",\n title: \"Workspace administration\",\n seoTitle: \"Workspace Admin Tools — API Keys, Webhooks, Credits\",\n description:\n \"MCP tools for Talonic workspace admins: list, create and revoke API keys, manage webhooks and their event types, read the account and get a buy-credits link.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Manage the workspace from an agent: API keys, webhooks, the account snapshot and the link where a person buys credits. Each tool calls the same Talonic API your dashboard uses, with your credential.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are meant for workspace admins. Talonic checks every call against the person behind the credential, exactly as in the app: an owner manages every key, anyone else only their own, and a new key can never carry more access than the credential that creates it. A new key's secret is shown once, in the create response; store it straight away.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-list-api-keys\", text: \"talonic_list_api_keys\" },\n {\n type: \"paragraph\",\n text: \"The workspace's API keys with name, scopes, masked prefix, active state, last use and expiry. Never returns a secret.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-create-api-key\", text: \"talonic_create_api_key\" },\n {\n type: \"paragraph\",\n text: \"Creates a key and returns its secret once in `key`. Scopes can only be a subset of the calling credential's own; `billing`, `usage` and `records_write` are granted only by an owner in the app.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"name\",\n type: \"string\",\n required: true,\n description: \"Label shown in listings (1-255 characters).\",\n },\n {\n name: \"scopes\",\n type: \"string[]\",\n description:\n \"Subset of extract, read, write, operations, billing, delivery, usage, records_write. Default: the calling credential's scopes.\",\n },\n {\n name: \"expires_at\",\n type: \"string\",\n description: \"ISO-8601 time in the future when the key stops working.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-revoke-api-key\", text: \"talonic_revoke_api_key\" },\n {\n type: \"paragraph\",\n text: \"Revokes a key at once; it cannot be turned back on. Marked destructive, so clients ask before running it.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"key_id\",\n type: \"UUID\",\n required: true,\n description: \"The key, from talonic_list_api_keys.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-get-account\", text: \"talonic_get_account\" },\n {\n type: \"paragraph\",\n text: \"Plan (`tier`), status, credit balance in EUR, daily request limits and today's usage against them.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-list-webhooks\", text: \"talonic_list_webhooks\" },\n {\n type: \"paragraph\",\n text: \"Every webhook with its URL, event types, active state and optional source. Signing secrets are never returned.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-get-webhook\", text: \"talonic_get_webhook\" },\n { type: \"paragraph\", text: \"One webhook by id.\" },\n {\n type: \"param-table\",\n params: [{ name: \"id\", type: \"UUID\", required: true, description: \"The webhook id.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-create-webhook\", text: \"talonic_create_webhook\" },\n {\n type: \"paragraph\",\n text: \"Sends the chosen events to your URL as signed POST requests (`X-Talonic-Signature: sha256=<hex>` over the raw body when a secret is set).\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"url\",\n type: \"string\",\n required: true,\n description: \"Receiver URL that accepts POST.\",\n },\n {\n name: \"events\",\n type: \"string[]\",\n description: \"Event types. Default: extraction.complete, extraction.failed.\",\n },\n { name: \"secret\", type: \"string\", description: \"Signing secret your receiver verifies.\" },\n { name: \"source_connection_id\", type: \"UUID\", description: \"Only events of this source.\" },\n { name: \"is_active\", type: \"boolean\", description: \"Default true.\" },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-update-webhook\", text: \"talonic_update_webhook\" },\n {\n type: \"paragraph\",\n text: \"Changes only the fields you send. `is_active: false` pauses deliveries without deleting the webhook.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"id\", type: \"UUID\", required: true, description: \"The webhook id.\" },\n { name: \"url\", type: \"string\", description: \"New receiver URL.\" },\n { name: \"events\", type: \"string[]\", description: \"New event types.\" },\n { name: \"secret\", type: \"string\", description: \"New signing secret.\" },\n { name: \"is_active\", type: \"boolean\", description: \"Pause or resume.\" },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-delete-webhook\", text: \"talonic_delete_webhook\" },\n {\n type: \"paragraph\",\n text: \"Deletes a webhook for good. Marked destructive. To stop deliveries for a while, pause it instead.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"id\", type: \"UUID\", required: true, description: \"The webhook id.\" }],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-list-webhook-event-types\",\n text: \"talonic_list_webhook_event_types\",\n },\n {\n type: \"paragraph\",\n text: \"The event types a webhook can subscribe to, each with a description. A past webhook call is not re-sent; a receiver that missed events reads them with `talonic_list_events` from its saved cursor.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-get-billing-upgrade-link\",\n text: \"talonic_get_billing_upgrade_link\",\n },\n {\n type: \"paragraph\",\n text: \"A link where a person buys credits. The tool never buys anything: a human opens the link and completes the payment, and credits arrive seconds later. Workspaces billed through a marketplace get the marketplace page.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"pack\", type: \"string\", description: \"10, 50, 250 or 1000 (EUR). Default 50.\" },\n ],\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { DocBlock, Param, RawSection } from \"../../types\"\n\nconst tool = (name: string, text: string, params: Param[] = []): DocBlock[] => [\n { type: \"heading\", level: 3, id: name.replace(/_/g, \"-\"), text: name },\n { type: \"paragraph\", text },\n ...(params.length ? [{ type: \"param-table\" as const, params }] : []),\n]\n\nconst paging: Param[] = [\n { name: \"page\", type: \"integer\", description: \"Page number, from 1.\" },\n { name: \"limit\", type: \"integer\", description: \"Rows per page; the desk caps it.\" },\n]\nconst team: Param = {\n name: \"team\",\n type: \"string\",\n description: \"One team's work only; all teams when left out.\",\n}\n\nexport const section: RawSection = {\n slug: \"contract-desk-tools\",\n parentSlug: \"tool-groups\",\n title: \"Contract Desk\",\n seoTitle: \"Contract Desk MCP Tools — Work, Evidence and Decisions\",\n description:\n \"Use the Contract Desk from an AI agent: list open contract work by team, open an item's evidence, record a decision at its source app and undo it if needed.\",\n content: [\n {\n type: \"paragraph\",\n text: \"The Contract Desk gathers the open work of your contract apps in one list: values where the documents and the CRM disagree or are missing, missing documents, site checks, key dates and process steps. With these tools an agent works that list the way a person does: pick a batch from the To do list, open an item's evidence, record a decision, and undo it if it was wrong. A decision is recorded at the item's source app and in the desk's log, under your connection.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are listed only when the Contract Desk is available to your connection. Every call is checked against your role in the workspace, exactly as in the app: reading needs an active membership, deciding needs the edit permission and the app switched on, changing the team setup needs an Admin.\",\n },\n {\n type: \"list\",\n ordered: true,\n items: [\n \"`talonic_contract_desk_todo` — sections and batches of open work.\",\n \"`talonic_contract_desk_todo_items` — the items of one batch.\",\n \"`talonic_contract_desk_get_decision` — one item's evidence and the actions it offers.\",\n \"`talonic_contract_desk_decide` — record the decision (preview with `dry_run` first).\",\n \"`talonic_contract_desk_undo` — take a decision back while it is the item's latest.\",\n ],\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Accepting a colleague's suggestion is done by a person in the app; there is no tool for it.\",\n },\n ...tool(\n \"talonic_contract_desk_status\",\n \"Whether the desk is ready: when it was last refreshed, whether a refresh is running, and how many sites, contracts and open items it holds.\",\n ),\n ...tool(\n \"talonic_contract_desk_refresh\",\n \"Start a refresh of the desk from its source apps. Answers at once; the status tool shows it running. Needs the run permission.\",\n ),\n ...tool(\"talonic_contract_desk_sites\", \"One page of sites with their open work.\", [\n {\n name: \"q\",\n type: \"string\",\n description:\n \"Words that must each occur in the site's number, name, contracts or partners.\",\n },\n {\n name: \"filter\",\n type: \"string\",\n description: \"`all`, `now` (work due now) or `nodoc` (no documents).\",\n },\n ...paging,\n ]),\n ...tool(\"talonic_contract_desk_get_site\", \"One site with its contracts and site-level items.\", [\n { name: \"key\", type: \"string\", required: true, description: \"The site key.\" },\n ]),\n ...tool(\n \"talonic_contract_desk_contracts\",\n \"One page of contracts, searchable, for one partner or one site.\",\n [\n { name: \"q\", type: \"string\", description: \"Search words.\" },\n { name: \"partner\", type: \"string\", description: \"A `partner_key`, matched exactly.\" },\n { name: \"site\", type: \"string\", description: \"A site key, matched exactly.\" },\n ...paging,\n ],\n ),\n ...tool(\n \"talonic_contract_desk_get_contract\",\n \"One contract with its items and values: where the documents and the CRM agree or differ, and what is open.\",\n [{ name: \"id\", type: \"string\", required: true, description: \"The contract's `crm_key`.\" }],\n ),\n ...tool(\n \"talonic_contract_desk_dashboard\",\n \"Work due now and this month, open work by team, due dates by week, the busiest sites and the history.\",\n [team],\n ),\n ...tool(\n \"talonic_contract_desk_quality\",\n \"Required values and how many are still open, the attributes with most open values, and how well documents link to contracts.\",\n ),\n ...tool(\n \"talonic_contract_desk_todo\",\n \"The To do list: per section (now, this month, later, no date) its count and first batches of similar items, plus today's decisions.\",\n [team],\n ),\n ...tool(\"talonic_contract_desk_todo_items\", \"One page of the open items of a batch.\", [\n {\n name: \"batch\",\n type: \"string\",\n required: true,\n description: \"The batch key from `talonic_contract_desk_todo`, unchanged.\",\n },\n ...paging,\n ]),\n ...tool(\n \"talonic_contract_desk_get_decision\",\n \"Everything the decision screen shows for one item: for a value, what each document and the CRM say and the values to pick; for a key date, its day and the outcomes offered; for a process step, mark it handled. `can_decide` says whether your connection may decide it; `mode: suggest` means your decision becomes a suggestion a colleague accepts.\",\n [{ name: \"id\", type: \"UUID\", required: true, description: \"The item id.\" }],\n ),\n ...tool(\n \"talonic_contract_desk_decide\",\n \"Decide one item at its source app. Run with `dry_run` first. Returns the `decision_id` to undo it with.\",\n [\n { name: \"id\", type: \"UUID\", required: true, description: \"The item id.\" },\n {\n name: \"action\",\n type: \"string\",\n required: true,\n description:\n \"`set`, `crm_add`, `handled`, `notice_sent`, `renewal_declined` or `terminated`; only those the item offers.\",\n },\n { name: \"value\", type: \"string\", description: \"The value to record; with `set` only.\" },\n {\n name: \"note\",\n type: \"string\",\n description: \"Why, in a few words; recorded at the source.\",\n },\n { name: \"dry_run\", type: \"boolean\", description: \"Preview only; nothing is recorded.\" },\n ],\n ),\n ...tool(\n \"talonic_contract_desk_decisions\",\n \"The decisions newest first, with who decided what and whether each can still be undone.\",\n [\n { name: \"mine\", type: \"boolean\", description: \"Only your own decisions.\" },\n { name: \"crm_key\", type: \"string\", description: \"One contract's decisions.\" },\n ...paging,\n ],\n ),\n ...tool(\n \"talonic_contract_desk_undo\",\n \"Undo a decision at its source and put the item back on the list. Only an item's latest decision can be undone.\",\n [{ name: \"id\", type: \"UUID\", required: true, description: \"The decision id.\" }],\n ),\n ...tool(\n \"talonic_contract_desk_settings\",\n \"Which team gets which items: the team per item kind and per attribute, and the choices.\",\n ),\n ...tool(\n \"talonic_contract_desk_save_settings\",\n \"Replace the whole team setup and refresh the desk. Read the current setup first and send it back complete. Needs an Admin.\",\n [\n {\n name: \"teams\",\n type: \"object\",\n required: true,\n description: \"`{ kinds: { <kind>: <team> }, fields: { <field_key>: <team> } }`.\",\n },\n ],\n ),\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { DocBlock, Param, RawSection } from \"../../types\"\n\nconst tool = (name: string, text: string, params: Param[] = []): DocBlock[] => [\n { type: \"heading\", level: 3, id: name.replace(/_/g, \"-\"), text: name },\n { type: \"paragraph\", text },\n ...(params.length ? [{ type: \"param-table\" as const, params }] : []),\n]\n\nconst folder: Param = {\n name: \"folder_id\",\n type: \"UUID\",\n required: true,\n description: \"The transport folder.\",\n}\nconst doc: Param = {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"A document of the folder.\",\n}\nconst load: Param = {\n name: \"load_key\",\n type: \"string\",\n required: true,\n description: \"A load of the folder.\",\n}\n\nexport const section: RawSection = {\n slug: \"transport-folders-tools\",\n parentSlug: \"tool-groups\",\n title: \"Transport Folders\",\n seoTitle: \"Transport Folders MCP Tools — Loads, Documents, Handover\",\n description:\n \"Use Transport Folders from an AI agent: list loads and documents that need a person, open the evidence, assign documents, confirm loads, get the customer set.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Transport Folders turns each scanned packet of a transport into one folder, matches its documents to the transport's loads and judges each load: required documents on file, delivery confirmed, quantities agree. Documents that fit no single load wait for a person. With these tools an agent works the worklist, opens a folder's evidence, assigns a document to a load or confirms a load, and can take either back.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are listed only when Transport Folders is available to your connection. Every call is checked against your role in the workspace, exactly as in the app: documents are shown as you may see them, changing the settings needs an Admin, and locating values and confirming loads need the app switched on.\",\n },\n {\n type: \"list\",\n ordered: true,\n items: [\n \"`talonic_transport_folders_worklist` — loads not complete and documents not assigned.\",\n \"`talonic_transport_folders_get` — one folder's loads, documents and comparisons.\",\n \"`talonic_transport_folders_assign` or `talonic_transport_folders_confirm_load` — record the decision.\",\n \"`talonic_transport_folders_unassign` or `talonic_transport_folders_unconfirm_load` — take it back.\",\n ],\n },\n ...tool(\n \"talonic_transport_folders_list\",\n \"Every folder with its transport number, status and load counts, and whether the app is set up.\",\n ),\n ...tool(\n \"talonic_transport_folders_worklist\",\n \"Everything that needs a person across all folders: loads not complete and documents not assigned to a load.\",\n ),\n ...tool(\n \"talonic_transport_folders_get\",\n \"One folder: per load its verdict, what is missing, the record compared with the documents and whether it is confirmed; per document the load it belongs to and why, or the candidate loads and a suggestion.\",\n [folder],\n ),\n ...tool(\n \"talonic_transport_folders_boxes\",\n \"Where each captured value of a document sits on its pages, as far as already located.\",\n [folder, doc],\n ),\n ...tool(\n \"talonic_transport_folders_locate_document\",\n \"Find where a document's values sit on its page images and keep the result. Does nothing when already done.\",\n [folder, doc],\n ),\n ...tool(\n \"talonic_transport_folders_locate_folder\",\n \"Find where the values of every document of a folder sit on the page images.\",\n [folder],\n ),\n ...tool(\n \"talonic_transport_folders_assign\",\n \"Record which load a document belongs to, or that it belongs to no load. Your assignment wins over the matching.\",\n [\n folder,\n doc,\n {\n name: \"load_key\",\n type: \"string | null\",\n required: true,\n description: \"A load of the folder, or null for no load.\",\n },\n ],\n ),\n ...tool(\n \"talonic_transport_folders_unassign\",\n \"Withdraw an assignment, so the matching decides again.\",\n [folder, doc],\n ),\n ...tool(\n \"talonic_transport_folders_confirm_load\",\n \"Confirm a load as ready to invoice and hand its customer document set over. Records who confirmed and which documents.\",\n [folder, load],\n ),\n ...tool(\"talonic_transport_folders_unconfirm_load\", \"Withdraw a load's confirmation.\", [\n folder,\n load,\n ]),\n ...tool(\n \"talonic_transport_folders_handover\",\n \"The customer document set of a load as one PDF (returned as an embedded file), with the archive filing values per document (`index`).\",\n [folder, load],\n ),\n ...tool(\n \"talonic_transport_folders_settings\",\n \"The app's settings and what they can be set to: your Specs and ready reference tables.\",\n ),\n ...tool(\n \"talonic_transport_folders_save_settings\",\n \"Change the settings; only the keys sent change and null clears one. Needs an Admin.\",\n [\n {\n name: \"pipeline_id\",\n type: \"UUID | null\",\n description: \"The Spec run whose results describe the documents.\",\n },\n {\n name: \"reference_data_id\",\n type: \"UUID | null\",\n description: \"The reference table holding the loads.\",\n },\n {\n name: \"folder_key_pattern\",\n type: \"string | null\",\n description:\n \"Regular expression whose first group is the transport number in a filename.\",\n },\n {\n name: \"matcher\",\n type: \"object | null\",\n description: \"Overrides of column names, field names and document type lists.\",\n },\n ],\n ),\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\n// Generated from src/tools/compliance.ts (names, summaries, parameters); keep in step with it.\nexport const section: RawSection = {\n slug: \"compliance-tools\",\n parentSlug: \"tool-groups\",\n title: \"Compliance\",\n seoTitle: \"Compliance MCP Tools — Check Documents Against Rules\",\n description:\n \"MCP tools for the Talonic Compliance app: list failed checks, open a verdict with its reason and quote, re-evaluate documents and manage frameworks and sets.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Check workspace documents against the regulations, policies and standards the workspace holds as frameworks. Each rule of a framework that is ON gets a verdict per document (or per document set): pass, fail, unclear or not applicable, with the reason and the quote it rests on.\",\n },\n {\n type: \"paragraph\",\n text: \"The usual loop: **`talonic_compliance_issues`** lists what fails, **`talonic_compliance_get_document_evaluation`** shows the evidence for one document, and the allowed correction follows: re-evaluate after the document changed, take a document off the list, switch a framework OFF, or narrow the rules a document set is judged against. A workspace that makes its compliance decisions with its own agent works them through the task tools (claim, heartbeat, release, submit).\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are listed only when the Compliance app is available to the connection. Every call is checked against the role and permissions of the person behind the connection, exactly as in the web app.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-issues\",\n text: \"talonic_compliance_issues\",\n },\n {\n type: \"paragraph\",\n text: \"The worklist of failed checks: per document the rules it fails (and, with `unclear`, the rules whose verdict is unclear), with the framework each rule comes from.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"unclear\",\n type: \"boolean\",\n required: false,\n description: \"Also list rules whose verdict is unclear.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-get-document-evaluation\",\n text: \"talonic_compliance_get_document_evaluation\",\n },\n {\n type: \"paragraph\",\n text: \"A document's latest evaluation with every result: per rule the verdict (pass, fail, unclear, not_applicable), the reason, the quote from the document it rests on, whether it needs a person's check, and whether the evaluation is outdated.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The evaluated document.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-evaluations\",\n text: \"talonic_compliance_list_evaluations\",\n },\n {\n type: \"paragraph\",\n text: \"The latest evaluation of every document on the Evaluations list. Without paging arguments the whole list; with any of status / limit / offset one page with total and has_more.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"status\",\n type: '\"processing\" | \"waiting\" | \"completed\" | \"error\"',\n required: false,\n description: \"Only evaluations with this status (an interrupted one shows error).\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Page size; any of status / limit / offset asks for one page.\",\n },\n {\n name: \"offset\",\n type: \"integer\",\n required: false,\n description: \"Rows to skip, for paging.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-evaluation-status\",\n text: \"talonic_compliance_evaluation_status\",\n },\n {\n type: \"paragraph\",\n text: \"Counts over the latest evaluations: processing, completed, error, outdated and failing.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-export\",\n text: \"talonic_compliance_export\",\n },\n {\n type: \"paragraph\",\n text: \"Download every verdict of the evaluated documents and document sets as a file (one row per rule and document or set: framework, rule, obligation, verdict, reason, quote, evaluated at, outdated), up to 8 MB.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"format\",\n type: '\"xlsx\" | \"csv\"',\n required: false,\n description: \"File format (default xlsx).\",\n },\n {\n name: \"issues_only\",\n type: \"boolean\",\n required: false,\n description: \"Only failed and unclear verdicts of the sets.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-evaluate\",\n text: \"talonic_compliance_evaluate\",\n },\n {\n type: \"paragraph\",\n text: \"Evaluate documents against every framework that is ON. Runs in the background; poll talonic_compliance_evaluation_status or talonic_compliance_get_document_evaluation.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"Documents to evaluate.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-evaluate-all\",\n text: \"talonic_compliance_evaluate_all\",\n },\n {\n type: \"paragraph\",\n text: \"Evaluate every listed document whose evaluation is missing or outdated, oldest first. Run with dry_run first to see how many.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"dry_run\",\n type: \"boolean\",\n required: false,\n description: \"Only report how many would be evaluated.\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Evaluate at most this many.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-add-documents\",\n text: \"talonic_compliance_add_documents\",\n },\n {\n type: \"paragraph\",\n text: \"Put workspace documents on the Evaluations list and evaluate them against the frameworks that are ON.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"Documents to add and evaluate.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-remove-document\",\n text: \"talonic_compliance_remove_document\",\n },\n {\n type: \"paragraph\",\n text: \"Take a document off the Evaluations list together with its evaluations. The document itself stays in the workspace; adding it again re-evaluates it. Cannot be undone: ask the user first.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The document to take off the list.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-frameworks\",\n text: \"talonic_compliance_list_frameworks\",\n },\n {\n type: \"paragraph\",\n text: \"The frameworks (regulations, policies, contract standards held as workspace documents) with their status, whether each is ON, and their rule counts.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-framework-rules\",\n text: \"talonic_compliance_framework_rules\",\n },\n {\n type: \"paragraph\",\n text: \"The rules of one framework: code, text, obligation, section, what it applies to and its condition.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The framework's document id.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-add-frameworks\",\n text: \"talonic_compliance_add_frameworks\",\n },\n {\n type: \"paragraph\",\n text: \"Make existing workspace documents frameworks (a regulation, policy or standard to check other documents against). Their rules are then written from their text; switch a framework ON to check documents against it.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"Workspace documents to make frameworks.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-set-framework-active\",\n text: \"talonic_compliance_set_framework_active\",\n },\n {\n type: \"paragraph\",\n text: \"Turn a framework ON (its rules are in force for every evaluation) or OFF (they are not). Reversible; evaluations made before become outdated.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The framework's document id.\",\n },\n {\n name: \"active\",\n type: \"boolean\",\n required: true,\n description: \"true = ON, false = OFF.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-generate-rules\",\n text: \"talonic_compliance_generate_rules\",\n },\n {\n type: \"paragraph\",\n text: \"Write the rules of a framework again from its text, replacing the current ones. Cannot be undone: ask the user first.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The framework's document id.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-remove-framework\",\n text: \"talonic_compliance_remove_framework\",\n },\n {\n type: \"paragraph\",\n text: \"Take a framework out of the app with its rules. The document stays in the workspace and can be made a framework again. Cannot be undone: ask the user first.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The framework's document id.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-comparisons\",\n text: \"talonic_compliance_list_comparisons\",\n },\n {\n type: \"paragraph\",\n text: \"Comparisons of document batches for discrepancies (values that should agree across the documents but do not), newest first.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-get-comparison\",\n text: \"talonic_compliance_get_comparison\",\n },\n {\n type: \"paragraph\",\n text: \"One comparison with every discrepancy found: the value, which documents disagree and where.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"run_id\",\n type: \"UUID\",\n required: true,\n description: \"The comparison id.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-compare-documents\",\n text: \"talonic_compliance_compare_documents\",\n },\n {\n type: \"paragraph\",\n text: \"Compare a batch of documents that belong together (an order, its invoice, its delivery note) for values that disagree. Runs in the background; read it with talonic_compliance_get_comparison.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"The documents to compare.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-sets\",\n text: \"talonic_compliance_list_sets\",\n },\n {\n type: \"paragraph\",\n text: \"Document sets (documents judged as one whole, e.g. a contract with its annexes) with their documents and rule set.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-create-set\",\n text: \"talonic_compliance_create_set\",\n },\n {\n type: \"paragraph\",\n text: \"Create a document set picked by hand, judged against one rule set or, without one, every rule of the frameworks that are ON.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"name\",\n type: \"string\",\n required: true,\n description: \"Set name.\",\n },\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"The set's documents.\",\n },\n {\n name: \"rule_set_id\",\n type: \"UUID\",\n required: false,\n description: \"Rule set to judge it against; omitted or null = every ON rule.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-assembly-groups\",\n text: \"talonic_compliance_assembly_groups\",\n },\n {\n type: \"paragraph\",\n text: \"The assembly groups of the workspace's pipelines (documents grouped by a shared value, such as one order number) that sets can be made from.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-create-sets-from-groups\",\n text: \"talonic_compliance_create_sets_from_groups\",\n },\n {\n type: \"paragraph\",\n text: \"Create one document set per assembly group; the set follows the group as documents join it.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"groups\",\n type: \"object[]\",\n required: true,\n description: \"Groups from talonic_compliance_assembly_groups.\",\n },\n {\n name: \"rule_set_id\",\n type: \"UUID\",\n required: false,\n description: \"Rule set to judge them against; omitted or null = every ON rule.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-update-set\",\n text: \"talonic_compliance_update_set\",\n },\n {\n type: \"paragraph\",\n text: \"Rename a set, replace its documents (a group-following set becomes hand-picked) or change its rule set. Fields left out stay.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"set_id\",\n type: \"UUID\",\n required: true,\n description: \"The set.\",\n },\n {\n name: \"name\",\n type: \"string\",\n required: false,\n description: \"New set name.\",\n },\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: false,\n description: \"The set's documents (replaces them).\",\n },\n {\n name: \"rule_set_id\",\n type: \"UUID\",\n required: false,\n description: \"null = every ON rule; omitted = unchanged.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-remove-set\",\n text: \"talonic_compliance_remove_set\",\n },\n {\n type: \"paragraph\",\n text: \"Remove a document set with its evaluations. The documents stay in the workspace. Cannot be undone: ask the user first.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"set_id\",\n type: \"UUID\",\n required: true,\n description: \"The set.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-set-evaluations\",\n text: \"talonic_compliance_list_set_evaluations\",\n },\n {\n type: \"paragraph\",\n text: \"The latest evaluation of every document set. Without paging arguments the whole list; with any of status / limit / offset one page with total and has_more.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"status\",\n type: '\"processing\" | \"waiting\" | \"completed\" | \"error\"',\n required: false,\n description: \"Only evaluations with this status (an interrupted one shows error).\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Page size; any of status / limit / offset asks for one page.\",\n },\n {\n name: \"offset\",\n type: \"integer\",\n required: false,\n description: \"Rows to skip, for paging.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-get-set-evaluation\",\n text: \"talonic_compliance_get_set_evaluation\",\n },\n {\n type: \"paragraph\",\n text: \"A set's latest evaluation with every result: verdict, reason, and the quote with the member document it comes from.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"set_id\",\n type: \"UUID\",\n required: true,\n description: \"The set.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-evaluate-sets\",\n text: \"talonic_compliance_evaluate_sets\",\n },\n {\n type: \"paragraph\",\n text: \"Evaluate document sets, each as one whole, against their rule set. Runs in the background.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"set_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"Sets to evaluate.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-rule-sets\",\n text: \"talonic_compliance_list_rule_sets\",\n },\n {\n type: \"paragraph\",\n text: \"The workspace's rule sets: named selections of rules of the ON frameworks that a document set is judged against.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-create-rule-set\",\n text: \"talonic_compliance_create_rule_set\",\n },\n {\n type: \"paragraph\",\n text: \"Create a named selection of rules (from talonic_compliance_framework_rules) to judge document sets against.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"name\",\n type: \"string\",\n required: true,\n description: \"Rule set name.\",\n },\n {\n name: \"rule_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"Rules of ON frameworks.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-update-rule-set\",\n text: \"talonic_compliance_update_rule_set\",\n },\n {\n type: \"paragraph\",\n text: \"Rename a rule set or replace its rules.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"rule_set_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n {\n name: \"name\",\n type: \"string\",\n required: false,\n description: \"New rule set name.\",\n },\n {\n name: \"rule_ids\",\n type: \"UUID[]\",\n required: false,\n description: \"The rules (replaces them).\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-remove-rule-set\",\n text: \"talonic_compliance_remove_rule_set\",\n },\n {\n type: \"paragraph\",\n text: \"Remove a rule set. Sets that used it go back to every rule of the ON frameworks. Cannot be undone: ask the user first.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"rule_set_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-settings\",\n text: \"talonic_compliance_settings\",\n },\n {\n type: \"paragraph\",\n text: \"Who makes the workspace's compliance decisions: `platform` (Talonic decides every verdict) or `external` (the workspace's own agent decides, through the compliance tasks).\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-set-decider\",\n text: \"talonic_compliance_set_decider\",\n },\n {\n type: \"paragraph\",\n text: \"Switch who makes the compliance decisions: `platform` or `external` (the workspace's own agent works the tasks). Reversible. The person behind the connection needs the Workspace settings permission.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"decider\",\n type: '\"platform\" | \"external\"',\n required: true,\n description: \"platform = Talonic decides; external = the workspace's own agent.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-tasks\",\n text: \"talonic_compliance_list_tasks\",\n },\n {\n type: \"paragraph\",\n text: \"Decisions waiting for the workspace's own agent (only when the decider is external).\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"status\",\n type: '\"open\" | \"all\"',\n required: false,\n description: \"open (default) or all.\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Most tasks returned (default 100).\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-get-task\",\n text: \"talonic_compliance_get_task\",\n },\n {\n type: \"paragraph\",\n text: \"One task's state (open, claimed, done) without its work package.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-claim-task\",\n text: \"talonic_compliance_claim_task\",\n },\n {\n type: \"paragraph\",\n text: \"Claim a task for this agent and read its work package: instructions, the input, and the JSON Schema the answer must match. The claim is a lease: renew it with talonic_compliance_heartbeat_task while working, hand it back with talonic_compliance_release_task, or answer with talonic_compliance_submit_task. A lapsed lease returns the task to open.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-heartbeat-task\",\n text: \"talonic_compliance_heartbeat_task\",\n },\n {\n type: \"paragraph\",\n text: \"Renew the lease on a claimed task.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"The execution_epoch talonic_compliance_claim_task returned.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-release-task\",\n text: \"talonic_compliance_release_task\",\n },\n {\n type: \"paragraph\",\n text: \"Hand a claimed task back unanswered; it is open again for any agent.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"The execution_epoch talonic_compliance_claim_task returned.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-submit-task\",\n text: \"talonic_compliance_submit_task\",\n },\n {\n type: \"paragraph\",\n text: \"Submit the answer to a claimed task. It is checked against the package's output_schema and stored exactly like a verdict Talonic makes itself.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"The execution_epoch talonic_compliance_claim_task returned.\",\n },\n {\n name: \"answer\",\n type: \"object\",\n required: true,\n description: \"The answer, matching the package's output_schema.\",\n },\n ],\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\n// Generated from src/tools/money-found.ts (names, summaries, parameters); keep in step with it.\nexport const section: RawSection = {\n slug: \"money-found-tools\",\n parentSlug: \"tool-groups\",\n title: \"Money Found\",\n seoTitle: \"Money Found MCP Tools — Recoverable Amounts Ledger\",\n description:\n \"MCP tools for the Talonic Money Found app: read the ledger of recoverable amounts with their evidence, prepare evidence requests and queue row re-reviews.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read the Money Found ledger: every amount the workspace's contracts, invoices and payments show could be recovered, grouped by lever, each row with the clause and the documents it rests on.\",\n },\n {\n type: \"paragraph\",\n text: \"The usual loop: **`talonic_money_found_ledger`** finds a row and its evidence, **`talonic_money_found_evidence_requests`** lists what to ask the customer's receivables team to confirm, and **`talonic_money_found_review_row`** queues a re-review when a row's price is in doubt; **`talonic_money_found_reviews`** shows the outcome.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are listed only when the Money Found app is available to the connection. Every call is checked against the role and permissions of the person behind the connection, exactly as in the web app.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-money-found-ledger\",\n text: \"talonic_money_found_ledger\",\n },\n {\n type: \"paragraph\",\n text: \"The whole lever ledger: per lever (a kind of recoverable amount, such as a charge the contract allows but the invoices leave off) its rows, each with its key, party and agreement, the amount, its `tier` (e.g. potential) and `state`, the explanation, and the quotes and documents it rests on, plus the ledger totals in the ledger currency.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-money-found-evidence-requests\",\n text: \"talonic_money_found_evidence_requests\",\n },\n {\n type: \"paragraph\",\n text: \"What to ask the customer's receivables team for: the open potential rows that need a confirmation, grouped by cost unit and framework number, largest first, each item with its lever id and row key, invoice type, period, amount and the question to ask.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-money-found-reviews\",\n text: \"talonic_money_found_reviews\",\n },\n {\n type: \"paragraph\",\n text: \"Re-reviews of contract price rows: per row its status (queued, running, done), the outcome, and the suggested price where a contract price was read again.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-money-found-review-row\",\n text: \"talonic_money_found_review_row\",\n },\n {\n type: \"paragraph\",\n text: \"Queue a re-review of one contract price row: its contract price is checked again against the documents; the ledger changes only when the review finds a different price.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"lever_id\",\n type: \"string\",\n required: true,\n description: \"The lever id of the row.\",\n },\n {\n name: \"key\",\n type: \"string\",\n required: true,\n description: \"The row key.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-money-found-review-all\",\n text: \"talonic_money_found_review_all\",\n },\n {\n type: \"paragraph\",\n text: \"Queue a re-review of every contract price row not reviewed since its check changed.\",\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\n// Generated from src/tools/customs-declaration.ts (names, summaries, parameters); keep in step with it.\nexport const section: RawSection = {\n slug: \"customs-declaration-tools\",\n parentSlug: \"tool-groups\",\n title: \"Customs declaration\",\n seoTitle: \"Customs Declaration MCP Tools — Compare and Check Orders\",\n description:\n \"MCP tools for the Talonic customs declaration app: list orders whose documents and filed declaration disagree, and read the field-by-field comparison per order.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Compare the transport documents of each order with the customs declaration filed for it, field by field, and see which orders fail a check before filing.\",\n },\n {\n type: \"paragraph\",\n text: \"The usual loop: **`talonic_customs_declaration_issues`** lists the orders that fail a check, and **`talonic_customs_declaration_orders`** with `q` set to the order's LRN shows the comparison and the documents behind it. Corrections happen on the documents themselves; the order is compared again afterwards.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are listed only when the Customs declaration app is available to the connection. Every call is checked against the role and permissions of the person behind the connection, exactly as in the web app.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-customs-declaration-pipelines\",\n text: \"talonic_customs_declaration_pipelines\",\n },\n {\n type: \"paragraph\",\n text: \"The pipelines whose Spec compares transport documents with a filed customs declaration.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-customs-declaration-issues\",\n text: \"talonic_customs_declaration_issues\",\n },\n {\n type: \"paragraph\",\n text: \"The worklist: orders with a failing check, with the checks that fail (message and fields concerned) and the fields where documents and declaration differ or a value is missing.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"pipeline_id\",\n type: \"UUID\",\n required: false,\n description:\n \"The pipeline (talonic_customs_declaration_pipelines); default: the workspace's first.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-customs-declaration-orders\",\n text: \"talonic_customs_declaration_orders\",\n },\n {\n type: \"paragraph\",\n text: \"Orders of a pipeline with their field-by-field comparison (document value, declared value, state match / mismatch / missing) and checks; the evidence for one order's issues.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"pipeline_id\",\n type: \"UUID\",\n required: false,\n description:\n \"The pipeline (talonic_customs_declaration_pipelines); default: the workspace's first.\",\n },\n {\n name: \"status\",\n type: '\"ready\" | \"review\"',\n required: false,\n description: \"ready = every check passes; review = at least one fails.\",\n },\n {\n name: \"q\",\n type: \"string\",\n required: false,\n description: \"LRN, sender, receiver or plates contains.\",\n },\n {\n name: \"page\",\n type: \"integer\",\n required: false,\n description: \"Page number (asks for one page).\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Orders per page, at most 200 (default 50).\",\n },\n ],\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../types\"\nimport { section as dataManagement } from \"./groups/data-management\"\nimport { section as events } from \"./groups/events\"\nimport { section as aggregate } from \"./groups/aggregate\"\nimport { section as admin } from \"./groups/admin\"\nimport { section as contractDesk } from \"./groups/contract-desk\"\nimport { section as transportFolders } from \"./groups/transport-folders\"\nimport { section as compliance } from \"./groups/compliance\"\nimport { section as moneyFound } from \"./groups/money-found\"\nimport { section as customsDeclaration } from \"./groups/customs-declaration\"\n\n/**\n * One page per probe-gated tool group (src/tools/tool-groups.ts). Each group\n * is listed only when it is available to the connection, so these pages say\n * when a customer sees the tools as well as what they do.\n */\nexport const sections: RawSection[] = [\n dataManagement,\n events,\n aggregate,\n admin,\n contractDesk,\n transportFolders,\n compliance,\n moneyFound,\n customsDeclaration,\n]\n","import type { RawSection } from \"../types\"\n\nexport const sections: RawSection[] = [\n {\n slug: \"drag-and-drop\",\n parentSlug: \"features\",\n title: \"Drag & Drop Files\",\n seoTitle: \"Drag & Drop File Extraction with the Talonic MCP Server\",\n description:\n \"Drop PDFs and other documents straight into Claude Desktop, Cursor, or Cowork and extract structured data — no file paths, no upload configuration needed.\",\n content: [\n {\n type: \"paragraph\",\n text: \"When the user drag-drops a PDF (or any supported file) into a chat-style MCP host such as Claude Desktop, Cowork, or Cursor, the file lands in a host-owned sandbox directory the MCP server cannot read. The path the host hands the agent is meaningless to a separately-running `npx` MCP process.\",\n },\n {\n type: \"paragraph\",\n text: \"`@talonic/mcp@0.1.4` and later solve this by accepting **`file_data`** (base64-encoded file bytes) and **`filename`** on `talonic_extract` and `talonic_to_markdown`. The agent reads the file bytes from the conversation, base64-encodes them, and passes them through the MCP tool call. The MCP server decodes, infers MIME type from the filename, and uploads to the Talonic API.\",\n },\n {\n type: \"paragraph\",\n text: \"This approach works transparently across all chat-style MCP clients. The agent does not need to know where the file is stored on disk, and the user does not need to configure file paths or directory permissions. The entire flow — from drop to structured extraction — happens in a single conversation turn.\",\n },\n {\n type: \"paragraph\",\n text: \"Supported file types include PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. The MCP server infers the MIME type from the `filename` extension, so always include the original file extension when passing `file_data`. If the extension is missing or unusual, the server may reject the upload with an `unsupported_file_type` error.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"drag-drop-example\",\n text: \"Example: drag-and-drop extraction flow\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"What the agent sends when a user drops a PDF\",\n code: `// User drops \"receipt-2026-05.pdf\" into the chat\n// The MCP client base64-encodes the file bytes automatically\n// Agent calls talonic_extract:\n{\n \"file_data\": \"JVBERi0xLjQKJcOkw7zDtsO8...\",\n \"filename\": \"receipt-2026-05.pdf\",\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"merchant\": { \"type\": \"string\" },\n \"date\": { \"type\": \"string\", \"format\": \"date\" },\n \"total\": { \"type\": \"number\" },\n \"payment_method\": { \"type\": \"string\" }\n },\n \"required\": [\"merchant\", \"total\"]\n }\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Extraction response from dropped file\",\n code: `{\n \"status\": \"complete\",\n \"document\": {\n \"id\": \"doc_f1e2...\",\n \"filename\": \"receipt-2026-05.pdf\",\n \"pages\": 1,\n \"type_detected\": \"receipt\"\n },\n \"data\": {\n \"merchant\": \"Coffee House Berlin\",\n \"date\": \"2026-05-07\",\n \"total\": 14.80,\n \"payment_method\": \"Visa ending 4242\"\n },\n \"confidence\": { \"overall\": 0.95 }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"The drag-and-drop flow works identically across Claude Desktop, Cowork, and other chat-style MCP clients that support file attachments. The key requirement is that the client encodes the file as base64 and passes it in the `file_data` parameter alongside the original `filename`. The MCP server uses the filename extension to determine the MIME type, decodes the base64 bytes, and uploads the file to the Talonic API in a single request.\",\n },\n {\n type: \"paragraph\",\n text: \"This `file_data` path works without limit in local-stdio installs (Claude Desktop, Cursor, Cline, Continue, Cowork). It does **not** work in the **Claude.ai hosted connector**, which caps tool-call arguments at ~32 KB decoded (~43 KB base64, measured against production) — a real PDF is silently truncated. In hosted connectors, use **`talonic_request_upload`**: it returns a browser link (`https://app.talonic.com/u/<token>`) the user opens to drop the file, after which the agent polls `talonic_get_document` until `status` is `completed` and then calls `talonic_extract` by `document_id`. `file_url` (a publicly reachable URL) and a pre-uploaded `document_id` also work.\",\n },\n {\n type: \"callout\",\n text: \"Tool descriptions advertise `file_data` as the recommended input for chat-style clients, so well-trained agents reach for it automatically. No client-side configuration required.\",\n },\n ],\n related: [\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n { label: \"talonic_to_markdown\", slug: \"talonic-to-markdown\" },\n { label: \"Common Issues\", slug: \"common-issues\" },\n ],\n faq: [\n {\n question: \"Can I drag and drop files into Claude Desktop with Talonic?\",\n answer:\n \"Yes. Since @talonic/mcp@0.1.4, talonic_extract and talonic_to_markdown accept base64 file data directly, so you can drop a PDF into Claude Desktop and extract data without file path setup.\",\n },\n {\n question: \"What file types can I drag and drop?\",\n answer:\n \"PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. The MCP server infers the MIME type from the filename extension.\",\n },\n {\n question: \"Why does drag-and-drop fail with an unsupported_file_type error?\",\n answer:\n \"The filename is missing a recognisable extension. Make sure the original filename with its extension is passed in the filename parameter alongside file_data.\",\n },\n {\n question: \"What happens if the dropped file is too large?\",\n answer:\n \"Base64 encoding increases payload size by about 33%. Most local MCP clients handle this fine, but hosted connectors may have payload limits. For large files (over 10 MB), use file_url with a public URL or upload via the Talonic dashboard and reference by document_id instead.\",\n },\n {\n question: \"Do I need to configure anything for drag-and-drop to work?\",\n answer:\n \"No. The file_data parameter is advertised in the tool descriptions, so MCP clients that support file attachments automatically encode and pass the file. Just drop the file into the chat and provide a schema — the agent handles the rest.\",\n },\n ],\n mentions: [\"drag-and-drop\", \"file_data\", \"base64\", \"Claude Desktop\"],\n },\n {\n slug: \"how-it-works\",\n parentSlug: \"features\",\n title: \"How It Works\",\n seoTitle: \"How the Talonic MCP Server Works — Architecture Guide\",\n description:\n \"Architecture of the Talonic MCP server: MCP over stdio or Streamable HTTP on the agent side, HTTPS calls with Bearer auth to api.talonic.com on the other.\",\n content: [\n {\n type: \"code\",\n language: \"text\",\n title: \"Architecture\",\n code: `Agent (Claude Desktop / Cursor / Cline / etc.)\n ↓ MCP protocol over stdio\nTalonic MCP server (this package)\n ↓ HTTPS, Bearer auth\napi.talonic.com`,\n },\n {\n type: \"paragraph\",\n text: \"Each tool call is one HTTP request to the Talonic API, using your API key. The server handles auth, retries on transient failures (429, 5xx), MIME-type detection on file uploads, multipart serialisation, and structured error formatting.\",\n },\n {\n type: \"paragraph\",\n text: \"The MCP server acts as a thin translation layer between the MCP protocol and the Talonic REST API — the same API the [Talonic Node SDK](https://talonic.com/docs/sdk) wraps for application code. It receives tool calls from the agent over **stdio** (local mode) or **streamable HTTP** (hosted mode), validates parameters, constructs the appropriate API request, and returns the response in the MCP-standard `content` format the agent expects.\",\n },\n {\n type: \"paragraph\",\n text: \"For file uploads, the server handles the complexity of multipart form encoding. It reads file bytes from `file_data` (base64), `file_path` (local disk), or `file_url` (remote URL), detects the MIME type from the filename extension, and streams the upload to `api.talonic.com`. This means the agent never needs to deal with multipart boundaries or content-type headers.\",\n },\n {\n type: \"paragraph\",\n text: \"Error handling is designed for agent consumption. API errors are reformatted into structured messages that include the error type, a human-readable description, and actionable next steps. For example, a missing schema error tells the agent to provide a `schema` or `schema_id`, rather than returning a raw 400 status code.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"request-lifecycle\",\n text: \"Request lifecycle\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"What happens during a talonic_extract call\",\n code: `// 1. Agent sends MCP tool call over stdio/HTTP:\n{\n \"tool\": \"talonic_extract\",\n \"arguments\": {\n \"file_url\": \"https://example.com/invoice.pdf\",\n \"schema\": { \"type\": \"object\", \"properties\": { \"total\": { \"type\": \"number\" } } }\n }\n}\n\n// 2. MCP server validates parameters, constructs API request:\n// POST https://api.talonic.com/v1/extract\n// Authorization: Bearer tlnc_...\n// Content-Type: multipart/form-data (for file uploads)\n\n// 3. API processes: download file → OCR → extract fields → validate schema\n\n// 4. MCP server formats response as MCP content:\n{\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"{ \\\\\"status\\\\\": \\\\\"complete\\\\\", \\\\\"data\\\\\": { \\\\\"total\\\\\": 1500.00 }, ... }\"\n }\n ]\n}`,\n },\n {\n type: \"paragraph\",\n text: \"The MCP server is stateless between tool calls. It does not cache documents, schemas, or extraction results locally. Every tool call is an independent HTTP request to the Talonic API, which means the server can be restarted at any time without losing state. All persistence — documents, schemas, extraction history — lives in the Talonic cloud workspace, accessible via your API key.\",\n },\n {\n type: \"paragraph\",\n text: \"Authentication is handled transparently by the MCP server. For the local `npx` option, the server reads the `TALONIC_API_KEY` environment variable at startup and attaches it as a `Bearer` token to every API request. For the hosted option at `mcp.talonic.com`, the client passes the API key in the `Authorization` header, and the hosted server forwards it to the Talonic API. In neither case does the API key reach the AI agent — it stays within the MCP server process boundary.\",\n },\n {\n type: \"paragraph\",\n text: \"Transport modes differ between local and hosted deployments. The local `npx` server communicates with the MCP client over **stdio** (standard input/output), which is the default transport for locally-spawned MCP servers. The hosted server at `mcp.talonic.com` uses **streamable HTTP**, where the client sends HTTP requests and receives streamed responses. Both transports implement the same MCP protocol, so tool behaviour is identical regardless of transport mode.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"The MCP server automatically retries on `429` (rate limit) and `5xx` (server error) responses with exponential backoff. Agents do not need to implement retry logic themselves.\",\n },\n ],\n related: [\n { label: \"Environment Variables\", slug: \"env-variables\" },\n { label: \"Common Issues\", slug: \"common-issues\" },\n { label: \"Install Overview\", slug: \"install-overview\" },\n ],\n faq: [\n {\n question: \"How does the Talonic MCP server work?\",\n answer:\n \"The MCP server communicates with AI agents over stdio using the MCP protocol. Each tool call translates to one HTTPS request to api.talonic.com with automatic auth, retries, and error formatting.\",\n },\n {\n question: \"Does the MCP server handle retries automatically?\",\n answer:\n \"Yes. The server retries on 429 (rate limit) and 5xx (server error) responses with exponential backoff. Agents do not need to implement retry logic.\",\n },\n {\n question: \"How are errors returned to the agent?\",\n answer:\n \"API errors are reformatted into structured messages with error type, description, and actionable next steps. The agent receives clear guidance instead of raw HTTP status codes.\",\n },\n {\n question: \"Does the MCP server store any data locally?\",\n answer:\n \"No. The server is stateless between tool calls. It does not cache documents, schemas, or results locally. All persistence lives in the Talonic cloud workspace. The server can be restarted at any time without losing state.\",\n },\n {\n question: \"Is my API key exposed to the AI agent?\",\n answer:\n \"No. The API key stays within the MCP server process boundary. For local setups, it is read from the TALONIC_API_KEY environment variable. For hosted setups, it is passed in the Authorization header. In neither case does the key reach the AI agent's context window.\",\n },\n ],\n mentions: [\"stdio\", \"HTTPS\", \"Bearer auth\", \"architecture\", \"retry\", \"error handling\"],\n },\n]\n","import type { RawSection } from \"../types\"\n\nexport const sections: RawSection[] = [\n {\n slug: \"env-variables\",\n parentSlug: \"configuration\",\n title: \"Environment Variables\",\n seoTitle: \"Environment Variables — Talonic MCP Server Reference\",\n description:\n \"Configure the Talonic MCP server with environment variables: the required TALONIC_API_KEY, the optional TALONIC_BASE_URL override, and hosted-mode Bearer auth.\",\n content: [\n { type: \"paragraph\", text: \"Set via the `env` block in your MCP client config:\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"TALONIC_API_KEY\",\n type: \"string\",\n required: true,\n description: \"Your Talonic API key. Starts with `tlnc_`.\",\n },\n {\n name: \"TALONIC_BASE_URL\",\n type: \"string\",\n description: \"Override the API base URL.\",\n default: \"https://api.talonic.com\",\n },\n ],\n },\n {\n type: \"paragraph\",\n text: \"The `TALONIC_API_KEY` is the only required configuration. It authenticates every API call the MCP server makes on your behalf. Talonic keys start with `tlnc_`. The server checks only that the variable is set — it does not validate the prefix at startup, so a malformed or revoked key boots normally and then fails on the first tool call with a `401`.\",\n },\n {\n type: \"paragraph\",\n text: \"The `TALONIC_BASE_URL` override is rarely needed. It exists for enterprise customers with a dedicated Talonic deployment or for developers testing against a staging environment. Most users should leave this unset, which defaults to `https://api.talonic.com`.\",\n },\n {\n type: \"paragraph\",\n text: \"Environment variables are set differently depending on your MCP client and deployment mode. For local `npx` setups, they go in the `env` block of the MCP client config JSON. For the hosted server at `mcp.talonic.com`, the API key is passed as a `Bearer` token in the `Authorization` header instead of an environment variable.\",\n },\n {\n type: \"paragraph\",\n text: \"If the MCP server cannot read the API key at startup, it exits immediately with `Error: TALONIC_API_KEY environment variable is required.` and a pointer to `https://app.talonic.com`. Common causes include a malformed `env` block in the JSON config, a typo in the variable name, or the MCP client not passing environment variables through to the spawned process. Always fully restart the client after editing the config.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"env-local-config\",\n text: \"Local npx configuration example\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Full MCP client config with environment variables\",\n code: `{\n \"mcpServers\": {\n \"talonic\": {\n \"command\": \"npx\",\n \"args\": [\"-y\", \"@talonic/mcp@latest\"],\n \"env\": {\n \"TALONIC_API_KEY\": \"tlnc_your_key_here\"\n }\n }\n }\n}`,\n },\n {\n type: \"heading\",\n level: 3,\n id: \"env-base-url-override\",\n text: \"Base URL override for enterprise deployments\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Config with custom base URL for a dedicated Talonic deployment\",\n code: `{\n \"mcpServers\": {\n \"talonic\": {\n \"command\": \"npx\",\n \"args\": [\"-y\", \"@talonic/mcp@latest\"],\n \"env\": {\n \"TALONIC_API_KEY\": \"tlnc_your_key_here\",\n \"TALONIC_BASE_URL\": \"https://api.talonic.yourcompany.com\"\n }\n }\n }\n}`,\n },\n {\n type: \"paragraph\",\n text: \"For teams managing multiple environments (development, staging, production), each environment should use a separate API key pointing to a different Talonic workspace. This ensures that test documents and schemas do not mix with production data. Create separate config files or use environment-specific variable values to switch between workspaces. The `TALONIC_BASE_URL` override is only needed for enterprise customers with a dedicated Talonic deployment — all other users should leave it unset.\",\n },\n {\n type: \"paragraph\",\n text: \"Some MCP clients support reading environment variables from the system shell rather than the config file. If your client supports this, you can set `TALONIC_API_KEY` in your shell profile (`.bashrc`, `.zshrc`, or equivalent) and omit the `env` block from the config. This approach is slightly more secure because the key is not stored in a JSON file that might be accidentally committed to version control. However, most MCP clients require the `env` block explicitly, so check your client's documentation.\",\n },\n {\n type: \"paragraph\",\n text: \"When using the hosted server at `mcp.talonic.com`, environment variables are not used at all. Instead, the API key is passed in the `Authorization` header as a `Bearer` token. This means the `env` block is irrelevant for hosted configurations — only the `url` and `headers` fields matter. If you switch from local to hosted, remove the `env`, `command`, and `args` fields and replace them with `url` and `headers`.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"env-self-hosting\",\n text: \"Self-hosting the HTTP transport\",\n },\n {\n type: \"paragraph\",\n text: \"The two variables above are everything a local `npx` install reads. If you self-host the streamable-HTTP transport (`npm run start:http`) instead of using `mcp.talonic.com`, a few more variables shape how the server advertises itself to OAuth clients. These are irrelevant for stdio installs and for anyone using the hosted endpoint.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"PORT\",\n type: \"number\",\n description: \"Port the HTTP transport listens on.\",\n default: \"3000\",\n },\n {\n name: \"MCP_RESOURCE_URL\",\n type: \"string\",\n description:\n \"Public URL this deployment advertises as its OAuth protected-resource identifier. Served at /.well-known/oauth-protected-resource (root) and /.well-known/oauth-protected-resource/mcp (resource = <URL>/mcp, per RFC 9728); 401 responses point at the document matching the endpoint the client used.\",\n default: \"https://mcp.talonic.com\",\n },\n {\n name: \"OAUTH_AUTHORIZATION_SERVER\",\n type: \"string\",\n description: \"Authorization server clients are pointed at during OAuth discovery.\",\n default: \"https://api.talonic.com\",\n },\n ],\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"Never commit your `TALONIC_API_KEY` to version control. If using a shared MCP config template, replace the key with a placeholder like `tlnc_your_key_here` before sharing.\",\n },\n ],\n related: [\n { label: \"Install Overview\", slug: \"install-overview\" },\n { label: \"Get an API Key\", slug: \"get-api-key\" },\n { label: \"Common Issues\", slug: \"common-issues\" },\n ],\n faq: [\n {\n question: \"What environment variables does the Talonic MCP server need?\",\n answer:\n \"TALONIC_API_KEY (required, starts with tlnc_) and optionally TALONIC_BASE_URL to override the API endpoint.\",\n },\n {\n question: \"Where do I set environment variables for the MCP server?\",\n answer:\n \"For local npx setups, set them in the env block of your MCP client config JSON. For the hosted server, the API key is passed as a Bearer token in the Authorization header instead.\",\n },\n {\n question: \"What happens if the API key is missing or invalid?\",\n answer:\n \"A missing key exits at startup with 'Error: TALONIC_API_KEY environment variable is required.' An invalid key is different: the server does not validate the prefix at startup, so it boots normally and the first tool call fails with a 401. Check that the env block is correctly formatted, then restart the client.\",\n },\n {\n question: \"Can I set the API key in my shell profile instead of the config file?\",\n answer:\n \"Some MCP clients support reading environment variables from the system shell. If yours does, set TALONIC_API_KEY in .bashrc or .zshrc and omit the env block from the config. However, most clients require the env block explicitly, so check your client documentation first.\",\n },\n {\n question: \"Do I need TALONIC_BASE_URL for normal usage?\",\n answer:\n \"No. TALONIC_BASE_URL defaults to https://api.talonic.com and only needs to be overridden for enterprise customers with a dedicated Talonic deployment or developers testing against a staging environment. Leave it unset for standard usage.\",\n },\n ],\n mentions: [\"TALONIC_API_KEY\", \"TALONIC_BASE_URL\", \"environment variables\"],\n },\n]\n","import type { RawSection } from \"../types\"\n\nexport const sections: RawSection[] = [\n {\n slug: \"common-issues\",\n parentSlug: \"troubleshooting\",\n title: \"Common Issues\",\n seoTitle: \"Common Issues — Talonic MCP Server Troubleshooting\",\n description:\n \"Fix the most common Talonic MCP server problems: a missing API key, tools not appearing in the client, extract schema errors, and filter validation failures.\",\n content: [\n {\n type: \"paragraph\",\n text: \"This section covers the most frequently encountered issues when setting up and using the Talonic MCP server. Each issue includes a description, the root cause, and the fix. If your problem is not listed here, check the Known Limitations section or reach out via GitHub issues.\",\n },\n {\n type: \"paragraph\",\n text: \"Most issues fall into two categories: **configuration problems** (the server does not start or connect) and **tool errors** (the server is running but a specific tool call fails). Configuration problems are almost always caused by malformed JSON, a missing API key, or not restarting the MCP client after editing the config.\",\n },\n {\n type: \"paragraph\",\n text: \"Tool errors typically include a structured error message with an error type and description. Read the error message carefully — it usually tells you exactly what is wrong and how to fix it. For example, a `VALIDATION_ERROR` on `talonic_filter` means the field name is not in the API's registry.\",\n },\n {\n type: \"paragraph\",\n text: \"When debugging, start by verifying the MCP server is running. Check the connected servers list in your MCP client. If Talonic is not listed, the issue is in your config or client setup. If it is listed but a tool call fails, the issue is with the tool input or API-side.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"missing-api-key\",\n text: \"TALONIC_API_KEY environment variable is required\",\n },\n {\n type: \"paragraph\",\n text: \"The `env` block in your MCP client config is missing or not being read. Double-check the JSON shape. After editing the config, fully restart the client (not just the conversation).\",\n },\n\n {\n type: \"heading\",\n level: 3,\n id: \"server-not-found\",\n text: \"Talonic does not appear in connected servers\",\n },\n {\n type: \"paragraph\",\n text: 'Make sure the `command` is `npx` and the `args` are exactly `[\"-y\", \"@talonic/mcp@latest\"]`. Sanity check: run `npx -y @talonic/mcp@latest --version` in any terminal — it should print a version number.',\n },\n\n {\n type: \"heading\",\n level: 3,\n id: \"extract-no-schema\",\n text: \"talonic_extract returns a validation error when no schema is given\",\n },\n {\n type: \"paragraph\",\n text: \"By design. To keep results reliable, the MCP layer asks for the fields you want when a call omits `schema`, `schema_id`, and `auto_schema`. The error hands back a ready-to-paste minimal JSON Schema (tailored to your `instructions`) so the retry succeeds immediately. Three ways forward: provide an inline `schema` (full JSON Schema recommended), pass a `schema_id` from `talonic_list_schemas`, or set `auto_schema: true` for open capture — Talonic discovers the fields and returns a suggested schema you can refine.\",\n },\n\n {\n type: \"heading\",\n level: 3,\n id: \"unsupported-file\",\n text: \"talonic_extract rejects with unsupported_file_type\",\n },\n {\n type: \"paragraph\",\n text: \"The MIME type was inferred as `application/octet-stream`. The SDK infers from common file extensions; if your filename has an unusual extension, this may occur. A future tool version will expose explicit `content_type` passthrough.\",\n },\n\n {\n type: \"heading\",\n level: 3,\n id: \"filter-validation\",\n text: 'talonic_filter VALIDATION_ERROR / \"No field matches name\"',\n },\n {\n type: \"paragraph\",\n text: \"The field name is not in the API's field registry. Field names must be canonical names (e.g. `vendor.name`, `policy.0_term_end`). Call `talonic_search` first; canonical names appear in `fields[].canonicalName`.\",\n },\n\n {\n type: \"heading\",\n level: 3,\n id: \"stale-descriptions\",\n text: \"Tool descriptions look wrong in my client\",\n },\n {\n type: \"paragraph\",\n text: \"Some MCP clients cache tool descriptions. Restart the client after a server update.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"auth-error\",\n text: \"Authentication error on every tool call\",\n },\n {\n type: \"paragraph\",\n text: \"If every tool call returns an authentication error, the credential the server is using is missing, malformed, or revoked. For the local npx option, check that the `env` block in your config has the correct variable name (`TALONIC_API_KEY`, not `TALONIC_KEY` or `API_KEY`) and that the value starts with `tlnc_`. For the hosted server with a custom-header client, verify the `Authorization` header is formatted as `Bearer tlnc_...` with a space after `Bearer`. For the Claude.ai connector OAuth flow, see the OAuth-specific entry below.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"oauth-flow\",\n text: \"Claude.ai connector: stuck on sign-in or callback\",\n },\n {\n type: \"paragraph\",\n text: \"The Claude.ai custom-connector flow uses OAuth 2.1 with PKCE against `app.talonic.com`. If the sign-in window opens but does not return to Claude.ai, or the connector reports `disconnected` after authorising, walk through these checks. Make sure you are signed in to the same Talonic account in `app.talonic.com` that owns the workspace you want to use. Allow third-party cookies for `app.talonic.com` and `claude.ai`; some browsers block the post-consent redirect otherwise. After granting consent, you should be redirected back to Claude.ai automatically; if the tab stays on `app.talonic.com`, click the Talonic logo or close the tab and reopen the connector to retry. If you have multiple Talonic accounts, sign out of `app.talonic.com` first, then start the connector flow again so the right account is used. As a last resort, remove the connector in Claude.ai and add it again with `https://mcp.talonic.com/mcp` as the URL.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"timeout-errors\",\n text: \"Tool calls time out on large documents\",\n },\n {\n type: \"paragraph\",\n text: \"Large documents (20+ pages) may take longer than some MCP clients' default timeout. The Talonic API processes documents up to 100 pages, but extraction time scales with page count. If you experience timeouts, try splitting large documents into smaller sections before uploading. Alternatively, check if your MCP client has a configurable timeout setting — increasing it to 60 seconds should accommodate most documents.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"debug-checklist\",\n text: \"Debug checklist\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Step-by-step debug commands\",\n code: `// 1. Verify the MCP server installs and runs:\n// Terminal: npx -y @talonic/mcp@latest --version\n// Expected: prints version number (e.g., 0.1.6)\n\n// 2. Verify your API key is valid:\n// Terminal: curl -H \"Authorization: Bearer tlnc_your_key\" https://api.talonic.com/v1/schemas\n// Expected: JSON response (even if empty schemas array)\n\n// 3. Validate your config JSON:\n// Paste your config into https://jsonlint.com\n// Common errors: trailing commas, missing quotes, wrong brackets\n\n// 4. Verify client picked up the config:\n// Check the connected servers list in your MCP client\n// If Talonic is missing, the config is not being read`,\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"When reporting issues, include the MCP server version (`npx -y @talonic/mcp@latest --version`), your MCP client name and version, and the full error message. This helps diagnose problems faster.\",\n },\n ],\n related: [\n { label: \"Known Limitations\", slug: \"known-limitations\" },\n { label: \"Upgrading\", slug: \"upgrading\" },\n { label: \"Environment Variables\", slug: \"env-variables\" },\n ],\n faq: [\n {\n question: \"Why does Talonic MCP not appear in Claude Desktop?\",\n answer:\n 'Check that command is \"npx\" and args are [\"-y\", \"@talonic/mcp@latest\"]. Run npx -y @talonic/mcp@latest --version in a terminal to verify. Fully restart Claude Desktop (Cmd+Q).',\n },\n {\n question: \"Why does talonic_extract fail with a validation error?\",\n answer:\n \"The most common cause is that no fields were specified. Provide a schema (inline JSON Schema) or a schema_id from talonic_list_schemas — or set auto_schema: true for open capture, where Talonic discovers the fields and returns a suggested schema. The validation error already hands back a ready-to-paste minimal schema, so the retry succeeds on the next call.\",\n },\n {\n question: \"How do I debug MCP server connection issues?\",\n answer:\n \"First verify the server runs standalone: npx -y @talonic/mcp@latest --version. Then check your config JSON is valid, the API key starts with tlnc_, and you have fully restarted your MCP client.\",\n },\n {\n question: \"Why do all tool calls return authentication errors?\",\n answer:\n \"The API key is missing, malformed, or revoked. Verify the key starts with tlnc_ in your config. For local setups, check the env block uses TALONIC_API_KEY (exact name). For hosted setups, check the Authorization header format is 'Bearer tlnc_...' with a space after Bearer. Regenerate the key in the dashboard if it was revoked.\",\n },\n {\n question: \"What should I do if large documents time out?\",\n answer:\n \"Documents over 20 pages may exceed some MCP clients' default timeout. Try splitting the document into smaller sections, or increase your MCP client's timeout setting to 60 seconds. The Talonic API supports documents up to 100 pages but processing time scales with page count.\",\n },\n ],\n mentions: [\"troubleshooting\", \"API key\", \"VALIDATION_ERROR\"],\n },\n {\n slug: \"known-limitations\",\n parentSlug: \"troubleshooting\",\n title: \"Known Limitations\",\n seoTitle: \"Known Limitations of the Talonic MCP Server and Tools\",\n description:\n \"Limitations of the Talonic MCP server: the extract schema requirement, filter typing rules, the Claude.ai drag-and-drop stall, and header-based cost reporting.\",\n content: [\n {\n type: \"paragraph\",\n text: \"The Talonic MCP server is production-ready but has a number of known limitations that are planned for future releases. Understanding these limitations helps agents make better decisions about when and how to use each tool.\",\n },\n {\n type: \"paragraph\",\n text: \"Most limitations relate to the maturity of the extraction pipeline. Certain filter operators, cost reporting, and per-field provenance have constraints. These are documented here so agent developers can set accurate expectations and build appropriate fallbacks.\",\n },\n {\n type: \"list\",\n items: [\n \"**`talonic_extract` needs to know which fields to pull.** Pass a `schema` (full JSON Schema recommended) or a `schema_id` — or set `auto_schema: true` for open capture, where Talonic discovers the fields and returns a suggested schema. A call that gives none of the three returns a validation error that hands back a ready-to-paste minimal schema, so the retry succeeds immediately.\",\n \"**Schema definition: prefer full JSON Schema.** The flat key-type map is documented as accepted; if you get a 'no fields' error from the API, fall back to JSON Schema.\",\n \"**Filter requires `filterable: true` fields.** Call `talonic_search` first; only entries in the response where `filterable: true` can be used as `field` (or `field_id`) on `talonic_filter`. Entries with `filterable: false` exist in the schema but have no extracted data yet.\",\n \"**Schema field type affects filter operators.** Numeric operators (`gt`, `gte`, `lt`, `lte`, `between`) only work on fields typed as `number` in the schema. Numeric values stored as strings (with currency symbols, locale formatting, etc.) silently return zero results. Type your schema fields appropriately at design time.\",\n \"**`is_not_empty` filter checks materialized data.** Results reflect values within seconds of extraction completing. For batch-mode documents, values are materialized after the batch poll cycle completes.\",\n \"**Dragging a file directly into a Claude.ai chat does not work through the hosted connector** — use `talonic_request_upload` instead. A base64-encoded real PDF exceeds Claude.ai's tool-call argument cap (~32 KB decoded / ~43 KB base64, measured against production), so `file_data` is silently truncated and the API returns `null` fields. This is a structural platform limit, not a Talonic bug. The supported path is the browser-handoff flow: `talonic_request_upload` returns an `app.talonic.com/u/<token>` link the user opens to drop the file; poll `talonic_get_document` until `status` is `completed`, then `talonic_extract` by `document_id`. Alternatives: `file_url` or a pre-uploaded `document_id`. Local-stdio installs (Claude Desktop, Cursor, Cline, Continue, Cowork) have no cap and use `file_data` directly.\",\n \"**Cost reporting depends on response headers.** `talonic_extract` returns a `cost` object (`costCredits`, `costEur`, `balanceCredits`, and the registry-vs-AI cell split) parsed from the `X-Talonic-*` response headers. It is `null` for non-extract calls and may be absent against older API deployments that do not send those headers, so treat it as optional and fall back to `talonic_get_balance` rather than assuming it is present.\",\n ],\n },\n {\n type: \"paragraph\",\n text: \"Agents should handle these limitations gracefully. For the schema requirement, always construct or reference a schema before calling `talonic_extract`. When a user asks what a run cost, read the `cost` object off the extract response and fall back to `talonic_get_balance` if it is absent; for rates and historical spend, use `talonic_get_pricing` and `talonic_get_usage` rather than guessing.\",\n },\n {\n type: \"paragraph\",\n text: \"The `is_not_empty` operator is now available and checks the materialized values index, which updates within seconds of extraction completing. For batch-mode documents, materialization occurs after the batch poll cycle applies results.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"limitations-workarounds\",\n text: \"Workarounds summary\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Quick reference: limitation → workaround\",\n code: `// Schema required on talonic_extract\n// → Always pass schema (JSON Schema) or schema_id\n\n// is_not_empty checks materialized values (updated within seconds of extraction)\n\n// Drag-and-drop stalls on Claude.ai (hosted connector)\n// → Use file_url, document_id, or local stdio install\n\n// Numeric filter on string-typed field returns zero results\n// → Define numeric fields as type \"number\" in the schema\n\n// Filter on non-filterable field returns VALIDATION_ERROR\n// → Call talonic_search first, use fields where filterable: true`,\n },\n {\n type: \"paragraph\",\n text: \"When building agent workflows that will run unattended, design for these limitations explicitly. Check that every `talonic_extract` call includes a schema or schema_id. Validate filter field names against `talonic_search` results before constructing conditions. For file uploads in hosted connectors with size limits, prefer `file_url` or `document_id` over `file_data`. These defensive patterns ensure the agent handles edge cases gracefully instead of failing with cryptic errors.\",\n },\n {\n type: \"paragraph\",\n text: \"The Talonic team actively tracks these limitations and publishes fixes in minor version updates. Subscribe to the `@talonic/mcp` npm package changelog or watch the GitHub repository for release notes. Limitations that are resolved in newer versions are removed from this list. If you encounter a limitation not documented here, report it via GitHub issues with the MCP server version and a minimal reproduction case.\",\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"For predictable automated workflows, pin the fields with a `schema` or `schema_id`. When you don't yet know the fields, `auto_schema: true` (open capture) discovers them and returns a suggested schema you can save and reuse for stability.\",\n },\n ],\n related: [\n { label: \"Common Issues\", slug: \"common-issues\" },\n { label: \"talonic_extract\", slug: \"talonic-extract\" },\n { label: \"talonic_filter\", slug: \"talonic-filter\" },\n ],\n faq: [\n {\n question: \"What are the known limitations of Talonic MCP?\",\n answer:\n \"talonic_extract needs fields specified via schema, schema_id, or auto_schema: true (open capture). Filter requires filterable: true fields (use talonic_search first to discover them). Numeric filter operators require schema fields typed as number. Drag-and-drop file uploads in Claude.ai currently stall via the hosted MCP; use file_url or document_id instead, or use the local stdio install. The cost object on an extract response is header-derived, so it can be absent against older API deployments.\",\n },\n {\n question: \"Can I extract without knowing the fields up front (schema-less)?\",\n answer:\n \"Yes. Set auto_schema: true on talonic_extract for open capture: Talonic discovers the document's fields and returns a suggested schema alongside the data. Refine and save that schema with talonic_save_schema for stable, repeatable extraction. For predictable production workflows, providing an explicit schema or schema_id is still recommended.\",\n },\n {\n question: \"How do I check my credit balance or costs?\",\n answer:\n \"For a single extraction, read the cost object on the talonic_extract response: costCredits, costEur, and balanceCredits. For workspace-level figures, call talonic_get_balance for the remaining balance, talonic_get_pricing for per-unit rates, and talonic_get_usage for what has already been spent.\",\n },\n {\n question: \"How do I report a new limitation or bug?\",\n answer:\n \"Open an issue on the @talonic/mcp GitHub repository with the MCP server version (npx -y @talonic/mcp@latest --version), your MCP client name and version, and a minimal reproduction case. Include the full error message if applicable.\",\n },\n {\n question: \"How do I work around the Claude.ai drag-and-drop limitation?\",\n answer:\n \"Claude.ai's hosted connector truncates large tool-call arguments, which breaks base64 file uploads. Use file_url with a publicly reachable URL, upload the file via the Talonic dashboard and use document_id, or switch to a local stdio install (Claude Desktop, Cursor, Cline) which has no parameter size cap.\",\n },\n ],\n mentions: [\n \"limitations\",\n \"schema\",\n \"filterable\",\n \"is_not_empty\",\n \"drag-and-drop\",\n \"rate limits\",\n ],\n },\n {\n slug: \"upgrading\",\n parentSlug: \"troubleshooting\",\n title: \"Upgrading\",\n seoTitle: \"Upgrading the Talonic MCP Server from Older Versions\",\n description:\n \"Upgrade @talonic/mcp from versions before 0.1.3, where a silent-bin bug stopped the server from launching through the npm symlink that every MCP client uses.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Versions before `0.1.3` had a bug where the bundled MCP server bin would exit silently when launched via the npm bin symlink, which is exactly how every MCP client invokes it. If you see no `talonic_*` tools despite correct config, you are hitting that bug.\",\n },\n {\n type: \"paragraph\",\n text: \"The fix: point your `args` at `@latest` (or `@0.1.3` explicitly) and fully restart the client:\",\n },\n { type: \"code\", language: \"jsonc\", code: '\"args\": [\"-y\", \"@talonic/mcp@latest\"]' },\n {\n type: \"paragraph\",\n text: \"Using `@latest` is the recommended approach because it ensures you automatically receive new features, bug fixes, and improved tool descriptions on every client restart. If you need version stability for a production workflow, pin to a specific version like `@0.1.6` instead.\",\n },\n {\n type: \"paragraph\",\n text: \"After updating the `args` in your MCP client config, you must fully restart the client application. Simply starting a new conversation is not enough — the MCP server process must be terminated and re-spawned. On Claude Desktop, use Cmd+Q (macOS) or close from the system tray (Windows). On Cursor and VS Code-based clients, reload the window.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"upgrade-verify\",\n text: \"Verify the upgrade\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Check the installed version after upgrading\",\n code: `// In a terminal, verify the latest version installs:\n// npx -y @talonic/mcp@latest --version\n// Expected output: 0.1.6 (or the latest published version)\n\n// In your MCP client, verify tools are available:\n// Ask the agent: \"What version of Talonic MCP are you using?\"\n// Or call talonic_list_schemas — a successful response\n// confirms the server is running the updated version.`,\n },\n {\n type: \"paragraph\",\n text: \"When upgrading between minor versions, tool parameters and response shapes remain backward-compatible. New versions may add optional parameters to existing tools or introduce new tools, but they will not remove or change existing parameters. This means your existing agent workflows and saved schemas continue to work without modification after an upgrade.\",\n },\n {\n type: \"paragraph\",\n text: \"If you are running a pinned version and want to check whether a newer version is available, run `npm view @talonic/mcp version` in a terminal. This shows the latest published version on npm without installing it. Compare this against your pinned version to decide whether to upgrade. The changelog in the npm package description summarises what changed between versions.\",\n },\n {\n type: \"paragraph\",\n text: \"For teams with multiple developers using the Talonic MCP server, coordinate upgrades by updating the shared MCP config file or template. If different team members run different versions, tool descriptions and capabilities may vary, leading to inconsistent agent behaviour. Using `@latest` for all team members ensures everyone has the same tools and avoids version-related debugging sessions.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"If you are using the hosted server at `mcp.talonic.com`, upgrades are automatic. You do not need to change any configuration — the hosted server always runs the latest version.\",\n },\n ],\n related: [\n { label: \"Install Overview\", slug: \"install-overview\" },\n { label: \"Common Issues\", slug: \"common-issues\" },\n ],\n faq: [\n {\n question: \"How do I upgrade the Talonic MCP server?\",\n answer:\n 'Set args to [\"-y\", \"@talonic/mcp@latest\"] in your MCP client config and fully restart the client. Versions before 0.1.3 had a silent-bin bug that prevented the server from booting.',\n },\n {\n question: \"Do I need to upgrade if I use the hosted server?\",\n answer:\n \"No. The hosted server at mcp.talonic.com is automatically updated to the latest version. No configuration changes are needed on your end.\",\n },\n {\n question: \"Should I pin to a specific version or use @latest?\",\n answer:\n \"Use @latest for development and most use cases — it picks up fixes automatically. Pin to a specific version (e.g., @0.1.6) only if you need strict version stability in production workflows.\",\n },\n {\n question: \"Are upgrades backward-compatible?\",\n answer:\n \"Yes. Minor version upgrades maintain backward compatibility — existing tool parameters and response shapes are preserved. New versions may add optional parameters or new tools, but will not break existing workflows, schemas, or agent integrations.\",\n },\n {\n question: \"How do I check if a newer version is available?\",\n answer:\n \"Run npm view @talonic/mcp version in a terminal to see the latest published version on npm. Compare against your pinned version or run npx -y @talonic/mcp@latest --version to see what @latest resolves to.\",\n },\n ],\n mentions: [\"upgrade\", \"silent-bin bug\", \"0.1.3\", \"@latest\"],\n },\n]\n","// ---------------------------------------------------------------------------\n// Structured content export for @talonic/mcp documentation.\n//\n// ⚠ This module is the source-of-truth for talonic.com/docs/mcp/* pages.\n// The website's <McpContentPage> calls getMcpSection(slug) at render time.\n// docs/sections.json in this repo is a SEPARATE surface that feeds the\n// SDK/API/Platform doc pages on the website, NOT the MCP doc pages.\n// Full architecture, \"add a new tool\" checklist, and failure modes:\n// docs/architecture/docs-pipeline.md\n//\n// Usage:\n// import { getMcpSection, getAllMcpSections, MCP_NAV_SECTIONS } from '@talonic/mcp/content'\n// ---------------------------------------------------------------------------\n\nexport type { DocBlock, DocSection, RawSection, Param, HttpMethod, NavSection } from \"./types\"\n\nexport { MCP_NAV_SECTIONS } from \"./seo\"\n\nimport type { DocSection, RawSection } from \"./types\"\nimport { deriveBreadcrumbs, derivePrevNext } from \"./helpers\"\nimport { MCP_NAV_SECTIONS } from \"./seo\"\n\n// --- Section imports ---\nimport { sections as overview } from \"./sections/overview\"\nimport { sections as install } from \"./sections/install\"\nimport { sections as tools } from \"./sections/tools\"\nimport { sections as processes } from \"./sections/processes\"\nimport { sections as toolGroups } from \"./sections/tool-groups\"\nimport { sections as features } from \"./sections/features\"\nimport { sections as configuration } from \"./sections/configuration\"\nimport { sections as troubleshooting } from \"./sections/troubleshooting\"\n\n// ---------------------------------------------------------------------------\n// Registry\n// ---------------------------------------------------------------------------\n\nconst ALL_RAW: RawSection[] = [\n ...overview,\n ...install,\n ...tools,\n ...processes,\n ...toolGroups,\n ...features,\n ...configuration,\n ...troubleshooting,\n]\n\n// ---------------------------------------------------------------------------\n// Enrichment\n// ---------------------------------------------------------------------------\n\nfunction enrich(raw: RawSection[]): DocSection[] {\n return raw.map((r) => {\n const { prev, next } = derivePrevNext(MCP_NAV_SECTIONS, r.slug)\n return {\n ...r,\n breadcrumbs: deriveBreadcrumbs(MCP_NAV_SECTIONS, r.slug),\n prev,\n next,\n }\n })\n}\n\nlet _sections: DocSection[] | null = null\n\nfunction getSectionsAll(): DocSection[] {\n if (!_sections) {\n _sections = enrich(ALL_RAW)\n }\n return _sections\n}\n\n// ---------------------------------------------------------------------------\n// Public API\n// ---------------------------------------------------------------------------\n\n/** Get a single MCP section by slug, or null if not found. */\nexport function getMcpSection(slug: string): DocSection | null {\n return getSectionsAll().find((s) => s.slug === slug) ?? null\n}\n\n/** Get all MCP sections in reading order. */\nexport function getAllMcpSections(): DocSection[] {\n return getSectionsAll()\n}\n"]}
1
+ {"version":3,"sources":["../src/content/generated/tool-registry.ts","../src/content/tool-pages.ts","../src/content/sections/apps.ts","../src/content/sections/groups/data-management.ts","../src/content/sections/groups/events.ts","../src/content/sections/groups/aggregate.ts","../src/content/sections/groups/admin.ts","../src/content/sections/groups/contract-desk.ts","../src/content/sections/groups/transport-folders.ts","../src/content/sections/groups/compliance.ts","../src/content/sections/groups/money-found.ts","../src/content/sections/groups/customs-declaration.ts","../src/content/sections/tool-groups.ts","../src/content/routes.ts","../src/content/sections/tool-reference.ts","../src/content/sections/tools-by-task.ts","../src/content/seo.ts","../src/content/sections/connect.ts","../src/content/helpers.ts","../src/content/sections/overview.ts","../src/content/sections/configuration.ts","../src/content/sections/files.ts","../src/content/sections/recipes.ts","../src/content/sections/advanced.ts","../src/content/sections/troubleshooting.ts","../src/content/index.ts"],"names":["section","params","tool","sections"],"mappings":";AAMO,IAAM,aAAA,GAAgC;AAAA,EAC3C;AAAA,IACE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AAA,EAAiC;AAC7D,EAAA,OAAO,cAAA,GAAiB,IAAA,CAAK,CAAC,MAAM,CAAA,CAAE,IAAA,KAAS,IAAI,CAAA,IAAK,IAAA;AAC1D;AAGO,SAAS,iBAAA,GAAkC;AAChD,EAAA,OAAO,cAAA,EAAe;AACxB","file":"content.js","sourcesContent":["// GENERATED by scripts/gen-docs.mjs from a real tools/list. Do not edit by hand:\n// change the tool in src/tools/ and run `npm run docs:gen`.\n// tests/content/generated-docs.test.ts fails when this file is stale.\n\nimport type { RegistryTool } from \"../tool-reference-types\"\n\nexport const TOOL_REGISTRY: RegistryTool[] = [\n {\n \"name\": \"talonic_list_schemas\",\n \"group\": \"core\",\n \"title\": \"List saved schemas\",\n \"description\": \"List the saved schemas in the workspace as compact summaries (id, short_id, name, description, version, field_count).\\n\\nUSE WHEN: 'what schemas do I have', or to find a reusable schema before extracting.\\nNOT FOR: a one-off extraction with an inline schema (call talonic_extract directly). Not a warm-up before answering a question about the documents: call talonic_ask for that.\\nARGS: none.\\nRETURNS: data[] of schema summaries. Field definitions are omitted here; call talonic_get_schema with an id to see a schema's fields. Pass a schema's id/short_id to talonic_extract as `schema_id`.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": []\n },\n {\n \"name\": \"talonic_get_schema\",\n \"group\": \"core\",\n \"title\": \"Read a schema's fields\",\n \"description\": \"Get one saved schema with its full field definition (field names, types, descriptions).\\n\\nUSE WHEN: the user asks what a saved schema extracts, or before extracting with a schema_id to know which fields will come back.\\nNOT FOR: listing schemas (talonic_list_schemas) or creating one (talonic_save_schema).\\nARGS: schema_id (the id or short_id from talonic_list_schemas).\\nRETURNS: the schema with `definition` (JSON Schema of the fields), version and timestamps.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"schema_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Schema id (UUID) or short_id (SCH-XXXXXXXX) from talonic_list_schemas.\"\n }\n ]\n },\n {\n \"name\": \"talonic_save_schema\",\n \"group\": \"core\",\n \"title\": \"Save a schema\",\n \"description\": \"Save a reusable schema to the workspace for use across future extractions.\\n\\nUSE WHEN: the user confirms a schema/template they want to reuse across documents.\\nNOT FOR: a single one-off extraction (pass the schema inline to talonic_extract instead).\\nARGS: `name`; `definition` — a JSON Schema ({type:'object',properties:{...}}) or a flat {field:'type'} map.\\nRETURNS: the saved schema with id and short_id. Pass either to talonic_extract as `schema_id`.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"name\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Human-readable name for the schema, e.g. 'Standard Invoice'.\"\n },\n {\n \"name\": \"definition\",\n \"type\": \"object\",\n \"required\": true,\n \"description\": \"Schema definition. Most reliable: full JSON Schema {type:'object', properties:{...}}. Also accepted: a flat key-type map {field_name:'string', amount:'number'} which the API normalises.\"\n },\n {\n \"name\": \"description\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Optional description of what this schema extracts and when to use it.\"\n }\n ]\n },\n {\n \"name\": \"talonic_get_document\",\n \"group\": \"core\",\n \"title\": \"Look up a document\",\n \"description\": \"Fetch a single document's metadata and processing status from the workspace.\\n\\nUSE WHEN: 'tell me about document X', or to poll status after talonic_request_upload until the file is ready.\\nNOT FOR: full text (use talonic_to_markdown) · extracted fields (use talonic_extract).\\nBY NAME: if the user names a file, call talonic_search first to get its document_id, then call this.\\nARGS: document_id.\\nRETURNS: filename, pages, type_detected, language, and `status`. Status lifecycle: pending_upload -> uploading -> queued -> extracting -> completed. Wait for `completed` before calling talonic_extract on a freshly uploaded doc. Terminal failure statuses: ocr_failed, extraction_failed, error — stop polling and report the failure to the user if any of these appear. To read the document's text, call talonic_to_markdown with this id.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"document_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"The Talonic document ID. Get this from a previous talonic_extract or talonic_search response.\"\n }\n ]\n },\n {\n \"name\": \"talonic_search\",\n \"group\": \"core\",\n \"title\": \"Search documents\",\n \"description\": \"Find documents, fields, schemas, or sources in the workspace. One call returns ranked results across all types.\\n\\nMATCHING IS LITERAL KEYWORD, not semantic. Query with ONE short SINGULAR term or an exact filename: 'invoice', 'bank statement', 'sample-invoice.pdf'. Sentences ('documents related to invoices') and plurals ('invoices') return empty. If a search comes back empty, retry with a shorter singular keyword before concluding the workspace has nothing.\\nUSE WHEN: the user names or describes a document without an id, or you need a document_id or a filterable field name before extract / to_markdown / get_document / filter.\\nNOT FOR: structured field-value filters like 'amount > 1000' (use talonic_filter).\\nARGS: query (short literal keyword); optional limit.\\nRETURNS: documents[], fields[]/fieldMatches[] (only `filterable: true` entries work in talonic_filter), schemas[], sources[]. Use the id from documents[] to act on a named file.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"query\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"ONE short, SINGULAR keyword or an exact filename — 'invoice', 'insurance certificate', 'sample-invoice.pdf'. Matching is literal: sentences and plurals return empty.\"\n },\n {\n \"name\": \"limit\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Maximum results per entity type. Default: 5. Increase for broader exploration.\",\n \"maximum\": 9007199254740991\n }\n ]\n },\n {\n \"name\": \"talonic_filter\",\n \"group\": \"core\",\n \"title\": \"Filter documents\",\n \"description\": \"Find documents by their extracted field VALUES using composable conditions (e.g. 'invoices where total > 1000').\\n\\nUSE WHEN: value-based criteria on extracted fields — numeric/date/text comparisons or presence checks.\\nNOT FOR: free-text / concept search (use talonic_search) · a single document by id (use talonic_get_document).\\nARGS: conditions[] (AND-ed). Each = EXACTLY ONE of `field` (canonical name) or `field_id` (UUID), an `operator`, and usually a `value`. Operators: eq, neq, gt, gte, lt, lte, between (needs `value` AND `value_to`), contains, is_empty / is_not_empty (no value). `value`/`value_to` are string|number|boolean matching the field type (ISO YYYY-MM-DD for dates).\\nTEXT FILTERS: for eq/contains/is_not_empty on a text field, just TRY a natural field name ('currency', 'vendor_name') — names resolve server-side and an unresolved field surfaces in warnings[] rather than erroring. Do NOT block on discovering the field first; search-first is only required for numeric operators.\\nNUMERIC GUARD: gt/gte/lt/lte/between only work when the field's dataType is 'number'. Call talonic_search first and check dataType; a numeric op on a string field returns zero matches. If the response has `warnings[]`, surface them to the user — do not silently retry.\\nRETURNS: data[] (matching documents with field values), total, warnings[].\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"conditions\",\n \"type\": \"object[]\",\n \"required\": true,\n \"description\": \"One or more filter conditions, AND-ed together.\"\n },\n {\n \"name\": \"search\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Optional free-text search applied alongside the filters.\"\n },\n {\n \"name\": \"sort\",\n \"type\": \"object\",\n \"required\": false,\n \"description\": \"Optional sort by a field.\"\n },\n {\n \"name\": \"page\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Page number for pagination.\",\n \"maximum\": 9007199254740991\n },\n {\n \"name\": \"limit\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Results per page. Default 50 server-side.\",\n \"maximum\": 9007199254740991\n },\n {\n \"name\": \"source_connection_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Optionally scope to a specific source connection.\"\n }\n ]\n },\n {\n \"name\": \"talonic_to_markdown\",\n \"group\": \"core\",\n \"title\": \"Read document text\",\n \"description\": \"Get the full text of a document as markdown, including scanned pages.\\n\\nUSE WHEN: the user wants the full text — 'what does it say', summarise, or translate a document.\\nNOT FOR: specific structured fields (use talonic_extract with a schema).\\nBY NAME: if the user names a file, call talonic_search first to get its document_id, then call this.\\nARGS: prefer `document_id` (a workspace doc — one cheap call). Otherwise `file_url`, or `file_data`+`filename` for small local files — provide exactly one. A file input ingests the document first and consumes credits; `document_id` does not.\\nRETURNS: document_id and markdown (the full text).\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": true,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"document_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"The Talonic document id whose markdown you want. Get this from a previous talonic_extract or talonic_search response.\"\n },\n {\n \"name\": \"file_data\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Base64-encoded file bytes. Recommended path when the agent already has the file in memory (e.g., the user attached a PDF to the conversation). Pair with `filename` so MIME type can be inferred.\"\n },\n {\n \"name\": \"filename\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Original filename including extension, e.g. 'invoice.pdf'. Used to infer MIME type when uploading via `file_data`. Required when `file_data` is provided.\"\n },\n {\n \"name\": \"file_path\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Local path to a document file. Only works if the MCP server has read access to that path. In sandboxed chat clients (Claude Desktop, Cowork) use `file_data` instead.\"\n },\n {\n \"name\": \"file_url\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"URL to a document file. The Talonic API fetches it server-side.\"\n }\n ]\n },\n {\n \"name\": \"talonic_extract\",\n \"group\": \"core\",\n \"title\": \"Extract data\",\n \"description\": \"Extract structured, schema-validated JSON from a document: PDF, scan, image, DOCX, email, or photo. Returns the requested fields with per-field confidence scores and, with include_provenance, the page and source text each value came from.\\n\\nUSE WHEN: the user asks to extract data from a document, turn a PDF into JSON, pull fields from a file, or parse a scan / form / statement / receipt / report, for common (invoice, contract) or unusual document types.\\nNOT FOR: full plain text (use talonic_to_markdown) · finding documents (use talonic_search / talonic_filter).\\nBY NAME: if the user names a file, call talonic_search first to get its document_id, then call this.\\nARGS: define the fields you want with inline `schema` (JSON Schema, e.g. {type:'object',properties:{vendor_name:{type:'string'}}}) OR a saved `schema_id`, not both. Don't know the fields yet? Set `auto_schema:true` to let Talonic discover them (open capture) and return a suggested schema you can refine. Provide EXACTLY ONE document source: `document_id` (cheapest, a workspace doc), `file_url` (public URL), or `file_data`+`filename` (small local files only).\\nCOST: each call uses credits; talonic_get_balance shows the remaining balance.\\nRETURNS: data (the JSON), confidence.overall and confidence.fields (treat <0.7 as needs review), provenance per field when include_provenance is set, document metadata, extraction_id.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": true,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"file_data\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Base64-encoded file bytes. Recommended path when the agent already has the file in memory (e.g., the user attached a PDF to the conversation). Pair with `filename` so MIME type can be inferred. Works regardless of where the file lives on disk.\"\n },\n {\n \"name\": \"filename\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Original filename including extension, e.g. 'invoice.pdf'. Used to infer MIME type when uploading via `file_data`. Required when `file_data` is provided.\"\n },\n {\n \"name\": \"file_path\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Local path to a document file. Local (stdio) installs only; the hosted server refuses it. Only works if the MCP server has read access to that path. In sandboxed chat clients (Claude Desktop, Cowork) where uploads land in a host-owned directory, use `file_data` instead.\"\n },\n {\n \"name\": \"file_url\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"URL to a document file. The Talonic API fetches it server-side. Use this for documents already on the public web.\"\n },\n {\n \"name\": \"document_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"ID of a document already in the workspace, to re-extract with a new schema.\"\n },\n {\n \"name\": \"schema\",\n \"type\": \"object\",\n \"required\": false,\n \"description\": \"Inline schema definition. REQUIRED unless `schema_id` is provided. Recommended: full JSON Schema {type:'object', properties:{...}}. Also accepted: flat key-type map {field_name:'string', amount:'number'}. Mutually exclusive with `schema_id`.\"\n },\n {\n \"name\": \"schema_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"ID of a saved schema. REQUIRED unless `schema` is provided. Accepts UUID or SCH-XXXXXXXX short id from talonic_list_schemas. Mutually exclusive with `schema`.\"\n },\n {\n \"name\": \"auto_schema\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"Open capture: when true, extract WITHOUT providing a schema — Talonic discovers the document's fields and returns them plus a suggested schema you can refine and reuse. Use this when you don't yet know the fields. Mutually exclusive with `schema` and `schema_id`.\"\n },\n {\n \"name\": \"instructions\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Natural-language guidance for the extractor, e.g. 'Focus on the billing section. Amounts are in EUR.'\"\n },\n {\n \"name\": \"include_markdown\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"Also return the document's full text as markdown, alongside the fields.\"\n },\n {\n \"name\": \"include_provenance\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"Include per-field provenance (source_text, section, page) showing where each value was found in the document.\"\n }\n ]\n },\n {\n \"name\": \"talonic_get_balance\",\n \"group\": \"core\",\n \"title\": \"Check credit balance\",\n \"description\": \"Read the workspace's Talonic credit balance, EUR value, tier, 30-day burn, and projected runway.\\n\\nUSE WHEN: the user asks about credits/budget, or before a large batch when you want to confirm headroom.\\nNOT FOR: the per-call cost of a single extraction (that is on the talonic_extract response).\\nARGS: none.\\nRETURNS: balance_credits, balance_eur, tier, burn_rate_30d_credits, projected_runway_days (-1 = no recent usage), tier_resets_at.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": []\n },\n {\n \"name\": \"talonic_get_pricing\",\n \"group\": \"core\",\n \"title\": \"Check pricing\",\n \"description\": \"Read Talonic's machine-readable credit pricing catalog: fixed per-unit rates so you can predict spend BEFORE running anything.\\n\\nUSE WHEN: estimating the cost of planned work (reading documents, extracting fields, matching records), or answering a pricing question. Public — works without spending credits.\\nNOT FOR: the workspace's current balance (use talonic_get_balance) or what it has already spent (use talonic_get_usage).\\nARGS: none.\\nRETURNS: currency, credits_per_eur, multipliers (e.g. batch 0.5x), and units[] — each { unit, label, credits, eur, free }.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": []\n },\n {\n \"name\": \"talonic_get_usage\",\n \"group\": \"core\",\n \"title\": \"Check credit usage\",\n \"description\": \"Read the workspace's per-function credit consumption over a trailing window: where the credits actually went.\\n\\nUSE WHEN: the user asks what they have spent credits on, or you want to see which kind of work (reading documents, structuring data, answering questions) takes most of the credits.\\nNOT FOR: the remaining balance (use talonic_get_balance) or per-unit rates (use talonic_get_pricing).\\nARGS: days (optional, default 30, clamped 1-365).\\nRETURNS: period_days, total_credits, and by_function[] — each { operation_type, operations, credits }, highest spend first.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"days\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Trailing window in days (default 30).\",\n \"minimum\": 1,\n \"maximum\": 365\n }\n ]\n },\n {\n \"name\": \"talonic_request_upload\",\n \"group\": \"core\",\n \"title\": \"Get an upload link\",\n \"description\": \"Get a browser upload link the user opens to add a file to their workspace. Returns the link plus a pre-allocated document_id.\\n\\nUSE WHEN: the user wants to upload a document and you cannot pass it directly: the client cannot attach file bytes to a tool call, or the file is too large for tool-call arguments.\\nNOT FOR: a document already in the workspace (use its document_id) · a file already on a public URL (use file_url on talonic_extract).\\nARGS: filename (with extension); optional account (company name or id from talonic_list_accounts) so the file stays with that company; optional add_to_workspace (true = process it fully into workspace data for later questions and SQL; default false = text only, for a following talonic_extract).\\nRETURNS: upload_url, document_id, expires_at. After the user uploads, poll talonic_get_document on that document_id until status is 'completed' (or 'extracted' when add_to_workspace is false), then call talonic_extract if you need fields. If status becomes ocr_failed, extraction_failed, or error, stop polling and report the failure to the user.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"filename\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"The name of the file being uploaded, including extension (e.g. 'invoice.pdf'). Used to pre-allocate the document and infer MIME type.\"\n },\n {\n \"name\": \"account\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Company (account) the file belongs to: its name, alias or id. See talonic_list_accounts / talonic_create_account.\"\n },\n {\n \"name\": \"add_to_workspace\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"true: process fully so the file becomes workspace data (questions, SQL, registry). false (default): text only, for a one-off talonic_extract.\"\n }\n ]\n },\n {\n \"name\": \"talonic_list_accounts\",\n \"group\": \"core\",\n \"title\": \"List companies\",\n \"description\": \"List the workspace's accounts: the companies (portfolio companies, clients, entities) whose documents it keeps apart.\\n\\nUSE WHEN: before uploading a company's files (pass its name as `account` on talonic_request_upload), or to see which companies exist.\\nNOT FOR: listing documents (talonic_search / talonic_filter) · creating an account (talonic_create_account). Not a warm-up before answering a question about the documents: call talonic_ask for that.\\nARGS: none.\\nRETURNS: data[] of { id, name, aliases[], description, created_at }.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": []\n },\n {\n \"name\": \"talonic_create_account\",\n \"group\": \"core\",\n \"title\": \"Add a company\",\n \"description\": \"Create an account: a company whose documents the workspace keeps apart, so answers about it never mix in another company's files.\\n\\nUSE WHEN: the user is about to add files for a company that talonic_list_accounts does not show yet.\\nNOT FOR: tagging single documents · a company that already exists (reuse its name).\\nARGS: name; optional aliases[] (other names it appears under, e.g. its legal name), description.\\nRETURNS: { id, name, aliases[], description, created_at }. 409 when the name is taken.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"name\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Company name, e.g. 'Filu'.\"\n },\n {\n \"name\": \"aliases\",\n \"type\": \"string[]\",\n \"required\": false,\n \"description\": \"Other names, e.g. ['Filu Group GmbH'].\"\n },\n {\n \"name\": \"description\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Optional description.\"\n }\n ]\n },\n {\n \"name\": \"talonic_list_fields\",\n \"group\": \"core\",\n \"title\": \"List fields\",\n \"description\": \"List the fields your workspace's documents carry (vendor name, invoice total, notice period …), each with a stable id, how established it is (maturity), data type, synonyms and how often it occurs.\\n\\nUSE WHEN: you need to know WHAT data exists before querying it, want to pick the right concept for a question, or need the exact field id for talonic_get_field / talonic_field_values.\\nNOT FOR: locating a specific document (talonic_search) or filtering documents by a value (talonic_filter). Not a warm-up before answering a question about the documents: call talonic_ask for that. Many fields are one-off candidates; pass maturity core or proven unless the user asks for candidates.\\n\\nARGS: `search` (case-insensitive contains on name), `maturity` (core | proven | candidate — prefer `core`/`proven` for anything you will build on), `include_superseded` (default false: fields merged into another are hidden so you never see two ids for one field), `limit`, `cursor`.\\nRETURNS: data[] of { id, canonical_name, display_name, data_type, maturity, tier, synonyms, description, occurrence_count, superseded_by, links } plus cursor pagination.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"search\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Case-insensitive contains match on canonical_name / display_name.\"\n },\n {\n \"name\": \"maturity\",\n \"type\": \"\\\"core\\\" | \\\"proven\\\" | \\\"candidate\\\"\",\n \"required\": false,\n \"description\": \"Filter by maturity: `core` (established and trusted, safe to build on), `proven` (recurring, stable id), `candidate` (seen recently, may still be merged or renamed).\",\n \"enum\": [\n \"core\",\n \"proven\",\n \"candidate\"\n ]\n },\n {\n \"name\": \"include_superseded\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"Include fields merged into another one (they carry `superseded_by`). Default false.\"\n },\n {\n \"name\": \"limit\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Page size (default 20, max 100).\",\n \"minimum\": 1,\n \"maximum\": 100\n },\n {\n \"name\": \"cursor\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Opaque cursor from pagination.next_cursor.\"\n }\n ]\n },\n {\n \"name\": \"talonic_get_field\",\n \"group\": \"core\",\n \"title\": \"Look up a field\",\n \"description\": \"Describe one field: what it means, its synonyms and other names, maturity, where it occurs (document and occurrence counts, first and last seen, which document types), its values (top values with counts, distinct count, examples), which schemas use it, and the fields merged into it (superseded_by).\\n\\nUSE WHEN: you must decide whether a field is the right one for a question, need example values or the value shape before writing a filter, or hold a field NAME from the user and need the field behind it.\\nNOT FOR: listing many fields (talonic_list_fields) or reading every value (talonic_field_values).\\n\\nARGS: exactly one of `field_id` or `name`. A name is matched against field names, other spellings and synonyms and followed to the current field; `resolution` says how it matched. `include_history: true` adds the field's history (merges, renames, maturity changes).\\nRETURNS: the card { id, canonical_name, maturity, data_type, definition, identity, occurrence, values, usage, links } plus `resolution` when a name was given and `history` when requested.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"field_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Field UUID (from talonic_list_fields / talonic_search).\"\n },\n {\n \"name\": \"name\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Field NAME instead of an id — matched against the field's name, other spellings and synonyms, including fields that were merged into it. Use the user's wording ('Invoice No', 'Vertragsnummer').\"\n },\n {\n \"name\": \"include_history\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"Add the field's history (maturity changes, merges, renames), newest first.\"\n }\n ]\n },\n {\n \"name\": \"talonic_field_values\",\n \"group\": \"core\",\n \"title\": \"Read a field's values\",\n \"description\": \"Read a field's CURRENT VALUES across documents, with evidence: one row per value, with the document id, filename and type, the value, its confidence, the label it appeared under in the document, the exact source text, and how the label was matched to this field (`resolved_by`).\\n\\nUSE WHEN: the user asks 'what are all the X across my documents', you need to tabulate or total one field across all documents, or you want the evidence (source text + document) behind a value.\\nNOT FOR: multi-field row-shaped queries over documents (talonic_filter) or one document's full field set (talonic_get_document).\\n\\nARGS: exactly one of `field_id` or `name`; optional `document_id` (one document), `value` (case-insensitive contains filter), `limit` (max 100), `cursor`.\\nRETURNS: { field_id, canonical_name, concept_ids, data[] of { occurrence_id, document_id, document_filename, value, confidence, provenance{ raw_field_name, source_text, resolved_by, needs_confirmation, via_redirect }, links }, pagination }. Only rows from documents the caller may see are returned.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"field_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Field UUID (from talonic_list_fields / talonic_search).\"\n },\n {\n \"name\": \"name\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Field NAME instead of an id — matched against the field's name, other spellings and synonyms, including fields that were merged into it. Use the user's wording ('Invoice No', 'Vertragsnummer').\"\n },\n {\n \"name\": \"document_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Only occurrences on this document.\"\n },\n {\n \"name\": \"value\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Case-insensitive contains filter on the value text.\"\n },\n {\n \"name\": \"limit\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Page size (default 20, max 100).\",\n \"minimum\": 1,\n \"maximum\": 100\n },\n {\n \"name\": \"cursor\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Opaque cursor from pagination.next_cursor.\"\n }\n ]\n },\n {\n \"name\": \"talonic_find_data\",\n \"group\": \"core\",\n \"title\": \"Find where data lives\",\n \"description\": \"Find where the data behind a concept lives before querying anything: turns a phrase ('payment volume per transaction', 'counterparty', 'Vertragslaufzeit') into the fields, values, documents and text passages that carry it, matching what it means as well as its words, even when the field has a different name.\\n\\nUSE WHEN: the user asks about a concept and you are not sure which field holds it, when talonic_list_fields / talonic_search came back empty or ambiguous, or when the answer may sit in a document's text rather than in a field. Pass `account` whenever the question names one portfolio company (an account from talonic_list_accounts), so another company's figures cannot come back.\\nNOT FOR: reading a known field's values (talonic_field_values) or filtering by a known field (talonic_filter).\\n\\nARGS: `query` (the concept, in the user's words), optional `concepts[]` (several concepts resolved to fields in one call; fields only, no text search), `top_k` (1–25, default 10), `document_ids` (hard scope), `account` (one account by name or alias, e.g. 'Filu'; narrows like document_ids; an unknown name returns an error listing the accounts).\\nRETURNS: four ranked groups — FIELDS (canonical_name, field ids/keys, maturity, occurrence_count, sample values with their documents), VALUES, DOCUMENTS and PASSAGES — every item ready to pass to the next call. Read-only.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"query\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"The natural-language concept to locate.\"\n },\n {\n \"name\": \"concepts\",\n \"type\": \"string[]\",\n \"required\": false,\n \"description\": \"Several concepts resolved to fields in one call (fields only, no text search).\"\n },\n {\n \"name\": \"top_k\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Max results per group (default 10).\",\n \"minimum\": 1,\n \"maximum\": 25\n },\n {\n \"name\": \"document_ids\",\n \"type\": \"string[]\",\n \"required\": false,\n \"description\": \"Restrict to these document ids (hard filter, enforced server-side).\"\n },\n {\n \"name\": \"account\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Only the documents of this account (portfolio company), by name or alias, e.g. 'Filu'.\"\n }\n ]\n },\n {\n \"name\": \"talonic_list_agent_tools\",\n \"group\": \"core\",\n \"title\": \"List data tools\",\n \"description\": \"List Talonic's data tools: read-only look-ups and queries over the workspace (find_data, describe_data, query_data for a read-only SQL query over the extracted data, get_document_markdown, workspace_overview, …), each with its input schema and whether THIS credential may call it.\\nTarget API: https://talonic.com/docs/api (GET /v1/agent/tools).\\n\\nUSE WHEN: you want a capability talonic_* tools do not cover directly (e.g. SQL over the structured data, a workspace overview, cohort discovery) — list here, then call talonic_invoke_agent_tool with the tool name and its args.\\nNOT FOR: answering the user's question about their documents — call talonic_ask, which answers in one call with citations. Also not for discovering fields (talonic_find_data) or documents (talonic_search).\\n\\nARGS: `only_invocable` (default true — hide tools this credential cannot run), `include_schemas` (default true — include each tool's JSON input schema).\\nRETURNS: { tools[] of { name, description, impact, capability, can_invoke, input_schema? }, invocable_count, totalCount }. Data tools that already have their own talonic_* tool (find_data) are left out; call the dedicated tool.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": true,\n \"params\": [\n {\n \"name\": \"only_invocable\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"Hide tools this credential cannot invoke. Default true.\"\n },\n {\n \"name\": \"include_schemas\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"Include each tool's JSON input schema. Default true.\"\n }\n ]\n },\n {\n \"name\": \"talonic_invoke_agent_tool\",\n \"group\": \"core\",\n \"title\": \"Query workspace data\",\n \"description\": \"Run ONE named data tool directly and get its exact output (e.g. `query_data` for a read-only SQL SELECT over the extracted data, `describe_data` for the queryable field list, `get_document_markdown` to read a document's text).\\nREAD-ONLY FOR EVERY CREDENTIAL: the platform runs each caller of this route, API key or OAuth session alike, as its least-privilege viewer role, which grants only the read-only data tools (capability `data.read`). Tools that write are never invocable here, however you connected, so this tool reads and never changes workspace data.\\nTarget API: Talonic data tools — https://talonic.com/docs/api (POST /v1/agent/tools/{name}/invoke; input schemas from talonic_list_agent_tools).\\n\\nUSE WHEN: talonic_list_agent_tools showed a tool with can_invoke: true that does what you need. Pass exactly the `args` its input_schema declares.\\nNOT FOR: answering a question about the documents (talonic_ask returns one cited answer). Use this only for a query the user asked for, or when talonic_ask could not answer.\\n\\nARGS: `name` (tool name), `args` (object matching the tool's input_schema), optional `document_ids` (hard scope for scope-aware tools).\\nRETURNS: { tool, result (the tool's parsed output), citations?, artifacts?, cards? }. Denied capabilities come back as an error naming the capability required; the platform re-checks every call.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": true,\n \"params\": [\n {\n \"name\": \"name\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Tool name from talonic_list_agent_tools, e.g. `query_data`.\"\n },\n {\n \"name\": \"args\",\n \"type\": \"object\",\n \"required\": false,\n \"description\": \"Arguments matching the tool's input_schema.\"\n },\n {\n \"name\": \"document_ids\",\n \"type\": \"string[]\",\n \"required\": false,\n \"description\": \"Restrict to these document ids (hard filter, enforced server-side).\"\n }\n ]\n },\n {\n \"name\": \"talonic_list_specs\",\n \"group\": \"core\",\n \"title\": \"List Specs\",\n \"description\": \"List the workspace's Specs. A Spec is a saved way of reading one kind of document: the fields it produces and the steps (reading, checks, look-ups, reviews) that fill them; talonic_run_spec runs it over documents. Each row: id, name, description, schema_id (the schema the run's output rows follow — a DIFFERENT id from the Spec's), version / materialized_version (the published version runs use; null = never published), field_count, node_count, timestamps.\\n\\nUSE WHEN: the user wants to run 'their invoice Spec' / 'our contract set-up', or you need a spec_id for talonic_run_spec / talonic_get_spec.\\nNOT FOR: ad-hoc extraction schemas (talonic_list_schemas) or discovering fields (talonic_list_fields). Not a warm-up before answering a question about the documents: call talonic_ask for that.\\nARGS: optional `search` (name contains, case-insensitive), `limit` (1–100, default 20), `cursor` (from pagination.next_cursor), `order` (asc|desc by updated_at).\\nRETURNS: { data[] of { id, name, description, schema_id, version, materialized_version, materialized_at, field_count, node_count, created_at, updated_at, links }, pagination { total, limit, has_more, next_cursor } }.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"search\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Case-insensitive contains match on the Spec name.\"\n },\n {\n \"name\": \"limit\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Page size (default 20).\",\n \"minimum\": 1,\n \"maximum\": 100\n },\n {\n \"name\": \"cursor\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Opaque cursor from pagination.next_cursor.\"\n },\n {\n \"name\": \"order\",\n \"type\": \"\\\"asc\\\" | \\\"desc\\\"\",\n \"required\": false,\n \"description\": \"Sort by updated_at (default desc).\",\n \"enum\": [\n \"asc\",\n \"desc\"\n ]\n }\n ]\n },\n {\n \"name\": \"talonic_get_spec\",\n \"group\": \"core\",\n \"title\": \"Look up a Spec\",\n \"description\": \"Get one Spec's structure: identity and version state, the schema its output rows follow, `nodes[]` (the steps as the user set them up, in editing order), `phases[]` (the same steps in the order a run carries them out; one check can appear more than once, so the two lists can differ), and `fields[]` (Spec field ↔ schema field).\\n\\nUSE WHEN: you need to explain what a run will do, confirm a Spec is published (`version` non-null) before talonic_run_spec, or map field names to keys.\\nNOT FOR: listing Specs (talonic_list_specs) or starting a run (talonic_run_spec).\\nARGS: `spec_id` (UUID from talonic_list_specs); optional `include_versions` (adds `versions[]` — published versions newest first, each { version, content_hash, created_at, is_materialized }).\\nRETURNS: the Spec object { id, name, description, schema_id, version, materialized_version, materialized_at, field_count, node_count, schema, nodes[], phases[], fields[], links } plus optional versions[].\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"spec_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Spec UUID (from talonic_list_specs).\"\n },\n {\n \"name\": \"include_versions\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"Also fetch the published versions list (adds `versions[]`).\"\n }\n ]\n },\n {\n \"name\": \"talonic_run_spec\",\n \"group\": \"core\",\n \"title\": \"Run a Spec\",\n \"description\": \"Run one of the workspace's Specs over documents, in one call, and get one structured row per document. Two inputs: `document_ids` (documents already in the workspace; for a new file, first talonic_request_upload → poll talonic_get_document until completed) OR `file_urls` (public https files, max 20; Talonic fetches and reads them first). Consumes credits.\\n\\nUSE WHEN: the user wants to 'run the invoice Spec on these documents', process files through their Spec, or produce the Spec's structured rows.\\nNOT FOR: one-off extraction with an ad-hoc schema (talonic_extract), or checking progress (talonic_get_run) / reading rows (talonic_get_run_results).\\nARGS: `spec_id` (talonic_list_specs); exactly one of `document_ids[]` (1–500) or `file_urls[]` (1–20, https); optional `name`, `pipeline_mode` (`new` default | `append` to the Spec's current run); `batch_id` and flat `metadata` only with file_urls.\\nRETURNS: RunEnvelope { run_kind ('pipeline'|'run'), run_id, pipeline_id, spec_id, status ('processing'|'completed'|'failed'), raw_status, input_count, documents?, message?, links }. Then poll talonic_get_run with the `pipeline_id` when run_kind is 'pipeline', or with the `run_id` when it is 'run', every 5–10 s until status is completed/failed, then talonic_get_run_results.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": true,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"spec_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Spec UUID (talonic_list_specs).\"\n },\n {\n \"name\": \"document_ids\",\n \"type\": \"string[]\",\n \"required\": false,\n \"description\": \"Workspace document ids (1–500). Mutually exclusive with file_urls.\"\n },\n {\n \"name\": \"file_urls\",\n \"type\": \"string[]\",\n \"required\": false,\n \"description\": \"Public https file URLs (1–20). Mutually exclusive with document_ids.\"\n },\n {\n \"name\": \"name\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Display name for the run.\"\n },\n {\n \"name\": \"pipeline_mode\",\n \"type\": \"\\\"new\\\" | \\\"append\\\"\",\n \"required\": false,\n \"description\": \"`new` (default) or `append` to the Spec's current run.\",\n \"enum\": [\n \"new\",\n \"append\"\n ]\n },\n {\n \"name\": \"batch_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Caller grouping key (file_urls path only).\"\n },\n {\n \"name\": \"metadata\",\n \"type\": \"object\",\n \"required\": false,\n \"description\": \"Flat caller tags stamped on every ingested document (file_urls path only).\"\n }\n ]\n },\n {\n \"name\": \"talonic_get_run\",\n \"group\": \"core\",\n \"title\": \"Check run progress\",\n \"description\": \"Poll a Spec run started by talonic_run_spec: normalised status plus progress per document and, for run_kind 'pipeline', per step.\\n\\nUSE WHEN: waiting for a run to finish — poll every 5–10 s; stop on `completed` or `failed`.\\nNOT FOR: reading the structured rows (talonic_get_run_results) or starting a run (talonic_run_spec).\\nARGS: exactly one of `pipeline_id` (run_kind 'pipeline') or `run_id` (run_kind 'run'), from the RunEnvelope.\\nRETURNS: { run_kind, run_id, pipeline_id, spec_id, status, raw_status, input_count?, progress { total_documents, completed_documents, error_documents, phases?[] }, documents?[], error_message?, created_at, updated_at }.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"run_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"From a run_kind 'run' envelope (/v1/run).\"\n },\n {\n \"name\": \"pipeline_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"From a run_kind 'pipeline' envelope (/v1/pipelines).\"\n }\n ]\n },\n {\n \"name\": \"talonic_get_run_results\",\n \"group\": \"core\",\n \"title\": \"Read run results\",\n \"description\": \"Read a Spec run's structured rows — one row per document with the Spec's fields as clean values (values held for review come back null), plus the column definitions.\\n\\nUSE WHEN: talonic_get_run reports `completed` (partial rows are also readable while `processing`).\\nNOT FOR: progress (talonic_get_run) or per-field provenance of a single value (include: ['provenance'] here, or talonic_field_values).\\nARGS: exactly one of `pipeline_id` (run_kind 'pipeline', optionally with the envelope's `run_id` to scope to that submission) or `run_id` alone (run_kind 'run'); optional `document_id` (one document), `include` (['cells','provenance'] — heavier payload), `limit` (1–200, default 50), `cursor`.\\nRETURNS: { run_kind, status, columns[] of { field_key, display_name, data_type }, data[] of { document_id, filename, record_id, status ('complete'|'partial'|'error'|'processing'), completed_at, fields { field_key: value }, cells?, provenance? }, pagination, pending_review_count, links }.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"run_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"The RunEnvelope's run_id. Alone: a run_kind 'run' submission (/v1/run). With pipeline_id: only the rows of that submission.\"\n },\n {\n \"name\": \"pipeline_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"The RunEnvelope's pipeline_id (run_kind 'pipeline'); rows come from /v1/pipelines/{id}/results.\"\n },\n {\n \"name\": \"document_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Restrict to one document.\"\n },\n {\n \"name\": \"include\",\n \"type\": \"\\\"cells\\\" | \\\"provenance\\\"[]\",\n \"required\": false,\n \"description\": \"Extra per-field detail; heavier payload.\",\n \"enum\": [\n \"cells\",\n \"provenance\"\n ]\n },\n {\n \"name\": \"limit\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Page size (default 50).\",\n \"minimum\": 1,\n \"maximum\": 200\n },\n {\n \"name\": \"cursor\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Opaque cursor from pagination.next_cursor.\"\n }\n ]\n },\n {\n \"name\": \"talonic_ask\",\n \"group\": \"core\",\n \"title\": \"Ask your documents\",\n \"description\": \"Ask a natural-language question over the workspace's documents and get a cited, verified answer (markdown). Talonic looks across the extracted data and the documents' text, backs every claim that matters with a quote from a source document, and checks the answer before returning it. Consumes credits.\\n\\nUSE WHEN (the default for questions): the user asks anything about what their documents contain — counts, totals, duplicates, comparisons, anomalies ('which vendors invoiced us twice in May?'), or a summary across documents. One call replaces exploring fields, schemas, Specs and queries yourself; skip that exploration.\\nNOT FOR: reading a known field's values (talonic_field_values, free) or filtering documents by a known value (talonic_filter, free); locating which field holds a concept (talonic_find_data).\\nARGS: `question`; optional `scope` { document_ids[], schema_id, pipeline_id, data_product_id, document_type, source_id, tags[], ingested_after, ingested_before } (ANDed), `conversation_id` (continue a thread), `output_format` { instruction, template }, `wait_seconds` (0–55, default 45).\\nRETURNS: { ask_id, status ('completed'|'processing'|'error'), conversation_id, answer (markdown), citations[] { quote, document_id, kind, filename, app_url }, verification { verdict, checks_total, checks_unsupported, correction }, usage { tokens, credits_charged }, tool_calls, artifacts[], waited_ms }. If status is still 'processing' after the wait, call talonic_get_answer with the ask_id.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"question\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"The question, in the user's words.\"\n },\n {\n \"name\": \"scope\",\n \"type\": \"object\",\n \"required\": false,\n \"description\": \"Restrict the question to a slice of the workspace; present fields are ANDed.\"\n },\n {\n \"name\": \"conversation_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Continue this conversation; earlier questions and answers are taken into account.\"\n },\n {\n \"name\": \"output_format\",\n \"type\": \"object\",\n \"required\": false,\n \"description\": \"Shape the answer's layout (a table, a list, a template); never changes which sources it rests on.\"\n },\n {\n \"name\": \"wait_seconds\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Seconds to wait for the answer before returning 'processing' (default 45, max 55).\",\n \"minimum\": 0,\n \"maximum\": 55\n }\n ]\n },\n {\n \"name\": \"talonic_get_answer\",\n \"group\": \"core\",\n \"title\": \"Get the answer\",\n \"description\": \"Poll an ask started by talonic_ask that was still processing when the wait ended.\\n\\nUSE WHEN: talonic_ask returned status 'processing' with an ask_id — poll every few seconds until 'completed' or 'error'.\\nNOT FOR: asking a new question (talonic_ask).\\nARGS: `ask_id`.\\nRETURNS: the same answer envelope as talonic_ask (answer, citations[], verification, usage) or { status: 'processing', poll_hint }.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"ask_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"From talonic_ask.\"\n }\n ]\n },\n {\n \"name\": \"talonic_list_apps\",\n \"group\": \"core\",\n \"title\": \"List apps\",\n \"description\": \"List the Talonic Apps in the user's workspace: id, slug, name, one-line description, mode and whether each is enabled.\\n\\nUSE WHEN: the user asks which apps or automations the workspace has, or another tool needs an app_id (talonic_list_decision_tasks needs the id of an app whose mode is 'external').\\nNOT FOR: documents (talonic_search) or pipelines/Specs (talonic_list_specs).\\nARGS: enabled_only (default true).\\nRETURNS: { apps: [{ id, slug, display_name, description, mode, enabled, standard }] }. mode 'external' means the app hands its decisions to an outside agent through the decision-task tools; other modes decide inside Talonic.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"enabled_only\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"Only enabled apps (default true). Pass false to include disabled ones.\"\n }\n ]\n },\n {\n \"name\": \"talonic_list_agent_tasks\",\n \"group\": \"agent_tasks\",\n \"title\": \"List Agent Tasks\",\n \"description\": \"List the agent tasks waiting in this workspace: checks a Spec hands to an outside agent (your agent) instead of a person, one per document.\\n\\nUSE WHEN: looking for work for your agent to do; begin with status 'available'. To take a batch from one run (e.g. 'take 10 tasks of run X'), list with pipeline_id and status 'available', then claim each with talonic_claim_agent_task; a task another agent took returns HTTP 409, so skip it and take the next.\\nNOT FOR: reading the immutable task payload (use talonic_get_agent_task) or taking a lease (use talonic_claim_agent_task).\\nARGS: optional status, pipeline_id, limit, and cursor. RETURNS: metadata only plus pagination.next_cursor.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"status\",\n \"type\": \"\\\"available\\\" | \\\"claimed\\\" | \\\"submitted\\\" | \\\"timed_out\\\" | \\\"cancelled\\\"\",\n \"required\": false,\n \"description\": \"Optional task-status filter.\",\n \"enum\": [\n \"available\",\n \"claimed\",\n \"submitted\",\n \"timed_out\",\n \"cancelled\"\n ]\n },\n {\n \"name\": \"limit\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Page size (default 50).\",\n \"minimum\": 1,\n \"maximum\": 100\n },\n {\n \"name\": \"cursor\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Opaque cursor from pagination.next_cursor.\"\n },\n {\n \"name\": \"pipeline_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Optional run UUID: only that run's tasks.\"\n }\n ]\n },\n {\n \"name\": \"talonic_get_agent_task\",\n \"group\": \"agent_tasks\",\n \"title\": \"Get Agent Task\",\n \"description\": \"Read one agent task: its fixed input, instructions, and the output fields it expects. Each read is recorded against the task.\\n\\nUSE WHEN: inspecting a listed task before deciding whether to process it.\\nNOT FOR: acquiring the task (use talonic_claim_agent_task) or returning results (use talonic_submit_agent_task).\\nARGS: task_id. RETURNS: metadata, input_snapshot, output_contract, instructions, and timeout_fallthrough.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"task_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Agent task UUID.\"\n }\n ]\n },\n {\n \"name\": \"talonic_claim_agent_task\",\n \"group\": \"agent_tasks\",\n \"title\": \"Claim Agent Task\",\n \"description\": \"Claim an available agent task so no one else works on it, or reclaim it after its lease expires.\\n\\nUSE WHEN: ready to process a task. Save the returned execution_epoch and lease_expires_at.\\nNOT FOR: merely inspecting work (use talonic_get_agent_task) or extending an active lease (use talonic_heartbeat_agent_task).\\nA conflicting live claim returns HTTP 409. A successful claim returns the task payload: input_snapshot, instructions, and output_contract, whose entries carry each field's Spec rules (description) and allowed codes (enumValues). Review the documents against those rules.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"task_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Agent task UUID.\"\n }\n ]\n },\n {\n \"name\": \"talonic_heartbeat_agent_task\",\n \"group\": \"agent_tasks\",\n \"title\": \"Heartbeat Agent Task\",\n \"description\": \"Extend the lease on a claimed agent task so you keep it while you work.\\n\\nUSE WHEN: processing may continue past lease_expires_at; heartbeat before expiry using the epoch from claim.\\nNOT FOR: acquiring a task (use talonic_claim_agent_task) or submitting finished outputs (use talonic_submit_agent_task).\\nARGS: task_id and execution_epoch. Stale or foreign claims return HTTP 409.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"task_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Agent task UUID.\"\n },\n {\n \"name\": \"execution_epoch\",\n \"type\": \"integer\",\n \"required\": true,\n \"description\": \"Execution epoch returned by the successful claim. Stale epochs are rejected.\",\n \"minimum\": 1,\n \"maximum\": 2147483647\n }\n ]\n },\n {\n \"name\": \"talonic_submit_agent_task\",\n \"group\": \"agent_tasks\",\n \"title\": \"Submit Agent Task\",\n \"description\": \"Submit the output fields for a claimed agent task; the document then continues through its Spec.\\n\\nUSE WHEN: processing is complete and every required output in output_contract is ready.\\nNOT FOR: undeclared fields or partial lease maintenance (use talonic_heartbeat_agent_task).\\nARGS: task_id, execution_epoch, outputs keyed exactly by declared field key, and optional summary. Talonic checks every field and type before writing anything: all are saved or none.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"task_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Agent task UUID.\"\n },\n {\n \"name\": \"execution_epoch\",\n \"type\": \"integer\",\n \"required\": true,\n \"description\": \"Execution epoch returned by the successful claim. Stale epochs are rejected.\",\n \"minimum\": 1,\n \"maximum\": 2147483647\n },\n {\n \"name\": \"outputs\",\n \"type\": \"object\",\n \"required\": true,\n \"description\": \"Output field key to { value, confidence?, reasoning?, escalate?, quote?, document_id? }. Use only declared fields.\"\n },\n {\n \"name\": \"summary\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Optional result summary, up to 4,000 characters.\"\n }\n ]\n },\n {\n \"name\": \"talonic_list_decision_tasks\",\n \"group\": \"decision_tasks\",\n \"title\": \"List Decision Tasks\",\n \"description\": \"List one External-mode app's decision tasks (runs waiting for an outside agent to decide), newest first.\\n\\nUSE WHEN: looking for decisions to make for an app; begin with status 'available'. This is the polling alternative to the app.decision_task.offered webhook.\\nNOT FOR: agent tasks on documents in a Spec (use talonic_list_agent_tasks), reading a task's input package (claim it, then talonic_read_decision_package), or taking a lease (talonic_claim_decision_task).\\nARGS: app_id, optional status, limit, cursor. RETURNS: task metadata only (id, run_id, status, execution_epoch, lease and sla_deadline_at timing) plus pagination.next_cursor.\\nAUTH: a tlnc_ key needs a per-app 'decide' grant; an OAuth connector session needs the apps:decide scope (consented at connect) and a live workspace role of senior_member or above. A 403 (decide_grant_required, insufficient_scope, insufficient_tier) names what is missing — tell the user, do not retry.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"app_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Id of an External-mode app (from talonic_list_apps, where mode is 'external').\"\n },\n {\n \"name\": \"status\",\n \"type\": \"\\\"available\\\" | \\\"claimed\\\" | \\\"submitted\\\" | \\\"released\\\" | \\\"failed\\\" | \\\"timed_out\\\" | \\\"cancelled\\\"\",\n \"required\": false,\n \"description\": \"Optional task-status filter.\",\n \"enum\": [\n \"available\",\n \"claimed\",\n \"submitted\",\n \"released\",\n \"failed\",\n \"timed_out\",\n \"cancelled\"\n ]\n },\n {\n \"name\": \"limit\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Page size (default 50).\",\n \"minimum\": 1,\n \"maximum\": 100\n },\n {\n \"name\": \"cursor\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Opaque cursor from pagination.next_cursor.\"\n }\n ]\n },\n {\n \"name\": \"talonic_claim_decision_task\",\n \"group\": \"decision_tasks\",\n \"title\": \"Claim Decision Task\",\n \"description\": \"Claim an available decision task (or reclaim one whose lease expired) and receive the decision bundle: task metadata with the new execution_epoch, output_contract, precedents, and a package descriptor { package_kind, record_count, page_size, first_cursor, documents }.\\n\\nUSE WHEN: ready to decide a listed task. There is no separate get: claiming IS the payload fetch. Save execution_epoch and lease_expires_at; then read the records with talonic_read_decision_package starting at first_cursor (null means the package has no records).\\nNOT FOR: extending a live lease (talonic_heartbeat_decision_task) or returning a decision (talonic_submit_decision_task). A conflicting live claim returns HTTP 409.\\nAUTH: a tlnc_ key needs a per-app 'decide' grant; an OAuth connector session needs the apps:decide scope (consented at connect) and a live workspace role of senior_member or above. A 403 (decide_grant_required, insufficient_scope, insufficient_tier) names what is missing — tell the user, do not retry.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"task_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Decision task UUID.\"\n }\n ]\n },\n {\n \"name\": \"talonic_read_decision_package\",\n \"group\": \"decision_tasks\",\n \"title\": \"Read Decision Package\",\n \"description\": \"Read one page of a claimed decision task's fixed input: the records the decision must be made from, each with the locator to cite as evidence. Only the current claimant may read it; each page read is recorded on the run.\\n\\nUSE WHEN: after a successful claim, walking pages from package.first_cursor while pagination.has_more is true. The first page also carries the source documents list. A mining_round package is one record { system_prompt, first_turn, tools }.\\nNOT FOR: unclaimed tasks (HTTP 409; claim first) or listing tasks (talonic_list_decision_tasks).\\nARGS: task_id, optional cursor and limit (1 to 2000). Copy evidence locators verbatim from these records for the submit.\\nAUTH: a tlnc_ key needs a per-app 'decide' grant; an OAuth connector session needs the apps:decide scope (consented at connect) and a live workspace role of senior_member or above. A 403 (decide_grant_required, insufficient_scope, insufficient_tier) names what is missing — tell the user, do not retry.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"task_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Decision task UUID.\"\n },\n {\n \"name\": \"cursor\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Opaque package cursor: package.first_cursor from the claim, then pagination.next_cursor. Omit for the first page.\"\n },\n {\n \"name\": \"limit\",\n \"type\": \"integer\",\n \"required\": false,\n \"description\": \"Records per page, 1 to 2000. Defaults to the platform page size (package.page_size from the claim).\",\n \"minimum\": 1,\n \"maximum\": 2000\n }\n ]\n },\n {\n \"name\": \"talonic_heartbeat_decision_task\",\n \"group\": \"decision_tasks\",\n \"title\": \"Heartbeat Decision Task\",\n \"description\": \"Extend the lease on a claimed decision task, never past its sla_deadline_at.\\n\\nUSE WHEN: deciding may run past lease_expires_at; heartbeat before expiry using the epoch from claim.\\nNOT FOR: acquiring a task (talonic_claim_decision_task) or finishing one (talonic_submit_decision_task / talonic_release_decision_task / talonic_fail_decision_task).\\nARGS: task_id and execution_epoch. A stale or foreign epoch returns HTTP 409: stop, discard the work, and re-list.\\nAUTH: a tlnc_ key needs a per-app 'decide' grant; an OAuth connector session needs the apps:decide scope (consented at connect) and a live workspace role of senior_member or above. A 403 (decide_grant_required, insufficient_scope, insufficient_tier) names what is missing — tell the user, do not retry.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"task_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Decision task UUID.\"\n },\n {\n \"name\": \"execution_epoch\",\n \"type\": \"integer\",\n \"required\": true,\n \"description\": \"Execution epoch returned by the successful claim. Stale epochs are rejected with 409.\",\n \"minimum\": 1,\n \"maximum\": 2147483647\n }\n ]\n },\n {\n \"name\": \"talonic_submit_decision_task\",\n \"group\": \"decision_tasks\",\n \"title\": \"Submit Decision Task\",\n \"description\": \"Submit the decision for a claimed decision task; Talonic checks it before saving anything, then the run continues.\\n\\nUSE WHEN: the decision is final. outcome must satisfy output_contract from the claim (plain JSON Schema, or the verdict_matrix / record_set envelope), evidence lists the package locators relied on (verbatim; [] only if the app allows unevidenced decisions), rationale is a short summary. Rejections are HTTP 422 with the reason and change nothing; the task stays claimed under your epoch, so fix and resubmit before the lease ends.\\nNOT FOR: giving the task back undecided (talonic_release_decision_task) or declaring it undecidable (talonic_fail_decision_task). Stale epoch is HTTP 409.\\nARGS: task_id, execution_epoch, outcome, evidence, rationale, optional confidence and service_version.\\nAUTH: a tlnc_ key needs a per-app 'decide' grant; an OAuth connector session needs the apps:decide scope (consented at connect) and a live workspace role of senior_member or above. A 403 (decide_grant_required, insufficient_scope, insufficient_tier) names what is missing — tell the user, do not retry.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"task_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Decision task UUID.\"\n },\n {\n \"name\": \"execution_epoch\",\n \"type\": \"integer\",\n \"required\": true,\n \"description\": \"Execution epoch returned by the successful claim. Stale epochs are rejected with 409.\",\n \"minimum\": 1,\n \"maximum\": 2147483647\n },\n {\n \"name\": \"outcome\",\n \"type\": \"object\",\n \"required\": true,\n \"description\": \"The decision, shaped by output_contract from the claim: for a plain JSON Schema contract the object that schema validates; for a verdict_matrix contract { subjects: [{ subject_key, rule_outcomes, auto?, detail? }] }; for a record_set contract its fields-and-rows envelope.\"\n },\n {\n \"name\": \"evidence\",\n \"type\": \"string[]\",\n \"required\": true,\n \"description\": \"Provenance locators the decision relied on, each copied verbatim from the input package (or a db:/ref: locator the app holds a read grant on). Required; [] is accepted only when the app allows unevidenced decisions.\"\n },\n {\n \"name\": \"rationale\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Short decision rationale (a summary, never private chain-of-thought), up to 4,000 characters.\"\n },\n {\n \"name\": \"confidence\",\n \"type\": \"number\",\n \"required\": false,\n \"description\": \"Optional confidence from 0 to 1.\",\n \"minimum\": 0,\n \"maximum\": 1\n },\n {\n \"name\": \"service_version\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Optional build identifier of the deciding service; recorded as decided_by.label.\"\n }\n ]\n },\n {\n \"name\": \"talonic_release_decision_task\",\n \"group\": \"decision_tasks\",\n \"title\": \"Release Decision Task\",\n \"description\": \"Release a claimed decision task back to 'available' without deciding it; the next claim bumps the epoch.\\n\\nUSE WHEN: you cannot finish within the lease or SLA but another claimant could decide it.\\nNOT FOR: declaring the task undecidable (talonic_fail_decision_task, which raises a review and applies the app's fallback) or keeping the lease (talonic_heartbeat_decision_task).\\nARGS: task_id and execution_epoch. Stale epoch is HTTP 409.\\nAUTH: a tlnc_ key needs a per-app 'decide' grant; an OAuth connector session needs the apps:decide scope (consented at connect) and a live workspace role of senior_member or above. A 403 (decide_grant_required, insufficient_scope, insufficient_tier) names what is missing — tell the user, do not retry.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"task_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Decision task UUID.\"\n },\n {\n \"name\": \"execution_epoch\",\n \"type\": \"integer\",\n \"required\": true,\n \"description\": \"Execution epoch returned by the successful claim. Stale epochs are rejected with 409.\",\n \"minimum\": 1,\n \"maximum\": 2147483647\n }\n ]\n },\n {\n \"name\": \"talonic_fail_decision_task\",\n \"group\": \"decision_tasks\",\n \"title\": \"Fail Decision Task\",\n \"description\": \"Report that the claimed decision task cannot be decided: sends it to a person for review with your reason AND applies the app's declared fallback policy (rules decide, hold for review, or fail the run).\\n\\nUSE WHEN: the package is insufficient or contradictory and no claimant could decide it. This ends the task (status 'failed').\\nNOT FOR: temporary give-backs (talonic_release_decision_task) or a decision you can make with low confidence (submit it with confidence set).\\nARGS: task_id, execution_epoch, reason (up to 2,000 characters). Stale epoch is HTTP 409.\\nAUTH: a tlnc_ key needs a per-app 'decide' grant; an OAuth connector session needs the apps:decide scope (consented at connect) and a live workspace role of senior_member or above. A 403 (decide_grant_required, insufficient_scope, insufficient_tier) names what is missing — tell the user, do not retry.\",\n \"readOnly\": false,\n \"destructive\": true,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"task_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Decision task UUID.\"\n },\n {\n \"name\": \"execution_epoch\",\n \"type\": \"integer\",\n \"required\": true,\n \"description\": \"Execution epoch returned by the successful claim. Stale epochs are rejected with 409.\",\n \"minimum\": 1,\n \"maximum\": 2147483647\n },\n {\n \"name\": \"reason\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Why the task cannot be decided, up to 2,000 characters. Recorded on the Human Review the fail raises.\"\n }\n ]\n },\n {\n \"name\": \"talonic_process_list\",\n \"group\": \"processes\",\n \"title\": \"Processes\",\n \"description\": \"List the workspace's processes: name, live version (null = draft only), folder, tags and number of steps. Start here; use the id with the other talonic_process_* tools.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": []\n },\n {\n \"name\": \"talonic_process_run\",\n \"group\": \"processes\",\n \"title\": \"Start a process for one item\",\n \"description\": \"Start a published process for one item with values by field name, e.g. {\\\"Vendor\\\": \\\"Acme\\\", \\\"Amount\\\": 1200}. Only for processes whose items are posted (started by hand, by another system or by a form). Returns the run id, and the process's reply when it has a reply step. Starting a process can send mail, call other systems and ask people to sign: call only when the user asks for it.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"The process id from talonic_process_list\"\n },\n {\n \"name\": \"values\",\n \"type\": \"object\",\n \"required\": true,\n \"description\": \"Values by field name\"\n }\n ]\n },\n {\n \"name\": \"talonic_process_status\",\n \"group\": \"processes\",\n \"title\": \"Process run status\",\n \"description\": \"Where a process run stands: per step, how many items are waiting, done or failed, and each item's state. Without run_id, the latest run.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"The process id\"\n },\n {\n \"name\": \"run_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"A run id; default the latest run\"\n }\n ]\n },\n {\n \"name\": \"talonic_process_runs\",\n \"group\": \"processes\",\n \"title\": \"Process runs\",\n \"description\": \"Runs across all processes, newest first: state (running, completed, failed, stuck = open with a failed item), items done, waiting and failed. Filter by process or by runs waiting for the caller.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"state\",\n \"type\": \"\\\"running\\\" | \\\"completed\\\" | \\\"failed\\\" | \\\"stuck\\\"\",\n \"required\": false,\n \"enum\": [\n \"running\",\n \"completed\",\n \"failed\",\n \"stuck\"\n ]\n },\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": false\n },\n {\n \"name\": \"waiting_for_me\",\n \"type\": \"boolean\",\n \"required\": false\n },\n {\n \"name\": \"page\",\n \"type\": \"integer\",\n \"required\": false,\n \"minimum\": 0,\n \"maximum\": 9007199254740991\n }\n ]\n },\n {\n \"name\": \"talonic_process_waiting_for_me\",\n \"group\": \"processes\",\n \"title\": \"Waiting for me\",\n \"description\": \"Sign-offs and forms waiting for the caller (the person behind the key): per process and step, how many items wait. Use talonic_process_status to see the items, then talonic_process_sign.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": []\n },\n {\n \"name\": \"talonic_process_sign\",\n \"group\": \"processes\",\n \"title\": \"Sign a process step\",\n \"description\": \"Sign a sign-off step of a run for the caller: approve all waiting items, or only `items`. A step that offers choices needs `decision` (one of its choices). Allowed only where the caller is assigned to the step. Signing moves real work on: call only when the user decides.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"run_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"step_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"The sign-off step's id (stepId from talonic_process_waiting_for_me)\"\n },\n {\n \"name\": \"items\",\n \"type\": \"string[]\",\n \"required\": false,\n \"description\": \"Item keys; default every waiting item\"\n },\n {\n \"name\": \"decision\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"One of the step's choices, when it offers any\"\n }\n ]\n },\n {\n \"name\": \"talonic_process_get\",\n \"group\": \"processes\",\n \"title\": \"One process\",\n \"description\": \"One process with its draft: fields, steps (id, kind, name, settings) and the arrows between them. Use it to see step ids before talonic_process_change with step_id, or to read what a process does.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"The process id from talonic_process_list\"\n }\n ]\n },\n {\n \"name\": \"talonic_process_create\",\n \"group\": \"processes\",\n \"title\": \"New process draft\",\n \"description\": \"Set up a new process as a DRAFT. Pass `description` in the user's own words (what comes in, what is read or checked, who decides, what goes out), or `workflow_json` with an exported n8n workflow to take it over. Nothing runs and nothing is sent until talonic_process_publish. The answer names what a person still has to choose (`stillOpen`, `questions`): tell the user those.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"description\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"What the process should do, complete and in the user's words\"\n },\n {\n \"name\": \"workflow_json\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"An exported n8n workflow as JSON text, instead of description\"\n }\n ]\n },\n {\n \"name\": \"talonic_process_change\",\n \"group\": \"processes\",\n \"title\": \"Change a process draft\",\n \"description\": \"Change a process draft from an instruction in plain words: add, remove or reorder steps, change who decides, what is sent, any setting. With `step_id` only that step's settings change. Touches the draft only; the live version stays until talonic_process_publish. If the answer is `needs_confirmation`, NOTHING was saved: the change means fewer people or checks look at items. Tell the user exactly those points and ask; call again with `confirmed: true` only after they said yes, never on a first call.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"change\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"What should change, in plain words\"\n },\n {\n \"name\": \"step_id\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Only this step's settings (id from talonic_process_get)\"\n },\n {\n \"name\": \"confirmed\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"Leave out. true only after needs_confirmation was shown to the user and they agreed\"\n }\n ]\n },\n {\n \"name\": \"talonic_process_check\",\n \"group\": \"processes\",\n \"title\": \"Check a process draft\",\n \"description\": \"What a draft still needs before it can go live (`stillNeeded`, per step), every problem the check finds, and what publishing would change against the live version. Call before talonic_process_publish and tell the user what is open.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true\n }\n ]\n },\n {\n \"name\": \"talonic_process_test_run\",\n \"group\": \"processes\",\n \"title\": \"Test a process draft\",\n \"description\": \"Run the DRAFT on real documents in a test copy: nothing is delivered, emailed or called. Steps not set up yet end the test (`endsAt`). Returns `processId` of the test copy and `runId`; follow with talonic_process_status on that processId.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"document_ids\",\n \"type\": \"string[]\",\n \"required\": true,\n \"description\": \"Documents to run the draft on\"\n }\n ]\n },\n {\n \"name\": \"talonic_process_publish\",\n \"group\": \"processes\",\n \"title\": \"Publish a process\",\n \"description\": \"Make the draft the LIVE version. From then on the process runs for real: it starts on what its start says (arriving documents, mail, another system), sends its mail and calls its systems. Refused while talonic_process_check finds an error. Call only when the user said to publish; show them talonic_process_check first.\",\n \"readOnly\": false,\n \"destructive\": true,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"reason\",\n \"type\": \"string\",\n \"required\": false,\n \"description\": \"Why this change, for the record\"\n }\n ]\n },\n {\n \"name\": \"talonic_process_versions\",\n \"group\": \"processes\",\n \"title\": \"Process versions\",\n \"description\": \"The published versions of a process, newest first, with who published and why.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true\n }\n ]\n },\n {\n \"name\": \"talonic_process_rollback\",\n \"group\": \"processes\",\n \"title\": \"Roll a process back\",\n \"description\": \"Make an earlier published version live again. Changes what runs for real: call only when the user asks for it.\",\n \"readOnly\": false,\n \"destructive\": true,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"version\",\n \"type\": \"integer\",\n \"required\": true,\n \"description\": \"The version number to make live again\",\n \"minimum\": 1,\n \"maximum\": 9007199254740991\n }\n ]\n },\n {\n \"name\": \"talonic_process_delete\",\n \"group\": \"processes\",\n \"title\": \"Delete a process\",\n \"description\": \"Delete a process. Not possible while a run is open. Cannot be undone: call only when the user asked to delete this process by name.\",\n \"readOnly\": false,\n \"destructive\": true,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true\n }\n ]\n },\n {\n \"name\": \"talonic_process_item\",\n \"group\": \"processes\",\n \"title\": \"One item of a run\",\n \"description\": \"One item's way through a run, step by step (status, time, note such as why it stopped or where a mail went), and its values now. Item keys come from talonic_process_status.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"run_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"item_key\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"The item's key (documentId) from the run\"\n }\n ]\n },\n {\n \"name\": \"talonic_process_retry\",\n \"group\": \"processes\",\n \"title\": \"Retry a run's failed steps\",\n \"description\": \"Try every failed step of a run again. Steps that send or call will send or call again: use when the cause of the failure is fixed.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"run_id\",\n \"type\": \"string\",\n \"required\": true\n }\n ]\n },\n {\n \"name\": \"talonic_process_send_back\",\n \"group\": \"processes\",\n \"title\": \"Send items back from a sign-off\",\n \"description\": \"Send items back from a sign-off step with a reason, for the caller: the opposite of talonic_process_sign. Allowed only where the caller is assigned. Moves real work: call only when the user decides.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"run_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"step_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"items\",\n \"type\": \"string[]\",\n \"required\": true,\n \"description\": \"Item keys\"\n },\n {\n \"name\": \"reason\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"Why they go back, in the user's words\"\n }\n ]\n },\n {\n \"name\": \"talonic_process_setup\",\n \"group\": \"processes\",\n \"title\": \"What processes can use\",\n \"description\": \"What processes of this workspace can use: who a step can wait for (roles, groups), the connected mailboxes and whether each may send, the names of stored secrets (never values), and the shared data a look-up step can read. Connecting a mailbox and storing a secret happen in the Talonic web app, not here.\",\n \"readOnly\": true,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": []\n },\n {\n \"name\": \"talonic_process_mailbox_ownership\",\n \"group\": \"processes\",\n \"title\": \"Say whose a mailbox is\",\n \"description\": \"Say whether a connected mailbox is one person's own (`individual`: only that person may put it on a process) or the company's (`company`: everyone who builds processes may). A governance decision: call only when the user asks.\",\n \"readOnly\": false,\n \"destructive\": false,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"mailbox_id\",\n \"type\": \"string\",\n \"required\": true,\n \"description\": \"The mailbox id from talonic_process_setup\"\n },\n {\n \"name\": \"ownership\",\n \"type\": \"\\\"individual\\\" | \\\"company\\\"\",\n \"required\": true,\n \"enum\": [\n \"individual\",\n \"company\"\n ]\n }\n ]\n },\n {\n \"name\": \"talonic_process_address\",\n \"group\": \"processes\",\n \"title\": \"A process's address for other systems\",\n \"description\": \"The address other systems send items to (a webhook). Without `make` it only says whether one exists; the address itself is shown once, when made. With `make: true` it makes one and returns `path` to post to. An existing address is replaced only with `replace: true`: the old one stops working AT ONCE and whatever sends to it stops getting through, so ask the user first. `test: true` is the address of the test copy.\",\n \"readOnly\": false,\n \"destructive\": true,\n \"openWorld\": false,\n \"notForOpenAi\": false,\n \"params\": [\n {\n \"name\": \"process_id\",\n \"type\": \"string\",\n \"required\": true\n },\n {\n \"name\": \"make\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"true: make the address. Default: only say whether one exists\"\n },\n {\n \"name\": \"test\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"The address of the test copy\"\n },\n {\n \"name\": \"replace\",\n \"type\": \"boolean\",\n \"required\": false,\n \"description\": \"true only after the user agreed to switch the existing address off\"\n }\n ]\n }\n]\n","// Hand-written copy for each generated tool reference page: the task it\n// serves, search-result copy, examples, FAQ and related links. Everything\n// else on the page (summary, how to use it, parameters, availability,\n// behaviour) comes from the live tool registry; see sections/tool-reference.ts.\n\nimport type { ToolPage } from \"./tool-reference-types\"\n\nexport const TOOL_PAGES: Record<string, ToolPage> = {\n talonic_list_schemas: {\n task: \"extract\",\n seoTitle: \"talonic_list_schemas — List Saved Extraction Schemas\",\n description:\n \"MCP tool that lists every saved schema in your Talonic workspace with IDs, names, and full field definitions, so agents reuse schemas instead of redesigning.\",\n examples: [\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"schemas\": [\\n {\\n \"id\": \"sch_7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d\",\\n \"short_id\": \"SCH-A1B2C3D4\",\\n \"name\": \"Standard Invoice\",\\n \"description\": \"Extracts vendor, line items, totals, and payment terms.\",\\n \"version\": 3,\\n \"field_count\": 6,\\n \"definition\": {\\n \"type\": \"object\",\\n \"properties\": {\\n \"vendor_name\": { \"type\": \"string\" },\\n \"invoice_number\": { \"type\": \"string\" },\\n \"total_amount\": { \"type\": \"number\" },\\n \"due_date\": { \"type\": \"string\", \"format\": \"date\" },\\n \"currency\": { \"type\": \"string\" },\\n \"line_items\": { \"type\": \"array\" }\\n },\\n \"required\": [\"vendor_name\", \"total_amount\"]\\n }\\n },\\n {\\n \"id\": \"sch_e5f6a7b8-c9d0-1e2f-3a4b-5c6d7e8f9a0b\",\\n \"short_id\": \"SCH-E5F6A7B8\",\\n \"name\": \"Certificate of Insurance\",\\n \"description\": \"Extracts insured party, coverage types, limits, and expiry.\",\\n \"version\": 1,\\n \"field_count\": 8,\\n \"definition\": { \"type\": \"object\", \"properties\": { \"...\" : {} } }\\n }\\n ]\\n}',\n },\n ],\n faq: [\n {\n question: \"How do I list schemas via MCP?\",\n answer:\n \"Call talonic_list_schemas to get all saved schemas with their definitions. The talonic://schemas resource also exposes this data.\",\n },\n {\n question: \"What is the difference between the UUID and SCH-XXXXXXXX ID?\",\n answer:\n \"Both reference the same schema. The UUID (id) is the full identifier, while SCH-XXXXXXXX (short_id) is a shorter, human-friendly format. Either can be passed as schema_id to talonic_extract.\",\n },\n {\n question: \"Does talonic_list_schemas require any parameters?\",\n answer:\n \"No. It takes no input parameters and returns all saved schemas in the workspace with their full definitions.\",\n },\n {\n question: \"Is talonic_list_schemas free to call?\",\n answer:\n \"Yes. It reads metadata only and uses no credits, so an agent can call it whenever it needs to check for an existing schema.\",\n },\n {\n question: \"How do I know which schema to use for a document?\",\n answer:\n \"Match the schema's name and description to the document. For example, use a 'Standard Invoice' schema for invoices and a 'Certificate of Insurance' schema for COIs. When unsure, start with an inline schema and save it once the results look right.\",\n },\n ],\n related: [\n {\n label: \"talonic_save_schema\",\n slug: \"talonic-save-schema\",\n },\n {\n label: \"talonic_extract\",\n slug: \"talonic-extract\",\n },\n ],\n mentions: [\"schemas\", \"list\", \"SCH-XXXXXXXX\", \"resource\"],\n },\n talonic_get_schema: {\n task: \"extract\",\n seoTitle: \"talonic_get_schema — Read a Saved Schema's Field List\",\n description:\n \"MCP tool that returns one saved Talonic schema with its full field definition (names, types, descriptions), so an agent knows which fields extraction returns.\",\n related: [\n {\n label: \"talonic_list_schemas\",\n slug: \"talonic-list-schemas\",\n },\n {\n label: \"talonic_extract\",\n slug: \"talonic-extract\",\n },\n ],\n mentions: [\"schema\", \"schema_id\", \"fields\"],\n },\n talonic_save_schema: {\n task: \"extract\",\n seoTitle: \"talonic_save_schema — Save Reusable Extraction Schemas\",\n description:\n \"MCP tool that persists a JSON Schema for reuse across extractions. Returns a schema_id (UUID or SCH-XXXXXXXX) to pass on every future talonic_extract call.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{\\n \"name\": \"Standard Invoice\",\\n \"description\": \"Extracts vendor, line items, totals, and payment terms from invoices.\",\\n \"definition\": {\\n \"type\": \"object\",\\n \"properties\": {\\n \"vendor_name\": { \"type\": \"string\" },\\n \"invoice_number\": { \"type\": \"string\" },\\n \"total_amount\": { \"type\": \"number\" },\\n \"due_date\": { \"type\": \"string\", \"format\": \"date\" },\\n \"line_items\": {\\n \"type\": \"array\",\\n \"items\": {\\n \"type\": \"object\",\\n \"properties\": {\\n \"description\": { \"type\": \"string\" },\\n \"amount\": { \"type\": \"number\" }\\n }\\n }\\n }\\n },\\n \"required\": [\"vendor_name\", \"total_amount\"]\\n }\\n}',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"id\": \"sch_7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d\",\\n \"short_id\": \"SCH-A1B2C3D4\",\\n \"name\": \"Standard Invoice\",\\n \"description\": \"Extracts vendor, line items, totals, and payment terms from invoices.\",\\n \"version\": 1,\\n \"field_count\": 5\\n}',\n },\n ],\n faq: [\n {\n question: \"How do I save a schema via MCP?\",\n answer:\n \"Call talonic_save_schema with a name and JSON Schema definition. It returns a schema_id for reuse in talonic_extract calls.\",\n },\n {\n question: \"When should I save a schema vs use an inline schema?\",\n answer:\n \"Save a schema when you will reuse it across many documents (e.g., a standard invoice template). Use inline schemas for one-off extractions or when iterating on schema design with the user.\",\n },\n {\n question: \"Can I update a saved schema?\",\n answer:\n \"Schema updates are managed through the Talonic dashboard. The version field in the response tracks changes. Via MCP, you can save a new schema with a different name if the design changes significantly.\",\n },\n {\n question: \"What is the recommended workflow for schema design?\",\n answer:\n \"Iterate inline first: pass the schema directly to talonic_extract, review results with the user, adjust fields as needed. Once the user confirms the schema produces good results, call talonic_save_schema to persist it. This prevents cluttering the workspace with draft schemas that never get used.\",\n },\n {\n question: \"Should I include a description when saving a schema?\",\n answer:\n \"Yes. A clear description ('Vendor, line items, totals and payment terms from invoices') helps people on your team and agents pick the right schema for a document.\",\n },\n ],\n related: [\n {\n label: \"talonic_list_schemas\",\n slug: \"talonic-list-schemas\",\n },\n {\n label: \"talonic_extract\",\n slug: \"talonic-extract\",\n },\n ],\n mentions: [\"save schema\", \"JSON Schema\", \"reuse\", \"version\"],\n },\n talonic_get_document: {\n task: \"find\",\n seoTitle: \"talonic_get_document — Document Metadata & Status Tool\",\n description:\n \"MCP tool that fetches one document's details by id: status, page count, type, language and a link to open it in Talonic. Use it to follow an upload too.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{\\n \"document_id\": \"doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c\"\\n}',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"id\": \"doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c\",\\n \"filename\": \"invoice-2026-001.pdf\",\\n \"status\": \"completed\",\\n \"pages\": 2,\\n \"size_bytes\": 184320,\\n \"mime_type\": \"application/pdf\",\\n \"type_detected\": \"Invoice\",\\n \"language_detected\": \"de\",\\n \"source\": { \"id\": \"src_a1b2...\", \"type\": \"api\" },\\n \"links\": {\\n \"self\": \"https://api.talonic.com/v1/documents/doc_8f3a...\",\\n \"extractions\": \"https://api.talonic.com/v1/documents/doc_8f3a.../extractions\",\\n \"dashboard\": \"https://app.talonic.com/documents/doc_8f3a...\"\\n }\\n}',\n },\n ],\n faq: [\n {\n question: \"How do I get document metadata via MCP?\",\n answer:\n \"Call talonic_get_document with the document id. It returns the file name, status, pages, detected type, language and links.\",\n },\n {\n question: \"Does talonic_get_document return extracted data?\",\n answer:\n \"No. It returns metadata (filename, status, pages, type, language, links). For extracted field data, use talonic_extract with the same document_id.\",\n },\n {\n question: \"How can I link the user to the original document?\",\n answer:\n \"The response includes links.dashboard, which is a direct URL to view the document in the Talonic web interface. Present this to the user when they need to verify an extraction.\",\n },\n {\n question: \"Does talonic_get_document cost any credits?\",\n answer:\n \"No. It is a free look-up. Call it as often as needed to check status or get the link to the document.\",\n },\n {\n question: \"What document statuses can talonic_get_document return?\",\n answer:\n \"While a file is on its way: pending_upload, uploading, queued, extracting, then completed (or extracted for text-only uploads). ocr_failed, extraction_failed and error are final: stop and tell the user.\",\n },\n ],\n related: [\n {\n label: \"talonic_to_markdown\",\n slug: \"talonic-to-markdown\",\n },\n {\n label: \"talonic_extract\",\n slug: \"talonic-extract\",\n },\n ],\n mentions: [\"document\", \"metadata\", \"status\", \"dashboard link\"],\n },\n talonic_search: {\n task: \"find\",\n seoTitle: \"talonic_search — Find Documents, Fields and Schemas by Name\",\n description:\n \"MCP tool that finds documents, fields, schemas and sources in a Talonic workspace by keyword or by file name, and returns the ids the other tools need.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{\\n \"query\": \"indemnification\",\\n \"limit\": 10\\n}',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"documents\": [\\n {\\n \"id\": \"doc_4e7b...\",\\n \"filename\": \"acme-services-agreement.pdf\",\\n \"type_detected\": \"Services Agreement\",\\n \"score\": 0.92\\n }\\n ],\\n \"fieldMatches\": [\\n {\\n \"fieldName\": \"indemnification.cap_amount\",\\n \"documentId\": \"doc_4e7b...\",\\n \"value\": \"2x annual fees\",\\n \"documentCount\": 3,\\n \"filterable\": true,\\n \"dataType\": \"string\",\\n \"score\": 0.88\\n }\\n ],\\n \"schemas\": [],\\n \"sources\": [],\\n \"fields\": [\\n { \"canonicalName\": \"indemnification.cap_amount\", \"dataType\": \"string\", \"filterable\": true }\\n ]\\n}',\n },\n ],\n faq: [\n {\n question: \"What does talonic_search do?\",\n answer:\n \"It finds documents, fields, schemas and sources whose name or text contains your keyword, and returns their ids. Search with one short, singular word or an exact file name.\",\n },\n {\n question: \"When should I use talonic_search vs talonic_filter?\",\n answer:\n \"Use search to find a document or field by name ('Acme', 'invoice'). Use filter for conditions on extracted values ('invoices over 1000 EUR').\",\n },\n {\n question: \"Can I search for schemas by name?\",\n answer:\n \"Yes. talonic_search includes schemas in its results. If you search for 'invoice', any schema with 'invoice' in its name or description will appear in the schemas array of the response. This is useful for discovering existing templates before creating new ones.\",\n },\n {\n question: \"How do I use search results to build a filter?\",\n answer:\n \"The fields in the response carry a canonicalName and a filterable flag. Use canonicalName values where filterable is true as `field` in talonic_filter conditions.\",\n },\n ],\n related: [\n {\n label: \"talonic_filter\",\n slug: \"talonic-filter\",\n },\n {\n label: \"talonic_extract\",\n slug: \"talonic-extract\",\n },\n {\n label: \"Agent Decision Guide\",\n slug: \"agent-decision-guide\",\n },\n ],\n mentions: [\"search\", \"find documents\", \"file name\", \"document_id\"],\n },\n talonic_filter: {\n task: \"find\",\n seoTitle: \"talonic_filter — Filter Documents by Extracted Fields\",\n description:\n \"MCP tool that finds documents by their extracted field values with conditions such as eq, gt, between and contains, and reports fields it couldn't match.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{\\n \"conditions\": [\\n { \"field\": \"vendor.name\", \"operator\": \"eq\", \"value\": \"Meridian Energy AG\" },\\n { \"field\": \"invoice.total_eur\", \"operator\": \"gt\", \"value\": 1000 }\\n ],\\n \"sort\": { \"field\": \"invoice.total_eur\", \"direction\": \"desc\" },\\n \"limit\": 20\\n}',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"data\": [\\n {\\n \"document_id\": \"doc_8f3a...\",\\n \"filename\": \"invoice-2026-001.pdf\",\\n \"fields\": {\\n \"vendor.name\": \"Meridian Energy AG\",\\n \"invoice.total_eur\": 1500.00,\\n \"invoice.due_date\": \"2026-06-15\"\\n }\\n },\\n {\\n \"document_id\": \"doc_c2d9...\",\\n \"filename\": \"invoice-2026-003.pdf\",\\n \"fields\": {\\n \"vendor.name\": \"Meridian Energy AG\",\\n \"invoice.total_eur\": 1200.00,\\n \"invoice.due_date\": \"2026-04-30\"\\n }\\n }\\n ],\\n \"total\": 2,\\n \"page\": 1\\n}',\n },\n {\n title: \"Response with a warning\",\n language: \"json\",\n code: '{\\n \"data\": [],\\n \"total\": 0,\\n \"warnings\": [\\n {\\n \"code\": \"numeric_operator_on_string_field\",\\n \"message\": \"Operator `gt` was applied to field `invoice_total` typed as string. Numeric comparisons against string-typed fields use lexicographic ordering and may return zero matches.\",\\n \"field\": \"invoice_total\",\\n \"field_id\": \"fld_inv_total\",\\n \"suggestion\": \"Change the field\\'s data_type to `number` in the schema definition.\"\\n }\\n ]\\n}',\n },\n ],\n faq: [\n {\n question: \"How do I filter documents by field value?\",\n answer:\n \"Use talonic_filter with field names and operators such as eq, gt, between or contains. Field names are matched for you; one it can't match comes back in warnings[].\",\n },\n {\n question: \"How do I find the correct canonical field names for filtering?\",\n answer:\n \"For text fields, try the natural name ('vendor_name', 'currency'). For numbers and dates, call talonic_search first: the canonical names are in fields[].canonicalName.\",\n },\n {\n question: \"Can I combine free-text search with field filters?\",\n answer:\n \"Yes. Pass `search` alongside `conditions` to combine a keyword with value conditions in one call.\",\n },\n {\n question: \"What operators are available for talonic_filter?\",\n answer:\n \"eq, neq, gt, gte, lt, lte, between (with value_to), contains, is_empty and is_not_empty. The number comparisons work only on fields stored as numbers.\",\n },\n {\n question: \"Why does my filter return zero results even though matching documents exist?\",\n answer:\n \"Usually a number comparison on a field stored as text, for example amounts with currency symbols. Check the field's dataType first, and read warnings[] on the response.\",\n },\n ],\n related: [\n {\n label: \"talonic_search\",\n slug: \"talonic-search\",\n },\n {\n label: \"Known Limitations\",\n slug: \"known-limitations\",\n },\n {\n label: \"Agent Decision Guide\",\n slug: \"agent-decision-guide\",\n },\n ],\n mentions: [\"filter\", \"canonical field names\", \"operators\", \"conditions\"],\n },\n talonic_to_markdown: {\n task: \"extract\",\n seoTitle: \"talonic_to_markdown — Read Any Document as Clean Markdown\",\n description:\n \"MCP tool that returns a whole document's text as markdown, scanned pages included. Takes a document_id, a file URL, or a local file or bytes; no schema needed.\",\n credits: \"Free with `document_id`; a file input is read first and uses credits.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{\\n \"document_id\": \"doc_8f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c\"\\n}',\n },\n {\n title: \"Tool response\",\n language: \"markdown\",\n code: \"# Invoice INV-2026-001\\n\\n**Meridian Energy AG**\\nMusterstraße 42, 10115 Berlin\\n\\n| Item | Amount |\\n|-----------------------|------------|\\n| Consulting — April | €1,200.00 |\\n| Travel expenses | €300.00 |\\n| **Total** | **€1,500.00** |\\n\\nDue date: 15 June 2026\\nPayment terms: Net 30\",\n },\n {\n title: \"Tool input: convert a remote PDF to markdown\",\n language: \"json\",\n code: '{\\n \"file_url\": \"https://example.com/annual-report-2025.pdf\"\\n}',\n },\n ],\n faq: [\n {\n question: \"How do I get markdown from a document via MCP?\",\n answer:\n \"Call talonic_to_markdown with a document_id (free), or pass the file as file_url, file_path (local installs) or file_data.\",\n },\n {\n question: \"Does talonic_to_markdown preserve table structure?\",\n answer:\n \"Yes. Tables come back as markdown tables, and headings and reading order follow the original document.\",\n },\n {\n question: \"Should I use talonic_to_markdown or talonic_extract with include_markdown?\",\n answer:\n \"If you only need the text, use talonic_to_markdown. If you need both structured fields and the full text, use talonic_extract with include_markdown: true to avoid two separate calls.\",\n },\n {\n question: \"Can I use talonic_to_markdown for document comparison?\",\n answer:\n \"Yes. Get both versions as markdown and compare the text. Use document_id for files already in the workspace so nothing is uploaded twice.\",\n },\n {\n question: \"Does talonic_to_markdown handle scanned documents?\",\n answer:\n \"Yes. Scanned PDFs, photos and images (PNG, JPG, TIFF) are read too, including headers, stamps and legible handwriting.\",\n },\n ],\n related: [\n {\n label: \"talonic_extract\",\n slug: \"talonic-extract\",\n },\n {\n label: \"Drag & Drop Files\",\n slug: \"drag-and-drop\",\n },\n ],\n mentions: [\"markdown\", \"document text\", \"scanned documents\", \"tables\"],\n },\n talonic_extract: {\n task: \"extract\",\n seoTitle: \"talonic_extract — Structured Document Extraction Tool\",\n description:\n \"MCP tool that extracts structured, schema-validated JSON from documents with per-field confidence scores. Accepts file data, paths, URLs, or document IDs.\",\n credits: \"Uses credits per page read.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{\\n \"file_url\": \"https://example.com/invoice-2026-001.pdf\",\\n \"schema\": {\\n \"type\": \"object\",\\n \"properties\": {\\n \"vendor_name\": { \"type\": \"string\" },\\n \"invoice_number\": { \"type\": \"string\" },\\n \"total_amount\": { \"type\": \"number\" },\\n \"due_date\": { \"type\": \"string\", \"format\": \"date\" },\\n \"line_items\": {\\n \"type\": \"array\",\\n \"items\": {\\n \"type\": \"object\",\\n \"properties\": {\\n \"description\": { \"type\": \"string\" },\\n \"amount\": { \"type\": \"number\" }\\n }\\n }\\n }\\n },\\n \"required\": [\"vendor_name\", \"total_amount\"]\\n },\\n \"instructions\": \"Amounts are in EUR. Focus on the billing section.\"\\n}',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"extraction_id\": \"ext_8f3a...\",\\n \"request_id\": \"req_2c91...\",\\n \"status\": \"complete\",\\n \"document\": {\\n \"id\": \"doc_8f3a...\",\\n \"filename\": \"invoice-2026-001.pdf\",\\n \"pages\": 2,\\n \"type_detected\": \"invoice\",\\n \"language_detected\": \"de\"\\n },\\n \"data\": {\\n \"vendor_name\": \"Meridian Energy AG\",\\n \"invoice_number\": \"INV-2026-001\",\\n \"total_amount\": 1500.00,\\n \"due_date\": \"2026-06-15\",\\n \"line_items\": [\\n { \"description\": \"Consulting, April\", \"amount\": 1200.00 },\\n { \"description\": \"Travel expenses\", \"amount\": 300.00 }\\n ]\\n },\\n \"schema\": {\\n \"source\": \"inline\"\\n },\\n \"confidence\": {\\n \"overall\": 0.97,\\n \"fields\": {\\n \"vendor_name\": 0.98,\\n \"invoice_number\": 0.95,\\n \"total_amount\": 0.99,\\n \"due_date\": 0.97\\n }\\n },\\n \"processing\": {\\n \"duration_ms\": 2840,\\n \"pages_processed\": 2,\\n \"region\": \"eu-central-1\"\\n }\\n}',\n },\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{\\n \"file_path\": \"./contracts/lease-agreement.pdf\",\\n \"schema_id\": \"SCH-A1B2C3D4\"\\n}',\n },\n ],\n faq: [\n {\n question: \"How does talonic_extract work?\",\n answer:\n \"Send a document (document_id, file_url, file_path in a local install, or small file_data) with the fields you want (schema or schema_id). It returns JSON in that shape with a confidence score per field.\",\n },\n {\n question: \"What is the fastest way to extract data from a document?\",\n answer:\n \"If the document is already in your workspace, pass its document_id. For files on the web, pass file_url. In Claude.ai and ChatGPT, get an upload link with talonic_request_upload rather than sending file bytes.\",\n },\n {\n question: \"How long does an extraction typically take?\",\n answer:\n \"It grows with the document: a two-page invoice usually takes a few seconds, longer documents more. processing.duration_ms on the response shows how long it took.\",\n },\n ],\n related: [\n {\n label: \"talonic_to_markdown\",\n slug: \"talonic-to-markdown\",\n },\n {\n label: \"talonic_save_schema\",\n slug: \"talonic-save-schema\",\n },\n {\n label: \"Drag & Drop Files\",\n slug: \"drag-and-drop\",\n },\n ],\n mentions: [\"extract\", \"schema\", \"confidence scores\", \"file_data\"],\n },\n talonic_get_balance: {\n task: \"workspace\",\n seoTitle: \"talonic_get_balance — Check Credits, Burn Rate, Runway\",\n description:\n \"MCP tool that returns your Talonic credit balance, its EUR value, 30-day burn rate, projected runway and plan reset date, for agents that watch their budget.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: \"{}\",\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"balance_credits\": 1888,\\n \"balance_eur\": 9.44,\\n \"burn_rate_30d_credits\": 360,\\n \"projected_runway_days\": 157,\\n \"tier\": \"pro\",\\n \"tier_resets_at\": \"2026-06-01T00:00:00.000Z\"\\n}',\n },\n ],\n faq: [\n {\n question: \"How do I check my Talonic credit balance from an agent?\",\n answer:\n \"Call talonic_get_balance with no arguments. It returns balance_credits, balance_eur, burn_rate_30d_credits, projected_runway_days, tier and tier_resets_at. Read-only and free.\",\n },\n {\n question: \"What does projected_runway_days = -1 mean?\",\n answer:\n \"It means the workspace has had zero credit consumption in the trailing 30 days, so a meaningful runway projection cannot be computed. Treat -1 as 'unknown' rather than '0 days'.\",\n },\n {\n question: \"Should the agent check balance before every extraction?\",\n answer:\n \"Not for single extractions — that would add unnecessary latency. Check the balance before batch operations (10+ documents) or when the user explicitly asks about credits. For single extractions, proceed directly and let the API return a quota error if the balance is exhausted.\",\n },\n {\n question: \"How does the agent know the cost of an extraction?\",\n answer:\n \"Each talonic_extract response carries a cost field with the credits it used. Check the balance before a large batch and again after it.\",\n },\n ],\n related: [\n {\n label: \"talonic_extract\",\n slug: \"talonic-extract\",\n },\n {\n label: \"talonic_get_pricing\",\n slug: \"talonic-get-pricing\",\n },\n {\n label: \"talonic_get_usage\",\n slug: \"talonic-get-usage\",\n },\n ],\n mentions: [\"credits\", \"balance\", \"EUR\", \"burn rate\", \"runway\", \"budget\"],\n },\n talonic_get_pricing: {\n task: \"workspace\",\n seoTitle: \"talonic_get_pricing — Credit Pricing Catalog for Agents\",\n description:\n \"MCP tool that returns Talonic's public credit pricing catalog: per-unit rates, EUR equivalents, and batch multipliers, so agents can predict spend upfront.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: \"{}\",\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"currency\": \"EUR\",\\n \"credits_per_eur\": 1000,\\n \"multipliers\": { \"realtime\": 1, \"batch\": 0.5 },\\n \"units\": [\\n { \"unit\": \"page_ingest\", \"label\": \"Document page ingestion\", \"credits\": 100, \"eur\": 0.1, \"free\": false },\\n { \"unit\": \"structuring_cell\", \"label\": \"Structuring cell (LLM-reasoned)\", \"credits\": 20, \"eur\": 0.02, \"free\": false },\\n { \"unit\": \"registry_resolved_cell\", \"label\": \"Structuring cell (Field Registry resolved)\", \"credits\": 0, \"eur\": 0, \"free\": true },\\n { \"unit\": \"intelligence_op\", \"label\": \"Intelligence operation (matching, cases, reconciliation)\", \"credits\": 100, \"eur\": 0.1, \"free\": false },\\n { \"unit\": \"delivery\", \"label\": \"Delivery (webhook / export)\", \"credits\": 0, \"eur\": 0, \"free\": true },\\n { \"unit\": \"validation\", \"label\": \"Validation / quality check\", \"credits\": 0, \"eur\": 0, \"free\": true }\\n ]\\n}',\n },\n ],\n faq: [\n {\n question: \"Does talonic_get_pricing require an API key?\",\n answer:\n \"No. The pricing catalog is public, so an agent can read rates before signing up or provisioning a key. Call it with no arguments; it is read-only and safe to call at any time.\",\n },\n {\n question: \"How does an agent compute the cost of a job from the catalog?\",\n answer:\n \"Multiply the credits per unit by the number of units (pages, fields or operations), apply the multiplier (batch work costs half), and divide by credits_per_eur for euros.\",\n },\n {\n question: \"Which operations are free in the catalog?\",\n answer:\n \"The catalog marks free units with `free: true`. Searching, listing, look-ups and reading stored text are free; reading new documents, filling fields and matching use credits.\",\n },\n ],\n related: [\n {\n label: \"talonic_get_usage\",\n slug: \"talonic-get-usage\",\n },\n {\n label: \"talonic_get_balance\",\n slug: \"talonic-get-balance\",\n },\n ],\n mentions: [\n \"pricing\",\n \"credit catalog\",\n \"cost estimation\",\n \"per-page pricing\",\n \"batch discount\",\n \"credits per EUR\",\n \"budget\",\n ],\n },\n talonic_get_usage: {\n task: \"workspace\",\n seoTitle: \"talonic_get_usage — See What Your Talonic Credits Went On\",\n description:\n \"MCP tool that breaks down Talonic credit use by kind of work over a trailing window (30 days by default), largest first, so you can see what drives spend.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{ \"days\": 30 }',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"period_days\": 30,\\n \"total_credits\": 48200,\\n \"by_function\": [\\n { \"operation_type\": \"page_ingest\", \"operations\": 412, \"credits\": 41200 },\\n { \"operation_type\": \"structuring_cell\", \"operations\": 300, \"credits\": 6000 },\\n { \"operation_type\": \"intelligence_op\", \"operations\": 10, \"credits\": 1000 }\\n ]\\n}',\n },\n ],\n faq: [\n {\n question: \"How is talonic_get_usage different from talonic_get_balance?\",\n answer:\n \"Balance says what is left (and how long it lasts); usage says what was spent and on what. Use balance to check headroom and usage to see where credits went.\",\n },\n {\n question: \"What window does talonic_get_usage cover?\",\n answer:\n \"The last 30 days by default. Pass days to change it, anywhere from 1 to 365. The response echoes period_days so the agent can confirm the window it summarized.\",\n },\n {\n question: \"Why is the breakdown empty?\",\n answer:\n \"Rows appear once work has been charged in the window. A new workspace, or one with no charged work in the period, returns an empty breakdown; widen `days` to look further back.\",\n },\n ],\n related: [\n {\n label: \"talonic_get_pricing\",\n slug: \"talonic-get-pricing\",\n },\n {\n label: \"talonic_get_balance\",\n slug: \"talonic-get-balance\",\n },\n ],\n mentions: [\n \"credit usage\",\n \"per-function spend\",\n \"credit consumption\",\n \"burn rate\",\n \"operation type\",\n \"spend report\",\n ],\n },\n talonic_request_upload: {\n task: \"extract\",\n seoTitle: \"talonic_request_upload — Upload Links for Large Files\",\n description:\n \"MCP tool that gives the user a browser link to upload a file too large for a chat tool call. Returns the link, a reserved document_id and when the link expires.\",\n credits: \"The link is free; reading the uploaded file uses credits.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{\\n \"filename\": \"invoice-2026-001.pdf\"\\n}',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"document_id\": \"doc_8f3a2b9c-1d4e-5f6a-7b8c-9d0e1f2a3b4c\",\\n \"upload_url\": \"https://app.talonic.com/u/069b8d9a-b05d-41df-8047-129af7c7aad5\",\\n \"expires_at\": \"2026-05-28T20:35:00.000Z\"\\n}',\n },\n ],\n faq: [\n {\n question: \"When should the agent use `talonic_request_upload` instead of `file_data`?\",\n answer:\n \"In Claude.ai and ChatGPT, where a tool call can carry only about 32 KB; real documents are larger and arrive cut short as file_data. Local installs (Claude Desktop, Cursor, Cline, Continue, Cowork) can pass files by path instead.\",\n },\n {\n question: \"Does a user message like 'uploaded' mean the file is ready to extract?\",\n answer:\n \"No. It means the browser finished sending the file; Talonic still needs a short while to read it. Check talonic_get_document until status is 'completed' before extracting.\",\n },\n {\n question: \"What happens if the user never opens the upload link?\",\n answer:\n \"The reserved document stays in pending_upload. The link stops working at expires_at; ask for a new one with talonic_request_upload, which reserves a new document_id.\",\n },\n {\n question: \"Can the agent PUT the file to the upload_url itself?\",\n answer:\n \"Usually not: hosted chat clients can't send data to arbitrary addresses. And the user should choose the file anyway, so give them the link.\",\n },\n {\n question: \"How do I keep a company's files together, and make them workspace data?\",\n answer:\n \"Pass `account` (a company name, alias or id from talonic_list_accounts; create one with talonic_create_account) so the document belongs to that company, and `add_to_workspace: true` so it is fully processed and can be asked about later. Without add_to_workspace only its text is kept, for one talonic_extract call.\",\n },\n {\n question: \"Why a separate tool instead of changing `talonic_extract`?\",\n answer:\n \"Keeping the upload step separate means the user sees the link and knows what is happening, and talonic_extract behaves the same for every file.\",\n },\n ],\n related: [\n {\n label: \"talonic_extract\",\n slug: \"talonic-extract\",\n },\n {\n label: \"talonic_get_document\",\n slug: \"talonic-get-document\",\n },\n {\n label: \"Drag & Drop Files\",\n slug: \"drag-and-drop\",\n },\n {\n label: \"Known Limitations\",\n slug: \"known-limitations\",\n },\n ],\n mentions: [\"upload\", \"upload link\", \"document_id\", \"Claude.ai\", \"ChatGPT\", \"file size\"],\n },\n talonic_list_accounts: {\n task: \"workspace\",\n seoTitle: \"talonic_list_accounts — List Per-Company Workspace Accounts\",\n description:\n \"MCP tool that lists the companies a Talonic workspace keeps apart (portfolio companies, clients, entities), so uploads and questions stay separate per company.\",\n faq: [\n {\n question: \"What if the company is missing?\",\n answer:\n \"Create it with talonic_create_account, then upload with `account` set to its name.\",\n },\n ],\n related: [\n {\n label: \"talonic_request_upload\",\n slug: \"talonic-request-upload\",\n },\n ],\n mentions: [\"account\", \"company\", \"portfolio company\", \"upload\"],\n },\n talonic_create_account: {\n task: \"workspace\",\n seoTitle: \"talonic_create_account — Add a Company Account to Talonic\",\n description:\n \"MCP tool that adds a company to a Talonic workspace, with the other names it goes by, so its documents and answers are kept apart from every other company's.\",\n faq: [\n {\n question: \"Why give aliases?\",\n answer:\n 'Documents name the same company differently (\"Filu\", \"Filu Group GmbH\"). Aliases let uploads and questions refer to the account by any of those names.',\n },\n ],\n related: [\n {\n label: \"talonic_request_upload\",\n slug: \"talonic-request-upload\",\n },\n ],\n mentions: [\"account\", \"company\", \"portfolio company\", \"upload\"],\n },\n talonic_list_fields: {\n task: \"find\",\n seoTitle: \"talonic_list_fields — List the Fields Your Documents Carry\",\n description:\n \"MCP tool that lists the fields across a Talonic workspace's documents with stable ids, maturity, data type, synonyms and counts, so agents query the right one.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{ \"search\": \"invoice\", \"maturity\": \"proven\", \"limit\": 5 }',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"data\": [\\n {\\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\\n \"canonical_name\": \"invoice_number\",\\n \"display_name\": \"Invoice Number\",\\n \"data_type\": \"string\",\\n \"maturity\": \"proven\",\\n \"tier\": 2,\\n \"synonyms\": [\"inv_no\", \"invoice no\"],\\n \"description\": \"The supplier\\'s invoice identifier\",\\n \"occurrence_count\": 412,\\n \"superseded_by\": null,\\n \"links\": { \"self\": \"/v1/fields/a1b2…\", \"card\": \"/v1/fields/a1b2…/card\", \"values\": \"/v1/fields/a1b2…/values\" }\\n }\\n ],\\n \"pagination\": { \"total\": 1, \"limit\": 5, \"has_more\": false, \"next_cursor\": null }\\n}',\n },\n ],\n faq: [\n {\n question: \"What does maturity mean and which level should I build on?\",\n answer:\n \"`core` fields are established and trusted; `proven` fields recur and have a stable id; `candidate` fields were seen recently and may still be merged or renamed. Build on `core` or `proven`; treat `candidate` as a hint.\",\n },\n ],\n related: [\n {\n label: \"talonic_search\",\n slug: \"talonic-search\",\n },\n {\n label: \"talonic_filter\",\n slug: \"talonic-filter\",\n },\n ],\n mentions: [\"list fields\", \"maturity\", \"field names\", \"superseded_by\", \"field ids\"],\n },\n talonic_get_field: {\n task: \"find\",\n seoTitle: \"talonic_get_field — Describe One Field, by Id or Name\",\n description:\n \"MCP tool that describes one field by id or name: what it means, synonyms, maturity, how often it occurs, its top values with examples and the schemas using it.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{ \"name\": \"Invoice No\", \"include_history\": true }',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\\n \"canonical_name\": \"invoice_number\",\\n \"maturity\": \"proven\",\\n \"data_type\": \"string\",\\n \"definition\": { \"description\": \"The supplier\\'s invoice identifier\", \"instruction\": \"Extract the invoice number as printed\", \"synonyms\": [\"inv_no\"], \"aliases\": [{ \"name\": \"invoice no\", \"source\": \"merge\" }] },\\n \"identity\": { \"pinned\": false, \"source\": null, \"superseded_by\": null, \"absorbed\": [] },\\n \"occurrence\": { \"occurrence_count\": 412, \"document_count\": 398, \"first_seen_at\": \"2026-03-02T09:14:00.000Z\", \"last_seen_at\": \"2026-09-04T16:02:11.000Z\", \"document_type_distribution\": { \"invoice\": 398 } },\\n \"values\": { \"total\": 412, \"distinct_count\": 405, \"top\": [{ \"value\": \"INV-2026-0001\", \"count\": 2, \"share\": 0.0049 }], \"examples\": [\"INV-2026-0001\", \"RE-88231\"] },\\n \"usage\": { \"schema_count\": 2, \"schema_field_count\": 2 },\\n \"resolution\": { \"matched_by\": \"synonym\", \"redirected_from\": [] },\\n \"history\": { \"total\": 1, \"data\": [{ \"kind\": \"tier_changed\", \"at\": \"2026-04-01T00:00:00.000Z\", \"detail\": { \"direction\": \"promoted\", \"from_maturity\": \"candidate\", \"to_maturity\": \"proven\" } }] }\\n}',\n },\n ],\n faq: [\n {\n question: \"Can I pass the user's wording instead of an id?\",\n answer:\n \"Yes. `name` is matched against field names, other spellings and synonyms, and followed to the current field if it was merged; `resolution.matched_by` says how it matched.\",\n },\n ],\n related: [\n {\n label: \"talonic_search\",\n slug: \"talonic-search\",\n },\n {\n label: \"talonic_filter\",\n slug: \"talonic-filter\",\n },\n ],\n mentions: [\"field definition\", \"field by name\", \"example values\", \"field history\"],\n },\n talonic_field_values: {\n task: \"find\",\n seoTitle: \"talonic_field_values — Read a Field Across Documents\",\n description:\n \"MCP tool that reads one field's current values across all documents with evidence: the document, the value, its confidence, the source text and how it matched.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{ \"name\": \"invoice_number\", \"value\": \"2026\", \"limit\": 2 }',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"field_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\\n \"canonical_name\": \"invoice_number\",\\n \"concept_ids\": [\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"],\\n \"data\": [\\n {\\n \"occurrence_id\": \"0f1e2d3c-…\",\\n \"document_id\": \"f0e1d2c3-…\",\\n \"document_filename\": \"RE-2026-0142.pdf\",\\n \"document_type\": \"invoice\",\\n \"value\": \"INV-2026-0142\",\\n \"confidence\": 0.97,\\n \"provenance\": { \"raw_field_name\": \"Rechnungsnummer\", \"source_text\": \"Rechnungsnummer: INV-2026-0142\", \"resolved_by\": \"exact\", \"needs_confirmation\": false, \"via_redirect\": false },\\n \"links\": { \"document\": \"/v1/documents/f0e1…\", \"document_fields\": \"/v1/documents/f0e1…/fields\" }\\n }\\n ],\\n \"pagination\": { \"total\": 37, \"limit\": 2, \"has_more\": true, \"next_cursor\": \"MGYx…\" }\\n}',\n },\n ],\n faq: [\n {\n question: \"Are the values filtered by the caller's document visibility?\",\n answer:\n \"Yes. Only values from documents you are allowed to see come back, and `pagination.total` counts only those.\",\n },\n ],\n related: [\n {\n label: \"talonic_search\",\n slug: \"talonic-search\",\n },\n {\n label: \"talonic_filter\",\n slug: \"talonic-filter\",\n },\n ],\n mentions: [\n \"field values\",\n \"values across documents\",\n \"provenance\",\n \"source text\",\n \"cross-document\",\n ],\n },\n talonic_find_data: {\n task: \"find\",\n seoTitle: \"talonic_find_data — Find Where the Data for a Concept Lives\",\n description:\n \"MCP tool that finds the fields, values, documents and passages behind a concept in your own words, even under another field name, optionally within one company.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{ \"query\": \"revenue\", \"account\": \"Filu\", \"top_k\": 5 }',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"tool\": \"find_data\",\\n \"result\": {\\n \"fields\": [{ \"canonical_name\": \"contract_end_date\", \"field_key\": \"contract_end_date\", \"occurrence_count\": 88, \"samples\": [{ \"value\": \"2027-12-31\", \"document_id\": \"f0e1…\" }] }],\\n \"documents\": [{ \"document_id\": \"f0e1…\", \"filename\": \"Supply-Agreement-2024.pdf\", \"score\": 0.81 }],\\n \"passages\": []\\n },\\n \"citations\": [{ \"document_id\": \"f0e1…\" }]\\n}',\n },\n ],\n faq: [\n {\n question: \"How is this different from talonic_search?\",\n answer:\n \"`talonic_search` matches your words literally. `talonic_find_data` also matches what you mean, across fields and document text, and returns ids (fields, documents, passages) ready for the next call.\",\n },\n ],\n related: [\n {\n label: \"talonic_search\",\n slug: \"talonic-search\",\n },\n {\n label: \"talonic_filter\",\n slug: \"talonic-filter\",\n },\n ],\n mentions: [\"find data\", \"which field holds\", \"locate data\", \"passages\"],\n },\n talonic_list_agent_tools: {\n task: \"ask\",\n seoTitle: \"talonic_list_agent_tools — List Talonic's Data Query Tools\",\n description:\n \"MCP tool that lists Talonic's read-only data tools, such as SQL over extracted data and document text, with their input schemas and whether you may call them.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{ \"only_invocable\": true, \"include_schemas\": false }',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"tools\": [\\n { \"name\": \"find_data\", \"description\": \"CALL THIS FIRST to locate the real data behind a natural-language concept…\", \"impact\": \"read\", \"capability\": \"data.read\", \"can_invoke\": true },\\n { \"name\": \"query_data\", \"description\": \"Run a read-only SQL SELECT over the extracted data…\", \"impact\": \"read\", \"capability\": \"data.read\", \"can_invoke\": true }\\n ],\\n \"invocable_count\": 12,\\n \"totalCount\": 48\\n}',\n },\n ],\n faq: [\n {\n question: \"Why are some tools listed with can_invoke false?\",\n answer:\n \"Calls through this route run with read-only access (`data.read`), so tools that spend credits or write are listed for completeness but cannot be called here.\",\n },\n ],\n related: [\n {\n label: \"talonic_search\",\n slug: \"talonic-search\",\n },\n {\n label: \"talonic_filter\",\n slug: \"talonic-filter\",\n },\n ],\n mentions: [\"data tools\", \"query_data\", \"describe_data\", \"capabilities\", \"can_invoke\"],\n },\n talonic_invoke_agent_tool: {\n task: \"ask\",\n seoTitle: \"talonic_invoke_agent_tool — Run a Read-Only Data Query Tool\",\n description:\n \"MCP tool that runs one of Talonic's read-only data tools with your own arguments, for example a SQL query over extracted data or a document's text. Reads only.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{ \"name\": \"query_data\", \"args\": { \"sql\": \"SELECT field_key, count(*) FROM cells GROUP BY 1 ORDER BY 2 DESC LIMIT 5\" } }',\n },\n {\n title: \"Tool response\",\n language: \"json\",\n code: '{\\n \"tool\": \"query_data\",\\n \"result\": { \"rows\": [{ \"field_key\": \"invoice_number\", \"count\": 412 }], \"row_count\": 1 }\\n}',\n },\n ],\n faq: [\n {\n question: \"Does invoking a tool cost credits?\",\n answer:\n \"No. The tools you can call here only read data and use no credits; the route has its own rate limit instead.\",\n },\n ],\n related: [\n {\n label: \"talonic_search\",\n slug: \"talonic-search\",\n },\n {\n label: \"talonic_filter\",\n slug: \"talonic-filter\",\n },\n ],\n mentions: [\n \"invoke tool\",\n \"query_data\",\n \"sql over extracted data\",\n \"document markdown\",\n \"read-only\",\n ],\n },\n talonic_list_specs: {\n task: \"run\",\n seoTitle: \"talonic_list_specs — List the Specs Your Agent Can Run\",\n description:\n \"MCP tool that lists the Specs in your Talonic workspace (saved ways of reading a kind of document) with schema ids, publish state and field and step counts.\",\n faq: [\n {\n question: \"Why does a Spec have both an id and a schema_id?\",\n answer:\n \"The Spec is what you set up; the rows a run produces follow a schema, which has its own id. `talonic_run_spec` takes the Spec id.\",\n },\n ],\n related: [\n {\n label: \"talonic_get_spec\",\n slug: \"talonic-get-spec\",\n },\n {\n label: \"talonic_run_spec\",\n slug: \"talonic-run-spec\",\n },\n ],\n mentions: [\"specs\", \"list specs\", \"spec id\"],\n },\n talonic_get_spec: {\n task: \"run\",\n seoTitle: \"talonic_get_spec — Read a Spec's Steps, Schema and Fields\",\n description:\n \"MCP tool that returns one Spec in full: version state, the schema its rows follow, its steps as set up and in run order, and how its fields map to the schema.\",\n faq: [\n {\n question: \"Why do nodes and phases differ?\",\n answer:\n \"`nodes[]` lists the steps as they were set up, in editing order; `phases[]` lists them in the order a run carries them out. One check can appear several times in `phases[]`, so the lists can differ.\",\n },\n ],\n related: [\n {\n label: \"talonic_list_specs\",\n slug: \"talonic-list-specs\",\n },\n {\n label: \"talonic_run_spec\",\n slug: \"talonic-run-spec\",\n },\n ],\n mentions: [\"spec structure\", \"steps\", \"spec versions\"],\n },\n talonic_run_spec: {\n task: \"run\",\n seoTitle: \"talonic_run_spec — Run a Spec over Your Documents via MCP\",\n description:\n \"MCP tool that runs a Spec over workspace documents or public file URLs in one call and returns a run the agent follows until one row per document is ready.\",\n credits: \"Uses credits per document processed.\",\n faq: [\n {\n question: \"Does this cost credits?\",\n answer:\n \"Yes. Reading documents and filling fields use credits per document, exactly as a run started in the web app; checks and delivery are free. Check talonic_get_pricing and talonic_get_balance before a large batch.\",\n },\n ],\n related: [\n {\n label: \"talonic_get_run\",\n slug: \"talonic-get-run\",\n },\n {\n label: \"talonic_get_run_results\",\n slug: \"talonic-get-run-results\",\n },\n {\n label: \"talonic_request_upload\",\n slug: \"talonic-request-upload\",\n },\n ],\n mentions: [\"run spec\", \"file_urls\", \"document_ids\", \"pipeline_mode\"],\n },\n talonic_get_run: {\n task: \"run\",\n seoTitle: \"talonic_get_run — Poll a Spec Run's Status and Progress\",\n description:\n \"MCP tool that checks a Spec run started by talonic_run_spec: its status, how many documents are done or failed, and for larger runs the progress of each step.\",\n faq: [\n {\n question: \"How long does a run take?\",\n answer:\n \"Seconds per document to read it, plus whatever checks, look-ups and deliveries the Spec has. Check every 5 to 10 seconds and stop on completed or failed.\",\n },\n ],\n related: [\n {\n label: \"talonic_run_spec\",\n slug: \"talonic-run-spec\",\n },\n {\n label: \"talonic_get_run_results\",\n slug: \"talonic-get-run-results\",\n },\n ],\n mentions: [\"run status\", \"poll run\", \"run progress\"],\n },\n talonic_get_run_results: {\n task: \"run\",\n seoTitle: \"talonic_get_run_results — Read Structured Rows of a Run\",\n description:\n \"MCP tool that reads a Spec run's structured rows, one per document, with column definitions, clean per-field values and the count of values still in review.\",\n faq: [\n {\n question: \"Why is a value null?\",\n answer:\n \"Values held for review come back null until a reviewer approves them; `pending_review_count` says how many are held on the page.\",\n },\n ],\n related: [\n {\n label: \"talonic_get_run\",\n slug: \"talonic-get-run\",\n },\n {\n label: \"talonic_field_values\",\n slug: \"talonic-field-values\",\n },\n ],\n mentions: [\"run results\", \"structured rows\", \"columns\", \"pending review\"],\n },\n talonic_ask: {\n task: \"ask\",\n seoTitle: \"talonic_ask — Ask Cited, Verified Questions of Documents\",\n description:\n \"MCP tool that answers a natural-language question over your workspace documents as cited markdown with per-claim source links and a verification verdict.\",\n credits: \"Uses credits per question; `usage.credits_charged` on the answer says how many.\",\n faq: [\n {\n question: \"What if the answer is not ready in time?\",\n answer:\n \"The tool returns status `processing` with the `ask_id`; call `talonic_get_answer` with it a few seconds later. Passing `conversation_id` lets follow-up questions see earlier turns.\",\n },\n ],\n related: [\n {\n label: \"talonic_get_answer\",\n slug: \"talonic-get-answer\",\n },\n {\n label: \"talonic_find_data\",\n slug: \"talonic-find-data\",\n },\n {\n label: \"talonic_field_values\",\n slug: \"talonic-field-values\",\n },\n ],\n mentions: [\"ask\", \"question answering\", \"cited answer\", \"verification\", \"conversation\"],\n },\n talonic_get_answer: {\n task: \"ask\",\n seoTitle: \"talonic_get_answer — Poll a Talonic Ask for Its Answer\",\n description:\n \"MCP tool that collects the answer to a question started with talonic_ask once it is ready, cited and checked, so agents never block on long questions.\",\n faq: [\n {\n question: \"How often should I poll?\",\n answer: \"Every 2–5 seconds; most asks complete within a minute.\",\n },\n ],\n related: [\n {\n label: \"talonic_ask\",\n slug: \"talonic-ask\",\n },\n ],\n mentions: [\"get answer\", \"poll ask\", \"answer status\"],\n },\n talonic_list_apps: {\n task: \"apps\",\n seoTitle: \"talonic_list_apps — List the Apps in Your Workspace\",\n description:\n \"MCP tool that lists the Talonic Apps in a workspace with their id, name, one-line description, mode and enabled state, and supplies the app ids tools need.\",\n related: [\n {\n label: \"talonic_list_decision_tasks\",\n slug: \"talonic-list-decision-tasks\",\n },\n ],\n mentions: [\"apps\", \"app_id\", \"External mode\"],\n },\n talonic_list_agent_tasks: {\n task: \"review\",\n seoTitle: \"talonic_list_agent_tasks — Tasks Waiting for Your Agent\",\n description:\n \"MCP tool that lists the agent tasks in your Talonic workspace: checks a Spec hands to an outside agent, metadata only, with a status filter and cursor paging.\",\n examples: [\n {\n title: \"Tool input and response\",\n language: \"json\",\n code: '// talonic_list_agent_tasks({ \"status\": \"available\", \"limit\": 2 })\\n{\\n \"data\": [\\n {\\n \"id\": \"11111111-1111-4111-8111-111111111111\",\\n \"document_id\": \"22222222-2222-4222-8222-222222222222\",\\n \"stage_id\": \"33333333-3333-4333-8333-333333333333\",\\n \"status\": \"available\",\\n \"execution_epoch\": 1,\\n \"claimed_at\": null,\\n \"lease_expires_at\": null,\\n \"timeout_at\": \"2026-08-30T12:00:00.000Z\",\\n \"created_at\": \"2026-08-29T09:15:00.000Z\"\\n }\\n ],\\n \"pagination\": { \"has_more\": false, \"next_cursor\": null }\\n}',\n },\n ],\n faq: [\n {\n question: \"Does listing Agent tasks expose document data?\",\n answer:\n \"No. The list returns metadata only. Reading a task's input takes talonic_get_agent_task, and each read is recorded.\",\n },\n {\n question: \"What do the Agent task statuses mean?\",\n answer:\n \"available: no one holds it; claimed: an agent holds a live lease; submitted: the outputs were accepted and the document moved on; timed_out: the deadline passed without a submission; cancelled: the task was withdrawn, for example because the document was removed or the Spec changed.\",\n },\n {\n question: \"How does pagination work on the Agent-task worklist?\",\n answer:\n \"Pass limit (1 to 100, default 50). While pagination.has_more is true, pass pagination.next_cursor as cursor on the next call, with the same status filter.\",\n },\n ],\n related: [\n {\n label: \"talonic_get_agent_task\",\n slug: \"talonic-get-agent-task\",\n },\n {\n label: \"talonic_claim_agent_task\",\n slug: \"talonic-claim-agent-task\",\n },\n {\n label: \"talonic_submit_agent_task\",\n slug: \"talonic-submit-agent-task\",\n },\n ],\n mentions: [\"agent tasks\", \"worklist\", \"MCP agent\", \"cursor pagination\"],\n },\n talonic_get_agent_task: {\n task: \"review\",\n seoTitle: \"talonic_get_agent_task — Fetch an Agent Task's Payload\",\n description:\n \"MCP tool that reads one agent task's fixed input, instructions and the output fields it expects, before your agent decides to take it. Every read is recorded.\",\n examples: [\n {\n title: \"Tool input\",\n language: \"json\",\n code: '{ \"task_id\": \"11111111-1111-4111-8111-111111111111\" }',\n },\n ],\n faq: [\n {\n question: \"Can the snapshot change while an agent processes it?\",\n answer:\n \"No. The input is fixed when the task is created and does not change. Results are checked against the task's output_contract.\",\n },\n {\n question: \"Does fetching an Agent task claim it?\",\n answer:\n \"No. talonic_get_agent_task is read-only; the task stays available and another agent can claim it while you inspect. Call talonic_claim_agent_task to take the lease before processing.\",\n },\n {\n question: \"What does timeout_fallthrough mean?\",\n answer:\n \"It says what happens if nobody submits before timeout_at: hold keeps the document waiting, skip lets it continue without the agent's outputs, and route_to_review sends it to a person. Use it to judge how urgent a task is.\",\n },\n ],\n related: [\n {\n label: \"talonic_list_agent_tasks\",\n slug: \"talonic-list-agent-tasks\",\n },\n {\n label: \"talonic_claim_agent_task\",\n slug: \"talonic-claim-agent-task\",\n },\n ],\n mentions: [\"agent task\", \"output contract\", \"audit trail\", \"document task\"],\n },\n talonic_claim_agent_task: {\n task: \"review\",\n seoTitle: \"talonic_claim_agent_task — Lease an Agent Task Safely\",\n description:\n \"MCP tool that claims an available agent task before your agent works on it. Returns the task, an execution epoch and a lease, so two agents never collide.\",\n examples: [\n {\n title: \"Tool input and response (payload fields elided)\",\n language: \"json\",\n code: '// talonic_claim_agent_task({ \"task_id\": \"11111111-1111-4111-8111-111111111111\" })\\n{\\n \"id\": \"11111111-1111-4111-8111-111111111111\",\\n \"status\": \"claimed\",\\n \"execution_epoch\": 2,\\n \"claimed_at\": \"2026-08-29T10:00:00.000Z\",\\n \"lease_expires_at\": \"2026-08-29T10:10:00.000Z\",\\n \"input_snapshot\": { \"...\": \"full payload, same shape as talonic_get_agent_task\" },\\n \"output_contract\": [{ \"key\": \"risk_score\", \"dataType\": \"number\", \"required\": true }],\\n \"instructions\": \"Assess supplier risk from the supplied evidence.\"\\n}',\n },\n ],\n faq: [\n {\n question: \"What is an execution epoch?\",\n answer:\n \"A number that identifies your claim. Every claim or reclaim gets a new one, and calls with an old one are refused, so an agent whose claim ran out cannot overwrite a newer result.\",\n },\n {\n question: \"Can I claim a task that is already claimed?\",\n answer:\n \"Only once its lease has expired. A live claim by another actor returns HTTP 409; after lease_expires_at passes without a heartbeat, the same claim call succeeds as a reclaim and increments the execution epoch.\",\n },\n {\n question: \"What happens if I claim a task and never finish it?\",\n answer:\n \"Nothing is written. The lease runs out and the task can be claimed again; if timeout_at passes with no submission, the task's timeout_fallthrough (hold, skip or route_to_review) decides what happens to the document. An abandoned claim never damages data; it only delays the document.\",\n },\n ],\n related: [\n {\n label: \"talonic_heartbeat_agent_task\",\n slug: \"talonic-heartbeat-agent-task\",\n },\n {\n label: \"talonic_submit_agent_task\",\n slug: \"talonic-submit-agent-task\",\n },\n ],\n mentions: [\"claim lease\", \"execution epoch\", \"conflict\", \"reclaim\"],\n },\n talonic_heartbeat_agent_task: {\n task: \"review\",\n seoTitle: \"talonic_heartbeat_agent_task — Keep a Task Lease Alive\",\n description:\n \"MCP tool that extends the lease on a claimed agent task using its execution epoch, so long-running work is not handed to another agent halfway through.\",\n examples: [\n {\n title: \"Tool input and response (metadata only)\",\n language: \"json\",\n code: '// talonic_heartbeat_agent_task({\\n// \"task_id\": \"11111111-1111-4111-8111-111111111111\",\\n// \"execution_epoch\": 2\\n// })\\n{\\n \"id\": \"11111111-1111-4111-8111-111111111111\",\\n \"status\": \"claimed\",\\n \"execution_epoch\": 2,\\n \"lease_expires_at\": \"2026-08-29T10:20:00.000Z\",\\n \"timeout_at\": \"2026-08-30T12:00:00.000Z\"\\n}',\n },\n ],\n faq: [\n {\n question: \"How often should an agent heartbeat?\",\n answer:\n \"Only when needed, comfortably before lease_expires_at. Use the updated lease expiry returned by each successful heartbeat rather than a fixed client-side assumption.\",\n },\n {\n question: \"What does a heartbeat return?\",\n answer:\n \"The task's metadata with the new lease_expires_at and the current execution_epoch. Never the input; the claim already gave you that.\",\n },\n {\n question: \"My heartbeat returned HTTP 409 — can I still submit?\",\n answer:\n \"No. A 409 means your execution epoch is stale: the lease expired and the task was reclaimed or withdrawn. Submits with that epoch will also be rejected, so discard the in-flight work and claim a different task.\",\n },\n ],\n related: [\n {\n label: \"talonic_claim_agent_task\",\n slug: \"talonic-claim-agent-task\",\n },\n {\n label: \"talonic_submit_agent_task\",\n slug: \"talonic-submit-agent-task\",\n },\n ],\n mentions: [\"heartbeat\", \"lease expiry\", \"execution epoch\", \"long-running task\"],\n },\n talonic_submit_agent_task: {\n task: \"review\",\n seoTitle: \"talonic_submit_agent_task — Submit Typed Task Outputs\",\n description:\n \"MCP tool that submits the declared, typed outputs for a claimed agent task in one step, checked against the expected fields, after which the document moves on.\",\n faq: [\n {\n question: \"Can an Agent task return extra fields it discovered?\",\n answer:\n \"No. Fields that weren't asked for, and values of the wrong type, are refused before anything is written. Add the output to the Spec first; new documents then ask for it.\",\n },\n {\n question: \"What happens if my submission fails validation?\",\n answer:\n \"Nothing is written: all fields are saved or none. The task stays claimed under your execution epoch, so fix the outputs and submit again before the lease runs out.\",\n },\n {\n question: \"Can I resubmit or amend after a successful submit?\",\n answer:\n \"No. A successful submit ends the task and the document moves on. Corrections happen later, in review or by running the document again.\",\n },\n ],\n related: [\n {\n label: \"talonic_get_agent_task\",\n slug: \"talonic-get-agent-task\",\n },\n {\n label: \"talonic_claim_agent_task\",\n slug: \"talonic-claim-agent-task\",\n },\n {\n label: \"talonic_heartbeat_agent_task\",\n slug: \"talonic-heartbeat-agent-task\",\n },\n ],\n mentions: [\"submit outputs\", \"typed outputs\", \"agent task\"],\n },\n talonic_list_decision_tasks: {\n task: \"review\",\n seoTitle: \"talonic_list_decision_tasks — App Decision Inbox for Agents\",\n description:\n \"MCP tool that lists the decisions an app hands to an outside agent (apps in External mode), one task per run, with a status filter and cursor-based paging.\",\n examples: [\n {\n title: \"Tool input and response\",\n language: \"json\",\n code: '// talonic_list_decision_tasks({ \"app_id\": \"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa\", \"status\": \"available\", \"limit\": 1 })\\n{\\n \"data\": [\\n {\\n \"id\": \"11111111-1111-4111-8111-111111111111\",\\n \"customer_id\": \"cccccccc-cccc-4ccc-8ccc-cccccccccccc\",\\n \"run_id\": \"22222222-2222-4222-8222-222222222222\",\\n \"app_id\": \"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa\",\\n \"status\": \"available\",\\n \"execution_epoch\": 0,\\n \"input_package_ref\": \"run\",\\n \"lease_seconds\": 120,\\n \"claimed_by\": null,\\n \"claimed_at\": null,\\n \"lease_expires_at\": null,\\n \"heartbeat_at\": null,\\n \"sla_deadline_at\": \"2026-09-22T10:10:00.000Z\",\\n \"submitted_at\": null,\\n \"created_at\": \"2026-09-22T10:00:00.000Z\",\\n \"updated_at\": \"2026-09-22T10:00:00.000Z\"\\n }\\n ],\\n \"pagination\": { \"has_more\": false, \"next_cursor\": null }\\n}',\n },\n ],\n faq: [\n {\n question: \"How is a decision task different from an Agent task?\",\n answer:\n \"An agent task asks for output fields for one document in a Spec. A decision task asks for one app run's decision: it must match the app's output contract, cite evidence from the task's input, and is recorded as decided by an external agent. Both use the same claim, lease, heartbeat and execution-epoch rules.\",\n },\n {\n question:\n \"Why does the tool return 403 insufficient_scope, or carry talonic/can_invoke: false in its _meta?\",\n answer:\n \"Deciding is a separate permission. A tlnc_ key needs a decide grant on that app from a workspace owner. A connector session needs the apps:decide scope and a role of senior member or above, checked on every call. A connector added before that scope existed lacks it: the tools are listed but marked not callable, and removing and re-adding the Talonic connector fixes it.\",\n },\n {\n question: \"What do the decision task statuses mean?\",\n answer:\n \"available means no one holds the task; claimed means an agent holds a live lease; submitted means a decision was accepted and the run resumed; released means the claimant gave it back (it returns to available); failed means the claimant declared it undecidable and the fallback applied; timed_out means the SLA passed; cancelled means the run was cancelled or the task withdrawn.\",\n },\n ],\n related: [\n {\n label: \"talonic_claim_decision_task\",\n slug: \"talonic-claim-decision-task\",\n },\n {\n label: \"talonic_read_decision_package\",\n slug: \"talonic-read-decision-package\",\n },\n {\n label: \"talonic_submit_decision_task\",\n slug: \"talonic-submit-decision-task\",\n },\n {\n label: \"talonic_list_agent_tasks\",\n slug: \"talonic-list-agent-tasks\",\n },\n ],\n mentions: [\n \"decision task\",\n \"External mode\",\n \"Talonic Apps\",\n \"decide grant\",\n \"cursor pagination\",\n ],\n },\n talonic_claim_decision_task: {\n task: \"review\",\n seoTitle: \"talonic_claim_decision_task — Lease an App Decision Task\",\n description:\n \"MCP tool that claims an app's decision task and returns what is needed to decide: a new execution epoch, the output contract, precedents and the input outline.\",\n faq: [\n {\n question: \"Can I inspect a decision task before claiming it?\",\n answer:\n \"Only its metadata, through the list. The output contract, precedents and input go only to the agent that claims it, and that is recorded. Claim, read, and release it if it is not yours to decide.\",\n },\n {\n question: \"What happens when two agents claim the same task?\",\n answer:\n \"The second claim returns HTTP 409 while the first lease is live. Once the lease expires without a heartbeat, the task can be reclaimed; the epoch is bumped and any submit carrying the old epoch is rejected.\",\n },\n ],\n related: [\n {\n label: \"talonic_read_decision_package\",\n slug: \"talonic-read-decision-package\",\n },\n {\n label: \"talonic_heartbeat_decision_task\",\n slug: \"talonic-heartbeat-decision-task\",\n },\n {\n label: \"talonic_submit_decision_task\",\n slug: \"talonic-submit-decision-task\",\n },\n ],\n mentions: [\"claim\", \"exclusive lease\", \"execution epoch\", \"output contract\", \"precedents\"],\n },\n talonic_read_decision_package: {\n task: \"review\",\n seoTitle: \"talonic_read_decision_package — Read a Decision's Input\",\n description:\n \"MCP tool that pages through a claimed decision task's fixed input: the records the decision must rest on, each with the locator to cite it as evidence.\",\n faq: [\n {\n question: \"Why does reading the package return HTTP 409?\",\n answer:\n \"The package is readable by the current claimant only. Either the task was never claimed by this credential, or the lease lapsed and another agent reclaimed it. Claim (or reclaim) the task first, then read.\",\n },\n {\n question: \"Is reading the package a side effect?\",\n answer:\n \"It changes nothing in the task or run, but each page read is recorded, so the run's history shows what the deciding agent actually looked at.\",\n },\n ],\n related: [\n {\n label: \"talonic_claim_decision_task\",\n slug: \"talonic-claim-decision-task\",\n },\n {\n label: \"talonic_submit_decision_task\",\n slug: \"talonic-submit-decision-task\",\n },\n ],\n mentions: [\"input package\", \"evidence locator\", \"evidence\", \"cursor pagination\"],\n },\n talonic_heartbeat_decision_task: {\n task: \"review\",\n seoTitle: \"talonic_heartbeat_decision_task — Keep a Decision Lease\",\n description:\n \"MCP tool that extends the lease on a claimed decision task using the execution epoch from the claim, never past the SLA deadline, so long reviews keep it.\",\n faq: [\n {\n question: \"How often should an agent heartbeat a decision task?\",\n answer:\n \"Comfortably inside the lease: with the default 120-second lease, roughly every 60 seconds while the decision is still being worked on. Stop once the task is submitted, released or failed.\",\n },\n {\n question: \"Can a heartbeat extend past the SLA deadline?\",\n answer:\n \"No. The lease is clamped to sla_deadline_at. If the decision cannot be made before then, submit what you have with an honest confidence, release the task, or fail it with a reason so the fallback policy runs deliberately rather than by timeout.\",\n },\n ],\n related: [\n {\n label: \"talonic_claim_decision_task\",\n slug: \"talonic-claim-decision-task\",\n },\n {\n label: \"talonic_submit_decision_task\",\n slug: \"talonic-submit-decision-task\",\n },\n {\n label: \"talonic_release_decision_task\",\n slug: \"talonic-release-decision-task\",\n },\n ],\n mentions: [\"heartbeat\", \"lease expiry\", \"SLA deadline\", \"execution epoch\"],\n },\n talonic_submit_decision_task: {\n task: \"review\",\n seoTitle: \"talonic_submit_decision_task — Submit an Evidenced Decision\",\n description:\n \"MCP tool that submits the decision for a claimed task: outcome checked against the output contract, evidence against the task's input, and a rationale.\",\n faq: [\n {\n question: \"Can the evidence cite something outside the input package?\",\n answer:\n \"Only a db: or ref: locator naming a connection or reference table the app is allowed to read; those are accepted and recorded. Any other locator from outside the input, and the reserved api: prefix, is refused.\",\n },\n {\n question: \"What if the app's thresholds disagree with my decision?\",\n answer:\n \"The decision is still accepted. The app's limits (the confidence needed to act automatically, amounts that need approval) are applied afterwards; a breach sends the run to a person and is never silent.\",\n },\n ],\n related: [\n {\n label: \"talonic_claim_decision_task\",\n slug: \"talonic-claim-decision-task\",\n },\n {\n label: \"talonic_read_decision_package\",\n slug: \"talonic-read-decision-package\",\n },\n {\n label: \"talonic_release_decision_task\",\n slug: \"talonic-release-decision-task\",\n },\n {\n label: \"talonic_fail_decision_task\",\n slug: \"talonic-fail-decision-task\",\n },\n ],\n mentions: [\"evidence\", \"rationale\", \"output contract\", \"submit decision\"],\n },\n talonic_release_decision_task: {\n task: \"review\",\n seoTitle: \"talonic_release_decision_task — Give a Decision Task Back\",\n description:\n \"MCP tool that releases a claimed decision task back to available without deciding it, so another agent can claim it; the next claim bumps the execution epoch.\",\n faq: [\n {\n question: \"Release or fail — which one?\",\n answer:\n \"Release when the task is decidable but not by you right now: another claimant gets the same package and contract. Fail when no claimant could decide it from this package: that raises a Human Review with your reason and applies the app's fallback policy.\",\n },\n ],\n related: [\n {\n label: \"talonic_claim_decision_task\",\n slug: \"talonic-claim-decision-task\",\n },\n {\n label: \"talonic_fail_decision_task\",\n slug: \"talonic-fail-decision-task\",\n },\n ],\n mentions: [\"release\", \"give-back\", \"execution epoch\"],\n },\n talonic_fail_decision_task: {\n task: \"review\",\n seoTitle: \"talonic_fail_decision_task — Declare a Task Undecidable\",\n description:\n \"MCP tool that marks a claimed decision task as undecidable: it raises a Human Review carrying the agent's reason and applies the app's declared fallback policy.\",\n faq: [\n {\n question: \"Is failing a decision task destructive?\",\n answer:\n \"Yes, and it is marked destructive. No data is deleted, but the task ends as failed, a review is raised with your reason, and the app's fallback runs, which can fail the whole run. A failed task can't be claimed again.\",\n },\n ],\n related: [\n {\n label: \"talonic_release_decision_task\",\n slug: \"talonic-release-decision-task\",\n },\n {\n label: \"talonic_submit_decision_task\",\n slug: \"talonic-submit-decision-task\",\n },\n ],\n mentions: [\"fail\", \"fallback policy\", \"Human Review\", \"undecidable\"],\n },\n talonic_process_list: {\n task: \"automate\",\n seoTitle: \"talonic_process_list — List a Workspace's Processes\",\n description:\n \"MCP tool that lists a Talonic workspace's processes with their live version, folder, tags and number of steps. Start here: the other process tools take its id.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_list({})\\n{ \"data\": [{ \"id\": \"11111111-1111-4111-8111-111111111111\", \"name\": \"Vendor bank details change\", \"liveVersion\": 3, \"folder\": \"Finance\", \"tags\": [\"ap\"], \"steps\": 7 }] }',\n },\n ],\n faq: [\n {\n question: \"Does it show drafts?\",\n answer:\n \"Yes. A process with `liveVersion: null` has never been published and cannot be started.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_run\",\n slug: \"talonic-process-run\",\n },\n {\n label: \"talonic_process_runs\",\n slug: \"talonic-process-runs\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_run: {\n task: \"automate\",\n seoTitle: \"talonic_process_run — Start a Process for One Item\",\n description:\n \"MCP tool that starts a published Talonic process for one item, with values given by field name, and returns the process's reply or where the run stands now.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_run({ \"process_id\": \"11111111-1111-4111-8111-111111111111\", \"values\": { \"Vendor\": \"Acme\", \"Amount\": 1200 } })\\n{ \"runId\": \"22222222-2222-4222-8222-222222222222\", \"process\": \"Vendor bank details change\", \"reply\": { \"status\": 200, \"body\": \"Received\" } }',\n },\n ],\n faq: [\n {\n question: \"Is it a write?\",\n answer:\n \"Yes. It needs permission to run processes and the write scope, and it is marked as a write.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_status\",\n slug: \"talonic-process-status\",\n },\n {\n label: \"talonic_process_list\",\n slug: \"talonic-process-list\",\n },\n ],\n mentions: [\"start\", \"run\", \"process\", \"workflow\"],\n },\n talonic_process_status: {\n task: \"automate\",\n seoTitle: \"talonic_process_status — Where a Process Run Stands\",\n description:\n \"MCP tool that shows where a Talonic process run stands: per step how many items are waiting, done or failed, and each item's state. Default: the latest run.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_status({ \"process_id\": \"11111111-1111-4111-8111-111111111111\" })\\n{ \"status\": { \"...\": \"per step counts\" }, \"items\": { \"runId\": \"22222222-2222-4222-8222-222222222222\", \"items\": [{ \"name\": \"Acme\", \"state\": \"waiting\" }] } }',\n },\n ],\n related: [\n {\n label: \"talonic_process_runs\",\n slug: \"talonic-process-runs\",\n },\n {\n label: \"talonic_process_sign\",\n slug: \"talonic-process-sign\",\n },\n ],\n mentions: [\"status\", \"run\", \"process\"],\n },\n talonic_process_runs: {\n task: \"automate\",\n seoTitle: \"talonic_process_runs — Process Runs Across Processes\",\n description:\n \"MCP tool that lists Talonic process runs across all processes, newest first, with items done, waiting and failed; filter by process or runs waiting for you.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_runs({ \"state\": \"stuck\" })\\n{ \"runs\": [{ \"runId\": \"22222222-2222-4222-8222-222222222222\", \"process\": \"Vendor bank details change\", \"status\": \"running\", \"items\": 3, \"failed\": 1 }], \"page\": 0, \"more\": false }',\n },\n ],\n related: [\n {\n label: \"talonic_process_status\",\n slug: \"talonic-process-status\",\n },\n ],\n mentions: [\"runs\", \"executions\", \"stuck\"],\n },\n talonic_process_waiting_for_me: {\n task: \"review\",\n seoTitle: \"talonic_process_waiting_for_me — Sign-offs for You\",\n description:\n \"MCP tool that lists the Talonic sign-offs and forms waiting for the caller, per process and step, with how many items wait on each before the run moves on.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_waiting_for_me({})\\n{ \"data\": [{ \"processId\": \"11111111-1111-4111-8111-111111111111\", \"process\": \"Vendor bank details change\", \"stepId\": \"ok\", \"step\": \"Finance signs\", \"waiting\": 2 }] }',\n },\n ],\n related: [\n {\n label: \"talonic_process_sign\",\n slug: \"talonic-process-sign\",\n },\n {\n label: \"talonic_process_status\",\n slug: \"talonic-process-status\",\n },\n ],\n mentions: [\"approval\", \"sign-off\", \"inbox\"],\n },\n talonic_process_sign: {\n task: \"review\",\n seoTitle: \"talonic_process_sign — Sign a Step of a Process Run\",\n description:\n \"MCP tool that signs a sign-off step of a Talonic process run for the caller: approve every waiting item or only some, with a decision where the step offers one.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_sign({ \"process_id\": \"11111111-1111-4111-8111-111111111111\", \"run_id\": \"22222222-2222-4222-8222-222222222222\", \"step_id\": \"ok\" })\\n{ \"released\": 2, \"alreadySigned\": 0 }',\n },\n ],\n faq: [\n {\n question: \"Can it sign for someone else?\",\n answer:\n \"No. It signs as the person behind the key, and only steps that person is assigned to.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_waiting_for_me\",\n slug: \"talonic-process-waiting-for-me\",\n },\n ],\n mentions: [\"approve\", \"sign\", \"sign-off\"],\n },\n talonic_process_get: {\n task: \"build\",\n seoTitle: \"talonic_process_get — Read One Process and Its Draft\",\n description:\n \"MCP tool that reads one Talonic process with its draft: its fields, its steps with their ids and settings, and the arrows between them, before changing it.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_get({ \"process_id\": \"1111…\" })\\n{ \"id\": \"1111…\", \"name\": \"Invoice approval\", \"activeVersion\": 2, \"draft\": { \"fields\": [], \"steps\": [{ \"id\": \"s_1\", \"kind\": \"approval\", \"name\": \"Manager approval\" }], \"flow\": [] } }',\n },\n ],\n faq: [\n {\n question: \"Does it return the live version or the draft?\",\n answer:\n \"The draft. `activeVersion` says which published version is live; talonic_process_check shows how the draft differs from it.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_change\",\n slug: \"talonic-process-change\",\n },\n {\n label: \"talonic_process_check\",\n slug: \"talonic-process-check\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_create: {\n task: \"build\",\n seoTitle: \"talonic_process_create — Set Up a New Process Draft\",\n description:\n \"MCP tool that sets up a new Talonic process as a draft, from a description in plain words or an exported n8n workflow. Nothing runs until it is published.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_create({ \"description\": \"Invoices arrive by mail. Read vendor and amount. Over 10,000 a manager approves.\" })\\n{ \"id\": \"1111…\", \"name\": \"Invoice approval\", \"steps\": 5, \"explanation\": \"Reads each invoice and sends large ones to a manager.\", \"questions\": [\"Who is the manager?\"], \"stillOpen\": [\"Who signs here? Choose a person, a role or a group.\"], \"notes\": [] }',\n },\n ],\n faq: [\n {\n question: \"Does creating a process start anything?\",\n answer:\n \"No. It is a draft until talonic_process_publish; no document is read, no mail sent and no system called before that.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_change\",\n slug: \"talonic-process-change\",\n },\n {\n label: \"talonic_process_check\",\n slug: \"talonic-process-check\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_change: {\n task: \"build\",\n seoTitle: \"talonic_process_change — Change a Talonic Process Draft\",\n description:\n \"MCP tool that changes a Talonic process draft from an instruction in plain words, and saves nothing until the user agreed when the change reduces governance.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_change({ \"process_id\": \"1111…\", \"change\": \"Remove the manager approval.\" })\\n{ \"status\": \"needs_confirmation\", \"reductions\": [\"\\\\\"Manager approval\\\\\" is removed: nobody signs or reviews there any more.\"] }',\n },\n ],\n faq: [\n {\n question: \"What does needs_confirmation mean?\",\n answer:\n \"Nothing was saved. The change takes control away from people; show the user the listed points and send the same change with `confirmed: true` only if they agree.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_get\",\n slug: \"talonic-process-get\",\n },\n {\n label: \"talonic_process_check\",\n slug: \"talonic-process-check\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_check: {\n task: \"build\",\n seoTitle: \"talonic_process_check — Check a Draft Before Going Live\",\n description:\n \"MCP tool that says what a Talonic process draft still needs per step before it can go live, every problem it finds, and what publishing it would change.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_check({ \"process_id\": \"1111…\" })\\n{ \"check\": { \"canPublish\": false, \"stillNeeded\": [{ \"stepId\": \"s_1\", \"key\": \"assignees\", \"message\": \"Who signs here? Choose a person, a role or a group.\" }], \"problems\": [] }, \"changes\": { \"changes\": [{ \"type\": \"step_added\", \"text\": \"Manager approval added\" }] } }',\n },\n ],\n faq: [\n {\n question: \"Can a draft with open points be published?\",\n answer: \"No. talonic_process_publish is refused while `canPublish` is false.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_change\",\n slug: \"talonic-process-change\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n {\n label: \"talonic_process_test_run\",\n slug: \"talonic-process-test-run\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_test_run: {\n task: \"build\",\n seoTitle: \"talonic_process_test_run — Test a Process Draft Safely\",\n description:\n \"MCP tool that runs a Talonic process draft on real documents in a test copy that sends nothing out, so you can see each step's result before going live.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_test_run({ \"process_id\": \"1111…\", \"document_ids\": [\"3333…\"] })\\n{ \"processId\": \"4444…\", \"endsAt\": [{ \"stepId\": \"s_1\", \"name\": \"Manager approval\" }], \"runId\": \"2222…\" }',\n },\n ],\n faq: [\n {\n question: \"Does a test run send mail?\",\n answer: \"No. A test copy delivers nothing, sends no mail and calls no system.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_status\",\n slug: \"talonic-process-status\",\n },\n {\n label: \"talonic_process_check\",\n slug: \"talonic-process-check\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_publish: {\n task: \"build\",\n seoTitle: \"talonic_process_publish — Make a Process Draft Live\",\n description:\n \"MCP tool that makes a Talonic process draft the live version, so it starts, sends mail and calls systems for real. Refused while the check still finds an error.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_publish({ \"process_id\": \"1111…\", \"reason\": \"Second approver added\" })\\n{ \"version\": 3, \"changed\": true }',\n },\n ],\n faq: [\n {\n question: \"Can a publish be undone?\",\n answer:\n \"talonic_process_rollback makes an earlier version live again. What the new version already did (mail sent, systems called) stays done.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_check\",\n slug: \"talonic-process-check\",\n },\n {\n label: \"talonic_process_versions\",\n slug: \"talonic-process-versions\",\n },\n {\n label: \"talonic_process_rollback\",\n slug: \"talonic-process-rollback\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_versions: {\n task: \"build\",\n seoTitle: \"talonic_process_versions — Published Process Versions\",\n description:\n \"MCP tool that lists the published versions of a Talonic process, newest first, with who published each one and why, to choose a version to roll back to.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_versions({ \"process_id\": \"1111…\" })\\n[{ \"n\": 3, \"publishedAt\": \"2026-11-24T06:22:00Z\", \"reason\": \"Second approver added\" }]',\n },\n ],\n faq: [\n {\n question: \"Is the draft a version?\",\n answer: \"No. Only published states are versions.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_rollback\",\n slug: \"talonic-process-rollback\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_rollback: {\n task: \"build\",\n seoTitle: \"talonic_process_rollback — Roll a Process Back Live\",\n description:\n \"MCP tool that makes an earlier published version of a Talonic process live again. It changes what runs for real, so call it only when the user asks for it.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_rollback({ \"process_id\": \"1111…\", \"version\": 2 })\\n{ \"version\": 2 }',\n },\n ],\n faq: [\n {\n question: \"Does a rollback change the draft?\",\n answer: \"No. The draft stays as it is; only the live version changes.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_versions\",\n slug: \"talonic-process-versions\",\n },\n {\n label: \"talonic_process_publish\",\n slug: \"talonic-process-publish\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_delete: {\n task: \"build\",\n seoTitle: \"talonic_process_delete — Delete a Process for Good\",\n description:\n \"MCP tool that deletes a Talonic process. Not possible while a run is open, and it cannot be undone: call it only when the user named the process to delete.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_delete({ \"process_id\": \"1111…\" })\\n{ \"deleted\": true }',\n },\n ],\n faq: [\n {\n question: \"What happens to its past runs?\",\n answer: \"A process with an open run cannot be deleted. Finished runs go with the process.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_list\",\n slug: \"talonic-process-list\",\n },\n {\n label: \"talonic_process_runs\",\n slug: \"talonic-process-runs\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_item: {\n task: \"automate\",\n seoTitle: \"talonic_process_item — One Item's Way Through a Run\",\n description:\n \"MCP tool that shows one item's way through a Talonic process run, step by step, with status, time and notes such as why it stopped, and its values now.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_item({ \"process_id\": \"1111…\", \"run_id\": \"2222…\", \"item_key\": \"3333…\" })\\n{ \"steps\": [{ \"name\": \"Log it\", \"status\": \"stopped\", \"note\": \"The other system answered 500.\", \"canRetry\": true }], \"values\": [{ \"name\": \"amount\", \"value\": 900 }] }',\n },\n ],\n faq: [\n {\n question: \"Where do I see why an item failed?\",\n answer: \"In the `note` of the step that stopped.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_status\",\n slug: \"talonic-process-status\",\n },\n {\n label: \"talonic_process_retry\",\n slug: \"talonic-process-retry\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_retry: {\n task: \"automate\",\n seoTitle: \"talonic_process_retry — Retry the Failed Steps of a Run\",\n description:\n \"MCP tool that tries every failed step of a Talonic process run again. Steps that send or call will send or call again: use it once the cause is fixed.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_retry({ \"run_id\": \"2222…\" })\\n{ \"retried\": 1 }',\n },\n ],\n faq: [\n {\n question: \"Does a retry repeat steps that succeeded?\",\n answer: \"No. Only failed steps run again.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_runs\",\n slug: \"talonic-process-runs\",\n },\n {\n label: \"talonic_process_item\",\n slug: \"talonic-process-item\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_send_back: {\n task: \"review\",\n seoTitle: \"talonic_process_send_back — Send Items Back in a Run\",\n description:\n \"MCP tool that sends items back from a sign-off step of a Talonic process run with a reason, for the caller: the opposite of signing, where they are assigned.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_send_back({ \"process_id\": \"1111…\", \"run_id\": \"2222…\", \"step_id\": \"s_1\", \"items\": [\"3333…\"], \"reason\": \"Amount does not match the order\" })\\n{ \"sentBack\": 1 }',\n },\n ],\n faq: [\n {\n question: \"Where do sent-back items go?\",\n answer:\n \"To where the process says: the step before, or the step its settings name for stopped items.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_sign\",\n slug: \"talonic-process-sign\",\n },\n {\n label: \"talonic_process_waiting_for_me\",\n slug: \"talonic-process-waiting-for-me\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_setup: {\n task: \"build\",\n seoTitle: \"talonic_process_setup — People, Mailboxes and Look-ups\",\n description:\n \"MCP tool that lists what Talonic processes can use: who a step can wait for, the connected mailboxes, the names of stored secrets and data look-ups can read.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_setup({})\\n{ \"people\": { \"roles\": [{ \"id\": \"owner\", \"name\": \"Admin\" }], \"groups\": [] }, \"mailboxes\": { \"data\": [{ \"id\": \"5555…\", \"name\": \"Gmail (ap@example.com)\", \"canSend\": true, \"ownership\": \"company\", \"usable\": true }] }, \"secrets\": { \"data\": [\"erp_token\"] }, \"lookupData\": { \"state\": \"ready\", \"indexes\": [{ \"name\": \"contracts.contracts\", \"rows\": 3, \"ready\": true }] } }',\n },\n ],\n faq: [\n {\n question: \"Can a secret's value be read?\",\n answer: \"No. Only names are returned, by this tool and by the API.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_mailbox_ownership\",\n slug: \"talonic-process-mailbox-ownership\",\n },\n {\n label: \"talonic_process_change\",\n slug: \"talonic-process-change\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_mailbox_ownership: {\n task: \"build\",\n seoTitle: \"talonic_process_mailbox_ownership — Mailbox Owners\",\n description:\n \"MCP tool that marks a connected mailbox as one person's own or the company's, which decides who may put it on a Talonic process. A governance decision.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_mailbox_ownership({ \"mailbox_id\": \"5555…\", \"ownership\": \"company\" })\\n{ \"id\": \"5555…\", \"ownership\": \"company\" }',\n },\n ],\n faq: [\n {\n question: \"Who may change this?\",\n answer: \"People allowed to govern processes in the workspace.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_setup\",\n slug: \"talonic-process-setup\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n talonic_process_address: {\n task: \"build\",\n seoTitle: \"talonic_process_address — A Process's Inbound Address\",\n description:\n \"MCP tool that shows whether a Talonic process has an address other systems send items to, and makes one when asked; the address is shown once, when made.\",\n examples: [\n {\n title: \"Example\",\n language: \"json\",\n code: '// talonic_process_address({ \"process_id\": \"1111…\", \"make\": true })\\n{ \"token\": \"…\", \"path\": \"/process-hooks/…\" }',\n },\n ],\n faq: [\n {\n question: \"Can I read an address again later?\",\n answer: \"No. It is shown once. Making a new one switches the old one off.\",\n },\n ],\n related: [\n {\n label: \"talonic_process_run\",\n slug: \"talonic-process-run\",\n },\n {\n label: \"talonic_process_setup\",\n slug: \"talonic-process-setup\",\n },\n ],\n mentions: [\"process\", \"workflow\", \"Process Plane\"],\n },\n}\n","import type { RawSection } from \"../types\"\n\n// The Apps tools (src/tools/apps-toolset.ts) and the rule-finding round\n// tools (src/tools/mining-driver.ts). Rendered at talonic.com/docs/mcp/<slug>;\n// docs/sections.json keeps a mirror (`mcp-<slug>`). Listed only when the\n// credential can read the workspace's apps; every page says so.\n\nexport const sections: RawSection[] = [\n {\n slug: \"talonic-create-app\",\n parentSlug: \"tools\",\n title: \"talonic_create_app\",\n seoTitle: \"talonic_create_app — Create app | Talonic MCP Tool\",\n description:\n \"Create a new app. It starts disabled with no versions; the slug can no longer change once a version is published. Part of the Talonic MCP tools for building…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Create a new app. It starts disabled with no versions; the slug can no longer change once a version is published. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: the user asks to set up a new app. ARGS: slug (lowercase letters, digits, hyphens, 3-64 chars), display_name, mode, optional one-sentence description.\",\n \"Modes: rules (decides from written rules), assisted (rules with people confirming), external (an outside agent decides through the decision-task tools), autonomous (finds candidate rules in the app's data).\",\n \"RETURNS: the manifest; use its `id` (UUID) with every other app tool.\",\n \"FLOW: talonic_create_app -> talonic_save_app_draft -> talonic_interpret_app_rules -> talonic_publish_app -> talonic_run_app (dry_run first) -> talonic_get_app_run / talonic_get_run_verdicts -> talonic_save_app_acceptance + talonic_check_app_acceptance -> talonic_enable_app.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"slug\",\n type: \"string\",\n required: true,\n description: \"Lowercase letters, digits and hyphens, 3-64 chars.\",\n },\n {\n name: \"display_name\",\n type: \"string\",\n required: true,\n description: \"\",\n },\n {\n name: \"mode\",\n type: '\"rules\" | \"assisted\" | \"external\" | \"autonomous\"',\n required: true,\n description: \"\",\n },\n {\n name: \"description\",\n type: \"string\",\n required: false,\n description: \"One sentence about the app.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_get_app\",\n slug: \"talonic-get-app\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-get-app\",\n parentSlug: \"tools\",\n title: \"talonic_get_app\",\n seoTitle: \"talonic_get_app — Get app | Talonic MCP Server Tool\",\n description:\n \"Read one app's manifest: mode, active version, enabled state, contract (what it reads and acts on), output contract, thresholds, triggers, fallback. Part of…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read one app's manifest: mode, active version, enabled state, contract (what it reads and acts on), output contract, thresholds, triggers, fallback. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: inspecting an app before changing or running it. NOT FOR: the editable draft (talonic_get_app_logic) or listing apps (talonic_list_apps).\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_create_app\",\n slug: \"talonic-create-app\",\n },\n {\n label: \"talonic_get_app_logic\",\n slug: \"talonic-get-app-logic\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-get-app-logic\",\n parentSlug: \"tools\",\n title: \"talonic_get_app_logic\",\n seoTitle: \"talonic_get_app_logic — Get app logic | Talonic MCP\",\n description:\n \"Read an app's logic: the editable draft and the active published version, including each rule with its interpretation state and plain-language readback. Part…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read an app's logic: the editable draft and the active published version, including each rule with its interpretation state and plain-language readback. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: before editing, or to get the draft's full content for talonic_save_app_draft.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_get_app\",\n slug: \"talonic-get-app\",\n },\n {\n label: \"talonic_get_app_fields\",\n slug: \"talonic-get-app-fields\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-get-app-fields\",\n parentSlug: \"tools\",\n title: \"talonic_get_app_fields\",\n seoTitle: \"talonic_get_app_fields — Get app fields | Talonic MCP\",\n description:\n \"List the fields the app's rules can use, per bound data source. This is everything the app can see. Part of the Talonic MCP tools for building, running and…\",\n content: [\n {\n type: \"paragraph\",\n text: \"List the fields the app's rules can use, per bound data source. This is everything the app can see. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\"USE WHEN: before writing or fixing rules, so they name fields that exist.\"],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_get_app_logic\",\n slug: \"talonic-get-app-logic\",\n },\n {\n label: \"talonic_save_app_draft\",\n slug: \"talonic-save-app-draft\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-save-app-draft\",\n parentSlug: \"tools\",\n title: \"talonic_save_app_draft\",\n seoTitle: \"talonic_save_app_draft — Save app draft | Talonic MCP\",\n description:\n \"Create or replace the app's single draft version: logic (rule sentences, or the external connection), input bindings, output contract (JSON Schema 2020-12)…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Create or replace the app's single draft version: logic (rule sentences, or the external connection), input bindings, output contract (JSON Schema 2020-12), thresholds, triggers, fallback. Drafts are the only versions that can change. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: authoring configuration in full. For a plain-language change to an existing draft prefer talonic_propose_app_edit + talonic_apply_app_edit.\",\n \"ARGS: app_id, content (the full version content object; read the current one with talonic_get_app_logic). RETURNS: { version, status, content_hash }; pass version to talonic_publish_app.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"content\",\n type: \"object\",\n required: true,\n description: \"Full version content object.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_get_app_fields\",\n slug: \"talonic-get-app-fields\",\n },\n {\n label: \"talonic_interpret_app_rules\",\n slug: \"talonic-interpret-app-rules\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-interpret-app-rules\",\n parentSlug: \"tools\",\n title: \"talonic_interpret_app_rules\",\n seoTitle: \"talonic_interpret_app_rules — Interpret app rules | Talonic\",\n description:\n \"Turn the draft's pending rule sentences into checkable rules against the app's fields, and save the draft. A Talonic MCP tool for building and running apps.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Turn the draft's pending rule sentences into checkable rules against the app's fields, and save the draft. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"ARGS: app_id; optional card_ids (default: all pending), guidance (plain language, e.g. 'the city is in shipper_city_state') for rules that stayed pending, locale for the readbacks.\",\n \"RETURNS: the rules plus warnings saying why any rule stayed pending.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"card_ids\",\n type: \"array\",\n required: false,\n description: \"Rule card ids; omit for all pending.\",\n },\n {\n name: \"guidance\",\n type: \"string\",\n required: false,\n description: \"Plain-language hint for stuck rules.\",\n },\n {\n name: \"locale\",\n type: \"string\",\n required: false,\n description: \"Language of reasons and readbacks, e.g. de.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_save_app_draft\",\n slug: \"talonic-save-app-draft\",\n },\n {\n label: \"talonic_propose_app_edit\",\n slug: \"talonic-propose-app-edit\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-propose-app-edit\",\n parentSlug: \"tools\",\n title: \"talonic_propose_app_edit\",\n seoTitle: \"talonic_propose_app_edit — Propose app edit | Talonic MCP\",\n description:\n \"Turn a plain-language change request into typed edit operations on the app's rules (add, rewrite, delete, pause, resume, fallback, mode). Nothing is saved…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Turn a plain-language change request into typed edit operations on the app's rules (add, rewrite, delete, pause, resume, fallback, mode). Nothing is saved. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: the user describes a change in words. Show the summary to the user, then apply the accepted ops with talonic_apply_app_edit.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"instruction\",\n type: \"string\",\n required: true,\n description: \"The change, in plain language.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_interpret_app_rules\",\n slug: \"talonic-interpret-app-rules\",\n },\n {\n label: \"talonic_apply_app_edit\",\n slug: \"talonic-apply-app-edit\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-apply-app-edit\",\n parentSlug: \"tools\",\n title: \"talonic_apply_app_edit\",\n seoTitle: \"talonic_apply_app_edit — Apply app edit | Talonic MCP\",\n description:\n \"Apply accepted edit operations from talonic_propose_app_edit to the draft. They are re-checked against the current draft; changed rules are interpreted again…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Apply accepted edit operations from talonic_propose_app_edit to the draft. They are re-checked against the current draft; changed rules are interpreted again and warnings returned. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\"ARGS: app_id, ops (from the proposal, unchanged).\"],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"ops\",\n type: \"array\",\n required: true,\n description: \"Accepted ops from the proposal.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_propose_app_edit\",\n slug: \"talonic-propose-app-edit\",\n },\n {\n label: \"talonic_list_app_versions\",\n slug: \"talonic-list-app-versions\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-list-app-versions\",\n parentSlug: \"tools\",\n title: \"talonic_list_app_versions\",\n seoTitle: \"talonic_list_app_versions — List app versions | Talonic MCP\",\n description:\n \"List an app's versions, newest first: version number, status (draft, published, superseded), content hash, published_at. Part of the Talonic MCP tools for…\",\n content: [\n {\n type: \"paragraph\",\n text: \"List an app's versions, newest first: version number, status (draft, published, superseded), content hash, published_at. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: you need the draft's version number for talonic_publish_app, or to see what is live.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_apply_app_edit\",\n slug: \"talonic-apply-app-edit\",\n },\n {\n label: \"talonic_publish_app\",\n slug: \"talonic-publish-app\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-publish-app\",\n parentSlug: \"tools\",\n title: \"talonic_publish_app\",\n seoTitle: \"talonic_publish_app — Publish app | Talonic MCP Tool\",\n description:\n \"Publish the app's draft: freezes it, makes it the active version (the previous one is superseded) and locks the slug on first publish. Talonic MCP tool.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Publish the app's draft: freezes it, makes it the active version (the previous one is superseded) and locks the slug on first publish. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: the draft is tested (talonic_run_app with dry_run, talonic_check_app_acceptance) and the user wants it live. Publishing does not enable the app; call talonic_enable_app for triggers to fire.\",\n \"ARGS: app_id and the draft's version number (from talonic_save_app_draft or talonic_list_app_versions). A number that is not the current draft is HTTP 409.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"version\",\n type: \"integer\",\n required: true,\n description: \"The draft's version number.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_list_app_versions\",\n slug: \"talonic-list-app-versions\",\n },\n {\n label: \"talonic_enable_app\",\n slug: \"talonic-enable-app\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-enable-app\",\n parentSlug: \"tools\",\n title: \"talonic_enable_app\",\n seoTitle: \"talonic_enable_app — Enable app | Talonic MCP Tool\",\n description:\n \"Enable an app so its triggers fire and it can be run. Needs a published version. Enabling an app that acts on outside systems needs a workspace owner (HTTP…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Enable an app so its triggers fire and it can be run. Needs a published version. Enabling an app that acts on outside systems needs a workspace owner (HTTP 403 otherwise). Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\"USE WHEN: the user asks to switch the app on. ARGS: app_id.\"],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_publish_app\",\n slug: \"talonic-publish-app\",\n },\n {\n label: \"talonic_disable_app\",\n slug: \"talonic-disable-app\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-disable-app\",\n parentSlug: \"tools\",\n title: \"talonic_disable_app\",\n seoTitle: \"talonic_disable_app — Disable app | Talonic MCP Tool\",\n description:\n \"Disable an app at once (the kill switch): triggers stop and open work is no longer offered. Past runs and records are kept. A Talonic MCP tool for apps.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Disable an app at once (the kill switch): triggers stop and open work is no longer offered. Past runs and records are kept. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\"USE WHEN: the user asks to stop or pause an app. ARGS: app_id.\"],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_enable_app\",\n slug: \"talonic-enable-app\",\n },\n {\n label: \"talonic_get_app_acceptance\",\n slug: \"talonic-get-app-acceptance\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-get-app-acceptance\",\n parentSlug: \"tools\",\n title: \"talonic_get_app_acceptance\",\n seoTitle: \"talonic_get_app_acceptance — Get app acceptance | Talonic MC\",\n description:\n \"Read the app's acceptance set: the labeled expected results a correct run must reproduce, and the accepted mismatch share. null when none is saved. Part of…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read the app's acceptance set: the labeled expected results a correct run must reproduce, and the accepted mismatch share. null when none is saved. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_disable_app\",\n slug: \"talonic-disable-app\",\n },\n {\n label: \"talonic_save_app_acceptance\",\n slug: \"talonic-save-app-acceptance\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-save-app-acceptance\",\n parentSlug: \"tools\",\n title: \"talonic_save_app_acceptance\",\n seoTitle: \"talonic_save_app_acceptance — Save app acceptance | Talonic\",\n description:\n \"Replace the app's acceptance set: the expected results a correct run must reproduce, plus tolerance (accepted mismatch share, 0 to 1). This is the app's…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Replace the app's acceptance set: the expected results a correct run must reproduce, plus tolerance (accepted mismatch share, 0 to 1). This is the app's definition of done. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"ARGS: app_id, cases (per subject: subject_key + expected_outcome and/or expected_auto; for single-decision apps: expected_decision), optional tolerance (default 0).\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"cases\",\n type: \"array\",\n required: true,\n description: \"\",\n },\n {\n name: \"tolerance\",\n type: \"number\",\n required: false,\n description: \"Accepted mismatch share (default 0).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_get_app_acceptance\",\n slug: \"talonic-get-app-acceptance\",\n },\n {\n label: \"talonic_check_app_acceptance\",\n slug: \"talonic-check-app-acceptance\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-check-app-acceptance\",\n parentSlug: \"tools\",\n title: \"talonic_check_app_acceptance\",\n seoTitle: \"talonic_check_app_acceptance — Check app acceptance\",\n description:\n \"Score a run against the app's acceptance set by comparing recorded results: the same run always gets the same score. Returns score, pass/fail and each…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Score a run against the app's acceptance set by comparing recorded results: the same run always gets the same score. Returns score, pass/fail and each mismatch. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: after talonic_run_app, to decide whether the app is ready to publish or still correct. ARGS: app_id, optional run_id (default: the latest completed run).\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"run_id\",\n type: \"string\",\n required: false,\n description: \"Run to score; default the latest completed run.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_save_app_acceptance\",\n slug: \"talonic-save-app-acceptance\",\n },\n {\n label: \"talonic_run_app\",\n slug: \"talonic-run-app\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-run-app\",\n parentSlug: \"tools\",\n title: \"talonic_run_app\",\n seoTitle: \"talonic_run_app — Run app | Talonic MCP Server Tool\",\n description:\n \"Start one run of an app's active version and return it. A rules app usually finishes in the call with its decision; an external app stops at awaiting_decision…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Start one run of an app's active version and return it. A rules app usually finishes in the call with its decision; an external app stops at awaiting_decision until its decision task is submitted. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: testing or executing an app. Set dry_run:true first: a full trace with no side effects (no actions, no webhooks to outside systems).\",\n \"ARGS: app_id, optional input object, dry_run, idempotency_key (reusing a key returns the existing run instead of starting another). Consumes credits.\",\n \"NEXT: talonic_get_app_run for status and decision; talonic_get_run_verdicts for per-subject results.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"input\",\n type: \"object\",\n required: false,\n description: \"Run input, checked against the app's input schema.\",\n },\n {\n name: \"dry_run\",\n type: \"boolean\",\n required: false,\n description: \"Full trace, no side effects.\",\n },\n {\n name: \"idempotency_key\",\n type: \"string\",\n required: false,\n description: \"\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_check_app_acceptance\",\n slug: \"talonic-check-app-acceptance\",\n },\n {\n label: \"talonic_list_app_runs\",\n slug: \"talonic-list-app-runs\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-list-app-runs\",\n parentSlug: \"tools\",\n title: \"talonic_list_app_runs\",\n seoTitle: \"talonic_list_app_runs — List app runs | Talonic MCP\",\n description:\n \"List an app's runs, newest first, with status, decision and who decided; `total` counts every run. Part of the Talonic MCP tools for building, running and…\",\n content: [\n {\n type: \"paragraph\",\n text: \"List an app's runs, newest first, with status, decision and who decided; `total` counts every run. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\"ARGS: app_id, optional limit (max 200) and offset.\"],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Page size (default 50, max 200).\",\n },\n {\n name: \"offset\",\n type: \"integer\",\n required: false,\n description: \"Rows to skip before the page.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_run_app\",\n slug: \"talonic-run-app\",\n },\n {\n label: \"talonic_get_app_run\",\n slug: \"talonic-get-app-run\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-get-app-run\",\n parentSlug: \"tools\",\n title: \"talonic_get_app_run\",\n seoTitle: \"talonic_get_app_run — Get app run | Talonic MCP Tool\",\n description:\n \"Read one run: status, decision, decided_by, thresholds applied, reviews raised, timing. Part of the Talonic MCP tools for building, running and reviewing…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read one run: status, decision, decided_by, thresholds applied, reviews raised, timing. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: checking a run you started or found. include_events:true adds the run's journal (every event in order).\",\n \"NOT FOR: Spec/pipeline runs (talonic_get_run). ARGS: run_id, optional include_events.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"run_id\",\n type: \"string\",\n required: true,\n description: \"App run UUID (run_id from talonic_run_app or talonic_list_app_runs).\",\n },\n {\n name: \"include_events\",\n type: \"boolean\",\n required: false,\n description: \"\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_list_app_runs\",\n slug: \"talonic-list-app-runs\",\n },\n {\n label: \"talonic_get_run_record\",\n slug: \"talonic-get-run-record\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-get-run-record\",\n parentSlug: \"tools\",\n title: \"talonic_get_run_record\",\n seoTitle: \"talonic_get_run_record — Get run record | Talonic MCP\",\n description:\n \"Export a finished run's sealed decision record: the immutable, audit-ready result with its decision, who decided (rules, a person or an outside agent) and the…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Export a finished run's sealed decision record: the immutable, audit-ready result with its decision, who decided (rules, a person or an outside agent) and the evidence. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: the user needs the final, auditable outcome. A run that has not finished has no record yet (HTTP 404). ARGS: run_id.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"run_id\",\n type: \"string\",\n required: true,\n description: \"App run UUID (run_id from talonic_run_app or talonic_list_app_runs).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_get_app_run\",\n slug: \"talonic-get-app-run\",\n },\n {\n label: \"talonic_get_run_verdicts\",\n slug: \"talonic-get-run-verdicts\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-get-run-verdicts\",\n parentSlug: \"tools\",\n title: \"talonic_get_run_verdicts\",\n seoTitle: \"talonic_get_run_verdicts — Get run verdicts | Talonic MCP\",\n description:\n \"Read a batch run's per-subject results: a summary plus one row per subject with its overall outcome, the auto flag, and each rule's outcome with reasons and…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read a batch run's per-subject results: a summary plus one row per subject with its overall outcome, the auto flag, and each rule's outcome with reasons and evidence. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: inspecting what a run decided per record. Single-decision runs have none (HTTP 404; use talonic_get_app_run).\",\n \"ARGS: run_id; optional rolled (overall outcome), auto, rule + status (always together), limit (max 200), cursor (from `next`).\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"run_id\",\n type: \"string\",\n required: true,\n description: \"App run UUID (run_id from talonic_run_app or talonic_list_app_runs).\",\n },\n {\n name: \"rolled\",\n type: '\"passed\" | \"failed\" | \"indeterminate\" | \"not_applicable\"',\n required: false,\n description: \"Filter by overall outcome.\",\n },\n {\n name: \"auto\",\n type: \"boolean\",\n required: false,\n description: \"Filter by the auto flag.\",\n },\n {\n name: \"rule\",\n type: \"string\",\n required: false,\n description: \"Rule id; needs status.\",\n },\n {\n name: \"status\",\n type: '\"passed\" | \"failed\" | \"indeterminate\" | \"not_applicable\"',\n required: false,\n description: \"That rule's outcome; needs rule.\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Page size (default 50, max 200).\",\n },\n {\n name: \"cursor\",\n type: \"string\",\n required: false,\n description: \"`next` from the previous page.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_get_run_record\",\n slug: \"talonic-get-run-record\",\n },\n {\n label: \"talonic_list_app_reviews\",\n slug: \"talonic-list-app-reviews\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-list-app-reviews\",\n parentSlug: \"tools\",\n title: \"talonic_list_app_reviews\",\n seoTitle: \"talonic_list_app_reviews — List app reviews | Talonic MCP\",\n description:\n \"List Human Reviews: questions apps raised for a person (approvals, missing data, judgment calls, exceptions), newest first, with `total`. Talonic MCP tool.\",\n content: [\n {\n type: \"paragraph\",\n text: \"List Human Reviews: questions apps raised for a person (approvals, missing data, judgment calls, exceptions), newest first, with `total`. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: finding open reviews to answer, or checking the result of one already resolved (status 'resolved' shows its values). Omit app_id for the whole workspace.\",\n \"ARGS: optional app_id, status, kind, assignee_user_id, limit (max 200), offset.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: false,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"status\",\n type: '\"open\" | \"assigned\" | \"resolved\" | \"expired\" | \"cancelled\"',\n required: false,\n description: \"\",\n },\n {\n name: \"kind\",\n type: '\"resolution\" | \"approval\" | \"data_request\" | \"judgment\"',\n required: false,\n description: \"\",\n },\n {\n name: \"assignee_user_id\",\n type: \"string\",\n required: false,\n description: \"Only reviews assigned to this user.\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Page size (default 50, max 200).\",\n },\n {\n name: \"offset\",\n type: \"integer\",\n required: false,\n description: \"Rows to skip before the page.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_get_run_verdicts\",\n slug: \"talonic-get-run-verdicts\",\n },\n {\n label: \"talonic_raise_app_review\",\n slug: \"talonic-raise-app-review\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-raise-app-review\",\n parentSlug: \"tools\",\n title: \"talonic_raise_app_review\",\n seoTitle: \"talonic_raise_app_review — Raise app review | Talonic MCP\",\n description:\n \"Ask a person a question on an app instead of guessing: a Human Review with a JSON Schema for the answer. A Talonic MCP tool for building and running apps.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Ask a person a question on an app instead of guessing: a Human Review with a JSON Schema for the answer. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: a decision needs a person's input. ARGS: app_id, kind (resolution | approval | data_request | judgment), question, input_contract (JSON Schema the answer must satisfy), optional run_id, context, team_id.\",\n \"NEXT: the answer arrives through talonic_resolve_app_review (or the web app); read it with talonic_list_app_reviews status 'resolved'.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"run_id\",\n type: \"string\",\n required: false,\n description: \"App run UUID (run_id from talonic_run_app or talonic_list_app_runs).\",\n },\n {\n name: \"kind\",\n type: '\"resolution\" | \"approval\" | \"data_request\" | \"judgment\"',\n required: true,\n description: \"\",\n },\n {\n name: \"question\",\n type: \"string\",\n required: true,\n description: \"\",\n },\n {\n name: \"context\",\n type: \"object\",\n required: false,\n description: \"\",\n },\n {\n name: \"input_contract\",\n type: \"object\",\n required: true,\n description: \"JSON Schema the answer must satisfy.\",\n },\n {\n name: \"team_id\",\n type: \"string\",\n required: false,\n description: \"Review team to assign.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_list_app_reviews\",\n slug: \"talonic-list-app-reviews\",\n },\n {\n label: \"talonic_resolve_app_review\",\n slug: \"talonic-resolve-app-review\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-resolve-app-review\",\n parentSlug: \"tools\",\n title: \"talonic_resolve_app_review\",\n seoTitle: \"talonic_resolve_app_review — Resolve app review | Talonic MC\",\n description:\n \"Answer a Human Review: values (validated against the review's input_contract) plus optional feedback that teaches the app (proposal_verdict correct |…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Answer a Human Review: values (validated against the review's input_contract) plus optional feedback that teaches the app (proposal_verdict correct | incorrect | partial, correction, generalize). Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: the user gives the answer. 'approval' reviews accept only a person's answer; an API key or agent is refused (HTTP 403). Needs operate access on the app.\",\n \"RETURNS: the resolved review with its values. ARGS: review_id, values, optional feedback.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"review_id\",\n type: \"string\",\n required: true,\n description: \"Human Review UUID (id from talonic_list_app_reviews).\",\n },\n {\n name: \"values\",\n type: \"object\",\n required: true,\n description: \"Answer values matching the review's input_contract.\",\n },\n {\n name: \"feedback\",\n type: \"object\",\n required: false,\n description: \"Optional feedback that teaches the app.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_raise_app_review\",\n slug: \"talonic-raise-app-review\",\n },\n {\n label: \"talonic_interview_app_review\",\n slug: \"talonic-interview-app-review\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-interview-app-review\",\n parentSlug: \"tools\",\n title: \"talonic_interview_app_review\",\n seoTitle: \"talonic_interview_app_review — Interview app review\",\n description:\n \"Hold one turn of a guided conversation on an open Human Review: send the reviewer's message and the earlier turns (the server keeps no state); get back a…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Hold one turn of a guided conversation on an open Human Review: send the reviewer's message and the earlier turns (the server keeps no state); get back a follow-up question or a readback with proposed answer values. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"ready:true only when the proposed values satisfy the review's input contract. Nothing is submitted: finish with talonic_resolve_app_review.\",\n \"ARGS: review_id, message, optional transcript [{ role: user | assistant, text }].\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"review_id\",\n type: \"string\",\n required: true,\n description: \"Human Review UUID (id from talonic_list_app_reviews).\",\n },\n {\n name: \"message\",\n type: \"string\",\n required: true,\n description: \"The reviewer's message for this turn.\",\n },\n {\n name: \"transcript\",\n type: \"array\",\n required: false,\n description: \"Earlier turns, oldest first.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_resolve_app_review\",\n slug: \"talonic-resolve-app-review\",\n },\n {\n label: \"talonic_list_app_precedents\",\n slug: \"talonic-list-app-precedents\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-list-app-precedents\",\n parentSlug: \"tools\",\n title: \"talonic_list_app_precedents\",\n seoTitle: \"talonic_list_app_precedents — List app precedents | Talonic\",\n description:\n \"List an app's precedents: past resolved reviews it reuses for similar future runs. Part of the Talonic MCP tools for apps, listed when your key can read apps.\",\n content: [\n {\n type: \"paragraph\",\n text: \"List an app's precedents: past resolved reviews it reuses for similar future runs. Listed only when the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"ARGS: app_id, optional similar_to (match keys object) to narrow to similar cases. An app with none returns an empty list.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"App id: the UUID `id` from talonic_list_apps or talonic_create_app (not the app_… public id).\",\n },\n {\n name: \"similar_to\",\n type: \"object\",\n required: false,\n description: \"Match keys of the case.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_interview_app_review\",\n slug: \"talonic-interview-app-review\",\n },\n {\n label: \"talonic_mining_list_rounds\",\n slug: \"talonic-mining-list-rounds\",\n },\n ],\n mentions: [\"app\", \"Human Review\", \"app run\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read the workspace's apps. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-mining-list-rounds\",\n parentSlug: \"tools\",\n title: \"talonic_mining_list_rounds\",\n seoTitle: \"talonic_mining_list_rounds — Mining list rounds | Talonic MC\",\n description:\n \"List an autonomous app's rule-finding rounds, newest first: phase, status, what each found, and for a round waiting for an outside driver its task state…\",\n content: [\n {\n type: \"paragraph\",\n text: \"List an autonomous app's rule-finding rounds, newest first: phase, status, what each found, and for a round waiting for an outside driver its task state (claimed by whom, lease, deadline). `total` counts every round. Listed only when the workspace has an autonomous app. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: finding a round to drive or checking progress. ARGS: app_id, optional limit (max 200), offset.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"Id (UUID) of an autonomous app, from talonic_list_apps where mode is 'autonomous'.\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"\",\n },\n {\n name: \"offset\",\n type: \"integer\",\n required: false,\n description: \"\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_list_app_precedents\",\n slug: \"talonic-list-app-precedents\",\n },\n {\n label: \"talonic_mining_get_round\",\n slug: \"talonic-mining-get-round\",\n },\n ],\n mentions: [\"rule finding\", \"mining round\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read a workspace app that finds rules in its data. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-mining-get-round\",\n parentSlug: \"tools\",\n title: \"talonic_mining_get_round\",\n seoTitle: \"talonic_mining_get_round — Mining get round | Talonic MCP\",\n description:\n \"Read one rule-finding round: phase, status, budget, findings, candidate rules, summary, and the driver block for an externally driven round. Talonic MCP tool.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read one rule-finding round: phase, status, budget, findings, candidate rules, summary, and the driver block for an externally driven round. Listed only when the workspace has an autonomous app. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\"ARGS: app_id, run_id.\"],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"Id (UUID) of an autonomous app, from talonic_list_apps where mode is 'autonomous'.\",\n },\n {\n name: \"run_id\",\n type: \"string\",\n required: true,\n description:\n \"The round's run id (run_id from talonic_mining_list_rounds, or the decision task's run_id).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_mining_list_rounds\",\n slug: \"talonic-mining-list-rounds\",\n },\n {\n label: \"talonic_mining_start_round\",\n slug: \"talonic-mining-start-round\",\n },\n {\n label: \"talonic_claim_decision_task\",\n slug: \"talonic-claim-decision-task\",\n },\n ],\n mentions: [\"rule finding\", \"mining round\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read a workspace app that finds rules in its data. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-mining-start-round\",\n parentSlug: \"tools\",\n title: \"talonic_mining_start_round\",\n seoTitle: \"talonic_mining_start_round — Mining start round | Talonic MC\",\n description:\n \"Start a rule-finding round on an autonomous app. Without phase the app's plan picks the next one; reconcile reviews rules whose candidates lapsed (needs…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Start a rule-finding round on an autonomous app. Without phase the app's plan picks the next one; reconcile reviews rules whose candidates lapsed (needs configure access). dry_run re-grades without searching. Listed only when the workspace has an autonomous app. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: the user asks to look for new rules now. Only one externally driven round per app can be open (HTTP 409 with the open task otherwise).\",\n \"RETURNS: { run_id, status, phase, … }. A round with an outside driver then waits for a claim: see talonic_list_decision_tasks.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"Id (UUID) of an autonomous app, from talonic_list_apps where mode is 'autonomous'.\",\n },\n {\n name: \"phase\",\n type: '\"discovery\" | \"hypothesis\" | \"reconcile\"',\n required: false,\n description: \"\",\n },\n {\n name: \"dry_run\",\n type: \"boolean\",\n required: false,\n description: \"\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_mining_get_round\",\n slug: \"talonic-mining-get-round\",\n },\n {\n label: \"talonic_mining_list_round_tools\",\n slug: \"talonic-mining-list-round-tools\",\n },\n {\n label: \"talonic_claim_decision_task\",\n slug: \"talonic-claim-decision-task\",\n },\n ],\n mentions: [\"rule finding\", \"mining round\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read a workspace app that finds rules in its data. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-mining-list-round-tools\",\n parentSlug: \"tools\",\n title: \"talonic_mining_list_round_tools\",\n seoTitle: \"talonic_mining_list_round_tools — Mining list round tools\",\n description:\n \"List the tools you may call on a round you hold the claim on, with their inputs, the round's remaining budget and the retry rule for a busy round. Part of the…\",\n content: [\n {\n type: \"paragraph\",\n text: \"List the tools you may call on a round you hold the claim on, with their inputs, the round's remaining budget and the retry rule for a busy round. Listed only when the workspace has an autonomous app. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"USE WHEN: right after claiming the round's decision task, or to check remaining budget.\",\n \"FLOW for a round waiting for an outside driver: talonic_list_decision_tasks (the app's tasks) -> talonic_claim_decision_task (keep execution_epoch) -> talonic_read_decision_package (the round's brief and tools) -> talonic_mining_list_round_tools -> talonic_mining_call_round_tool, repeatedly, with talonic_heartbeat_decision_task before the lease ends -> talonic_submit_decision_task with outcome { summary, protocol_feedback }, evidence [] and a one-line rationale.\",\n \"AUTH: a tlnc_ key needs a per-app 'decide' grant (plus 'read' for the round reads); an OAuth connector session needs the apps:decide scope and a live workspace role of senior_member or above. A 403 names what is missing: tell the user, do not retry.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"Id (UUID) of an autonomous app, from talonic_list_apps where mode is 'autonomous'.\",\n },\n {\n name: \"run_id\",\n type: \"string\",\n required: true,\n description:\n \"The round's run id (run_id from talonic_mining_list_rounds, or the decision task's run_id).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_mining_start_round\",\n slug: \"talonic-mining-start-round\",\n },\n {\n label: \"talonic_mining_call_round_tool\",\n slug: \"talonic-mining-call-round-tool\",\n },\n {\n label: \"talonic_claim_decision_task\",\n slug: \"talonic-claim-decision-task\",\n },\n ],\n mentions: [\"rule finding\", \"mining round\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read a workspace app that finds rules in its data. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-mining-call-round-tool\",\n parentSlug: \"tools\",\n title: \"talonic_mining_call_round_tool\",\n seoTitle: \"talonic_mining_call_round_tool — Mining call round tool\",\n description:\n \"Call one round tool by name with its input, as the current claimant. The call runs under the app's grants and the round's budgets; a tool's own error comes…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Call one round tool by name with its input, as the current claimant. The call runs under the app's grants and the round's budgets; a tool's own error comes back as is_error:true with a reason, not as a failure of this call. Listed only when the workspace has an autonomous app. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"Busy rounds are retried for you. A call that runs long is polled for up to wait_seconds (default 25, max 120); if it is still running you get its call_id: poll talonic_mining_get_round_tool_call.\",\n \"Do not call tools on one round in parallel. close_round is not a tool here: close the round with talonic_submit_decision_task.\",\n \"ARGS: app_id, run_id, execution_epoch, name, input (object, default {}), optional wait_seconds. A stale or foreign claim or an expired lease is HTTP 409: claim again.\",\n \"AUTH: a tlnc_ key needs a per-app 'decide' grant (plus 'read' for the round reads); an OAuth connector session needs the apps:decide scope and a live workspace role of senior_member or above. A 403 names what is missing: tell the user, do not retry.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"Id (UUID) of an autonomous app, from talonic_list_apps where mode is 'autonomous'.\",\n },\n {\n name: \"run_id\",\n type: \"string\",\n required: true,\n description:\n \"The round's run id (run_id from talonic_mining_list_rounds, or the decision task's run_id).\",\n },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description:\n \"execution_epoch from talonic_claim_decision_task. A stale epoch is HTTP 409.\",\n },\n {\n name: \"name\",\n type: \"string\",\n required: true,\n description: \"A tool name from talonic_mining_list_round_tools.\",\n },\n {\n name: \"input\",\n type: \"object\",\n required: false,\n description: \"The tool's input object.\",\n },\n {\n name: \"wait_seconds\",\n type: \"integer\",\n required: false,\n description: \"Seconds to keep polling a long call (default 25).\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_mining_list_round_tools\",\n slug: \"talonic-mining-list-round-tools\",\n },\n {\n label: \"talonic_mining_get_round_tool_call\",\n slug: \"talonic-mining-get-round-tool-call\",\n },\n {\n label: \"talonic_claim_decision_task\",\n slug: \"talonic-claim-decision-task\",\n },\n ],\n mentions: [\"rule finding\", \"mining round\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read a workspace app that finds rules in its data. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n {\n slug: \"talonic-mining-get-round-tool-call\",\n parentSlug: \"tools\",\n title: \"talonic_mining_get_round_tool_call\",\n seoTitle: \"talonic_mining_get_round_tool_call — Mining get round tool…\",\n description:\n \"Read a round tool call that was still running: status running | done, and its content and is_error once done. Only the round's current claimant can read it…\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read a round tool call that was still running: status running | done, and its content and is_error once done. Only the round's current claimant can read it. Listed only when the workspace has an autonomous app. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n {\n type: \"list\",\n ordered: false,\n items: [\n \"ARGS: app_id, run_id, call_id, execution_epoch.\",\n \"AUTH: a tlnc_ key needs a per-app 'decide' grant (plus 'read' for the round reads); an OAuth connector session needs the apps:decide scope and a live workspace role of senior_member or above. A 403 names what is missing: tell the user, do not retry.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Parameters\",\n params: [\n {\n name: \"app_id\",\n type: \"string\",\n required: true,\n description:\n \"Id (UUID) of an autonomous app, from talonic_list_apps where mode is 'autonomous'.\",\n },\n {\n name: \"run_id\",\n type: \"string\",\n required: true,\n description:\n \"The round's run id (run_id from talonic_mining_list_rounds, or the decision task's run_id).\",\n },\n {\n name: \"call_id\",\n type: \"string\",\n required: true,\n description: \"call_id from talonic_mining_call_round_tool.\",\n },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description:\n \"execution_epoch from talonic_claim_decision_task. A stale epoch is HTTP 409.\",\n },\n ],\n },\n ],\n related: [\n {\n label: \"talonic_mining_call_round_tool\",\n slug: \"talonic-mining-call-round-tool\",\n },\n {\n label: \"talonic_claim_decision_task\",\n slug: \"talonic-claim-decision-task\",\n },\n ],\n mentions: [\"rule finding\", \"mining round\"],\n faq: [\n {\n question: \"When is this tool listed?\",\n answer:\n \"When the credential can read a workspace app that finds rules in its data. The platform checks the caller's role, per-app access and key scopes on every call.\",\n },\n ],\n },\n]\n","import type { RawSection } from \"../../types\"\n\nconst pageArgs = [\n { name: \"limit\", type: \"integer\", description: \"Items per page, 1-100. Default 20.\" },\n { name: \"cursor\", type: \"string\", description: \"`pagination.next_cursor` of the previous page.\" },\n {\n name: \"order\",\n type: \"asc | desc\",\n description: \"By creation time. Default desc (newest first).\",\n },\n { name: \"after\", type: \"ISO-8601\", description: \"Only items created after this time.\" },\n { name: \"before\", type: \"ISO-8601\", description: \"Only items created before this time.\" },\n]\n\nexport const section: RawSection = {\n slug: \"data-management-tools\",\n parentSlug: \"tool-groups\",\n title: \"Documents, extractions, jobs and schemas\",\n seoTitle: \"Manage Documents, Extractions, Jobs and Schemas via MCP\",\n description:\n \"MCP tools to list, re-extract and delete Talonic documents, read and correct extracted values, run and cancel jobs over many documents, and edit saved schemas.\",\n content: [\n {\n type: \"paragraph\",\n text: \"These tools cover the day-to-day housekeeping of a workspace: listing documents, reading a document again, correcting values, running one saved schema over many documents as a job, and changing or removing saved schemas. Every call runs as the person behind the connection: a document that person cannot see answers 404, exactly like a missing one.\",\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"The tools are listed when the connection can read the workspace's documents; changes need the `write` scope. `talonic_delete_document` and `talonic_delete_schema` cannot be undone, and `talonic_update_schema` with a new field list removes every field you do not send again. Agents confirm with the user before calling them. Re-extracting a document and creating a job consume credits and are not deduplicated: after a timeout, check the first call's result before calling again.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-list-documents\", text: \"talonic_list_documents\" },\n {\n type: \"paragraph\",\n text: \"List documents, newest first, one page at a time. Returns `data[]` (id, filename, pages, status, source, field count, created_at) and `pagination { total, limit, has_more, next_cursor }`.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"status\",\n type: \"string\",\n description: \"Only documents with this status, e.g. `error`.\",\n },\n { name: \"source_id\", type: \"UUID\", description: \"Only documents from this source.\" },\n {\n name: \"source_type\",\n type: \"string\",\n description: \"Only documents from this kind of source.\",\n },\n { name: \"search\", type: \"string\", description: \"Filename contains (case-insensitive).\" },\n {\n name: \"parent_id\",\n type: \"UUID\",\n description:\n \"Only documents unpacked from this one (email attachments, archive members).\",\n },\n { name: \"relation\", type: \"string\", description: \"Only nested documents of this kind.\" },\n { name: \"top_level\", type: \"boolean\", description: \"`true` hides nested documents.\" },\n {\n name: \"text_degraded\",\n type: \"boolean\",\n description: \"`true`: only documents whose text could not be read verbatim.\",\n },\n ...pageArgs,\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-reextract-document\",\n text: \"talonic_reextract_document\",\n },\n {\n type: \"paragraph\",\n text: \"Read an existing document again and capture its values afresh, without uploading it again. Consumes credits like a new extraction. Answers at once with `status: processing`; poll `talonic_get_document` until it is `completed`.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"document_id\", type: \"UUID\", required: true, description: \"The document.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-delete-document\", text: \"talonic_delete_document\" },\n {\n type: \"paragraph\",\n text: \"Delete one document with its captured values. Cannot be undone. Documents only shared with the user are read-only and answer 404. Returns `{ deleted: true, id }`.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"document_id\", type: \"UUID\", required: true, description: \"The document.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-list-extractions\", text: \"talonic_list_extractions\" },\n {\n type: \"paragraph\",\n text: \"List extractions, one per document with captured values, newest first. An extraction's id is its document's id.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"document_id\", type: \"UUID\", description: \"Only this document's extraction.\" },\n { name: \"status\", type: \"complete | failed\", description: \"Only finished or failed ones.\" },\n ...pageArgs,\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-get-extraction\", text: \"talonic_get_extraction\" },\n {\n type: \"paragraph\",\n text: \"One extraction in full: every field with its value, type and confidence.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"extraction_id\",\n type: \"UUID\",\n required: true,\n description: \"The extraction (document) id.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-get-extraction-data\",\n text: \"talonic_get_extraction_data\",\n },\n {\n type: \"paragraph\",\n text: \"One extraction's values as a flat field → value map, or as a one-row CSV (`{ format: 'csv', csv }`).\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"extraction_id\",\n type: \"UUID\",\n required: true,\n description: \"The extraction (document) id.\",\n },\n { name: \"format\", type: \"json | csv\", description: \"Default json.\" },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-correct-extraction\",\n text: \"talonic_correct_extraction\",\n },\n {\n type: \"paragraph\",\n text: \"Correct captured values. Each correction is kept as a new version of the value, attributed to the connection. A value a reviewer confirmed, or one waiting for approval, is not overwritten: it is reported in `cells_skipped`. Returns the extraction with `cells_written` and `cells_skipped`.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"extraction_id\",\n type: \"UUID\",\n required: true,\n description: \"The extraction (document) id.\",\n },\n {\n name: \"values\",\n type: \"object\",\n required: true,\n description: \"`{ <field_name>: corrected value }` for the fields to change.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-list-jobs\", text: \"talonic_list_jobs\" },\n {\n type: \"paragraph\",\n text: \"List jobs (one saved schema run over a set of documents), newest first.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"status\", type: \"string\", description: \"Only jobs with this status.\" },\n ...pageArgs,\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-get-job\", text: \"talonic_get_job\" },\n {\n type: \"paragraph\",\n text: \"One job's status, schema, document count, timestamps and error. Poll it after `talonic_create_job`.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"job_id\", type: \"UUID\", required: true, description: \"The job.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-get-job-results\", text: \"talonic_get_job_results\" },\n {\n type: \"paragraph\",\n text: \"A job's result rows: one per document with its values, confidence and validation flags. Readable while the job still runs.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"job_id\", type: \"UUID\", required: true, description: \"The job.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-create-job\", text: \"talonic_create_job\" },\n {\n type: \"paragraph\",\n text: \"Run a saved schema over many documents and collect one row of values per document. Consumes credits per document. Name the documents, or pass `all_documents: true` for every completed document of the workspace. Returns the job id; poll `talonic_get_job`.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"schema_id\",\n type: \"UUID\",\n required: true,\n description: \"The saved schema to run.\",\n },\n { name: \"document_ids\", type: \"UUID[]\", description: \"The documents to process.\" },\n {\n name: \"all_documents\",\n type: \"boolean\",\n description: \"`true`: every completed document, instead of `document_ids`.\",\n },\n { name: \"name\", type: \"string\", description: \"A name for the job, up to 200 characters.\" },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-cancel-job\", text: \"talonic_cancel_job\" },\n {\n type: \"paragraph\",\n text: \"Cancel a pending or running job; rows already produced stay. Safe to retry: a job that already ended answers 409 and is left as it is.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"job_id\", type: \"UUID\", required: true, description: \"The job.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-update-schema\", text: \"talonic_update_schema\" },\n {\n type: \"paragraph\",\n text: \"Rename a saved schema, change its description, or replace its field list. A new `definition` or `fields` list replaces every field, so read the schema first with `talonic_get_schema` and send the whole list. A schema managed by a Spec answers 409; change the Spec in the app instead.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"schema_id\",\n type: \"string\",\n required: true,\n description: \"UUID or SCH-XXXXXXXX short id.\",\n },\n { name: \"name\", type: \"string\", description: \"New name, up to 100 characters.\" },\n {\n name: \"description\",\n type: \"string | null\",\n description: \"New description; null clears it.\",\n },\n {\n name: \"definition\",\n type: \"object\",\n description: \"The full field list as JSON Schema: `{ properties, required }`.\",\n },\n {\n name: \"fields\",\n type: \"object[]\",\n description:\n \"The full field list as rows: `field_name`, `display_name`, `data_type`, `description`, `is_required`.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-delete-schema\", text: \"talonic_delete_schema\" },\n {\n type: \"paragraph\",\n text: \"Delete a saved schema. Cannot be undone; documents already extracted with it keep their values. A schema managed by a Spec answers 409.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"schema_id\",\n type: \"string\",\n required: true,\n description: \"UUID or SCH-XXXXXXXX short id.\",\n },\n ],\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\nexport const section: RawSection = {\n slug: \"events-tools\",\n parentSlug: \"tool-groups\",\n title: \"Events\",\n seoTitle: \"talonic_list_events — Read the Talonic Workspace Event Feed\",\n description:\n \"MCP tool that reads your Talonic workspace's event feed (extractions, run results, review verdicts, deliveries) and resumes from a saved cursor later.\",\n content: [\n {\n type: \"paragraph\",\n text: \"**`talonic_list_events`** reads what happened in the workspace: documents extracted, runs completed or failed, review verdicts, delivery outcomes. These are the same events your webhooks receive, so an agent or a scheduled job can catch up on anything a webhook missed, or answer “what failed since this morning?”.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Listed when the connection can read the workspace. Only events about documents the connected person may see are returned.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-list-events\", text: \"talonic_list_events\" },\n {\n type: \"paragraph\",\n text: \"Two ways to page. Without `after` you get the newest events first, paged with `limit` and `offset`. With `after` set to an event id or a saved `next_cursor`, you get strictly newer events, oldest first: process them in order, save the returned `next_cursor`, and pass it as `after` next time. `next_cursor` is `null` only at the end of the feed.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"after\",\n type: \"string\",\n description:\n \"Resume point: a saved `next_cursor` or an event id. Returns newer events, oldest first.\",\n },\n {\n name: \"since\",\n type: \"string\",\n description: \"Only events created at or after this ISO-8601 time.\",\n },\n {\n name: \"event_type\",\n type: \"string | string[]\",\n description: \"One event type or several.\",\n },\n { name: \"limit\", type: \"integer\", description: \"Events per page, 1-200.\", default: \"50\" },\n {\n name: \"offset\",\n type: \"integer\",\n description: \"Events to skip on the newest-first listing.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Resume from a saved cursor\",\n code: '{ \"after\": \"1042\", \"limit\": 100 }\\n\\n→ { \"data\": [{ \"id\": \"1043\", \"event_type\": \"extraction.completed\", \"payload\": { … }, \"created_at\": \"2026-11-25T07:01:12Z\" }], \"next_cursor\": \"1043\" }',\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\nexport const section: RawSection = {\n slug: \"aggregate-tools\",\n parentSlug: \"tool-groups\",\n title: \"Workspace metrics\",\n seoTitle: \"talonic_aggregate — Workspace Metrics in One MCP Call\",\n description:\n \"MCP tools that answer monitoring questions about a Talonic workspace in one call: documents received or failed, app verdicts, deliveries and cost per document.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Ask for several numbers about the workspace in one request: how many documents arrived or failed in the last 12 hours, how many lack a value, verdicts by state, median cost per document. Only numbers come back, never document content, and only documents the connected person may see are counted.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Listed when the workspace offers metrics to the connection. One metrics request per workspace runs at a time; a second one answers 429 and should be retried after a few seconds.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-aggregate-catalog\",\n text: \"talonic_aggregate_catalog\",\n },\n {\n type: \"paragraph\",\n text: \"What can be counted: every dataset with its fields, which fields can be grouped and filtered with which operators, the measures, the limits (window length, queries per request) and whether this workspace may see cost fields. Free; call it before the first metrics request.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-aggregate\", text: \"talonic_aggregate\" },\n {\n type: \"paragraph\",\n text: \"Computes several named numbers (20 by default) over a half-open window `[from, to)` of at most 31 days by default; the catalog states the limits that apply. Each query picks a dataset and a measure (`count`, `count_distinct`, `sum`, `avg`, `min`, `max`, `median`, `p1`-`p99`), optional filters and up to three group-by fields or `hour` / `day`. A count over nothing is `0`; an average or percentile over nothing is `null`. Cost fields are in US dollars.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"from\",\n type: \"string\",\n required: true,\n description: \"Window start, inclusive, ISO-8601 with an offset (`2026-11-05T12:00:00Z`).\",\n },\n {\n name: \"to\",\n type: \"string\",\n required: true,\n description: \"Window end, exclusive, with an offset.\",\n },\n {\n name: \"scope\",\n type: \"object\",\n description:\n \"Document selectors for every query: `document_ids`, `tags`, `system_tags`, `source_connection_ids`, `document_types`, `client_batch_ids`, `roots_only`, `attachments_only`.\",\n },\n {\n name: \"queries\",\n type: \"object[]\",\n required: true,\n description:\n \"Each `{ id, dataset, measure, of?, where?, group_by? }`; `id` is lowercase letters, digits and underscores and keys the result.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Documents received and failed today\",\n code: '{\\n \"from\": \"2026-11-25T00:00:00Z\",\\n \"to\": \"2026-11-26T00:00:00Z\",\\n \"queries\": [\\n { \"id\": \"received\", \"dataset\": \"documents\", \"measure\": \"count\" },\\n { \"id\": \"failed\", \"dataset\": \"documents\", \"measure\": \"count\", \"where\": [{ \"field\": \"failed\", \"op\": \"eq\", \"value\": true }] }\\n ]\\n}',\n },\n {\n type: \"paragraph\",\n text: \"Errors: `400 invalid_aggregate` names the allowed datasets, fields or measures; `403 cost_not_visible` when the workspace may not see costs; `422 aggregate_timeout` names the dataset to narrow.\",\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\nexport const section: RawSection = {\n slug: \"admin-tools\",\n parentSlug: \"tool-groups\",\n title: \"Workspace administration\",\n seoTitle: \"Workspace Admin Tools — API Keys, Webhooks, Credits\",\n description:\n \"MCP tools for Talonic workspace admins: list, create and revoke API keys, manage webhooks and their event types, read the account and get a buy-credits link.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Manage the workspace from an agent: API keys, webhooks, the account snapshot and the link where a person buys credits. Each tool calls the same Talonic API your dashboard uses, with your credential.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are meant for workspace admins. Talonic checks every call against the person behind the credential, exactly as in the app: an owner manages every key, anyone else only their own, and a new key can never carry more access than the credential that creates it. A new key's secret is shown once, in the create response; store it straight away.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-list-api-keys\", text: \"talonic_list_api_keys\" },\n {\n type: \"paragraph\",\n text: \"The workspace's API keys with name, scopes, masked prefix, active state, last use and expiry. Never returns a secret.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-create-api-key\", text: \"talonic_create_api_key\" },\n {\n type: \"paragraph\",\n text: \"Creates a key and returns its secret once in `key`. Scopes can only be a subset of the calling credential's own; `billing`, `usage` and `records_write` are granted only by an owner in the app.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"name\",\n type: \"string\",\n required: true,\n description: \"Label shown in listings (1-255 characters).\",\n },\n {\n name: \"scopes\",\n type: \"string[]\",\n description:\n \"Subset of extract, read, write, operations, billing, delivery, usage, records_write. Default: the calling credential's scopes.\",\n },\n {\n name: \"expires_at\",\n type: \"string\",\n description: \"ISO-8601 time in the future when the key stops working.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-revoke-api-key\", text: \"talonic_revoke_api_key\" },\n {\n type: \"paragraph\",\n text: \"Revokes a key at once; it cannot be turned back on. Marked destructive, so clients ask before running it.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"key_id\",\n type: \"UUID\",\n required: true,\n description: \"The key, from talonic_list_api_keys.\",\n },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-get-account\", text: \"talonic_get_account\" },\n {\n type: \"paragraph\",\n text: \"Plan (`tier`), status, credit balance in EUR, daily request limits and today's usage against them.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-list-webhooks\", text: \"talonic_list_webhooks\" },\n {\n type: \"paragraph\",\n text: \"Every webhook with its URL, event types, active state and optional source. Signing secrets are never returned.\",\n },\n { type: \"heading\", level: 3, id: \"talonic-get-webhook\", text: \"talonic_get_webhook\" },\n { type: \"paragraph\", text: \"One webhook by id.\" },\n {\n type: \"param-table\",\n params: [{ name: \"id\", type: \"UUID\", required: true, description: \"The webhook id.\" }],\n },\n { type: \"heading\", level: 3, id: \"talonic-create-webhook\", text: \"talonic_create_webhook\" },\n {\n type: \"paragraph\",\n text: \"Sends the chosen events to your URL as signed POST requests (`X-Talonic-Signature: sha256=<hex>` over the raw body when a secret is set).\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"url\",\n type: \"string\",\n required: true,\n description: \"Receiver URL that accepts POST.\",\n },\n {\n name: \"events\",\n type: \"string[]\",\n description: \"Event types. Default: extraction.complete, extraction.failed.\",\n },\n { name: \"secret\", type: \"string\", description: \"Signing secret your receiver verifies.\" },\n { name: \"source_connection_id\", type: \"UUID\", description: \"Only events of this source.\" },\n { name: \"is_active\", type: \"boolean\", description: \"Default true.\" },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-update-webhook\", text: \"talonic_update_webhook\" },\n {\n type: \"paragraph\",\n text: \"Changes only the fields you send. `is_active: false` pauses deliveries without deleting the webhook.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"id\", type: \"UUID\", required: true, description: \"The webhook id.\" },\n { name: \"url\", type: \"string\", description: \"New receiver URL.\" },\n { name: \"events\", type: \"string[]\", description: \"New event types.\" },\n { name: \"secret\", type: \"string\", description: \"New signing secret.\" },\n { name: \"is_active\", type: \"boolean\", description: \"Pause or resume.\" },\n ],\n },\n { type: \"heading\", level: 3, id: \"talonic-delete-webhook\", text: \"talonic_delete_webhook\" },\n {\n type: \"paragraph\",\n text: \"Deletes a webhook for good. Marked destructive. To stop deliveries for a while, pause it instead.\",\n },\n {\n type: \"param-table\",\n params: [{ name: \"id\", type: \"UUID\", required: true, description: \"The webhook id.\" }],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-list-webhook-event-types\",\n text: \"talonic_list_webhook_event_types\",\n },\n {\n type: \"paragraph\",\n text: \"The event types a webhook can subscribe to, each with a description. A past webhook call is not re-sent; a receiver that missed events reads them with `talonic_list_events` from its saved cursor.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-get-billing-upgrade-link\",\n text: \"talonic_get_billing_upgrade_link\",\n },\n {\n type: \"paragraph\",\n text: \"A link where a person buys credits. The tool never buys anything: a human opens the link and completes the payment, and credits arrive seconds later. Workspaces billed through a marketplace get the marketplace page.\",\n },\n {\n type: \"param-table\",\n params: [\n { name: \"pack\", type: \"string\", description: \"10, 50, 250 or 1000 (EUR). Default 50.\" },\n ],\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { DocBlock, Param, RawSection } from \"../../types\"\n\nconst tool = (name: string, text: string, params: Param[] = []): DocBlock[] => [\n { type: \"heading\", level: 3, id: name.replace(/_/g, \"-\"), text: name },\n { type: \"paragraph\", text },\n ...(params.length ? [{ type: \"param-table\" as const, params }] : []),\n]\n\nconst paging: Param[] = [\n { name: \"page\", type: \"integer\", description: \"Page number, from 1.\" },\n { name: \"limit\", type: \"integer\", description: \"Rows per page; the desk caps it.\" },\n]\nconst team: Param = {\n name: \"team\",\n type: \"string\",\n description: \"One team's work only; all teams when left out.\",\n}\n\nexport const section: RawSection = {\n slug: \"contract-desk-tools\",\n parentSlug: \"tool-groups\",\n title: \"Contract Desk\",\n seoTitle: \"Contract Desk MCP Tools — Work, Evidence and Decisions\",\n description:\n \"Use the Contract Desk from an AI agent: list open contract work by team, open an item's evidence, record a decision at its source app and undo it if needed.\",\n content: [\n {\n type: \"paragraph\",\n text: \"The Contract Desk gathers the open work of your contract apps in one list: values where the documents and the CRM disagree or are missing, missing documents, site checks, key dates and process steps. With these tools an agent works that list the way a person does: pick a batch from the To do list, open an item's evidence, record a decision, and undo it if it was wrong. A decision is recorded at the item's source app and in the desk's log, under your connection.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are listed only when the Contract Desk is available to your connection. Every call is checked against your role in the workspace, exactly as in the app: reading needs an active membership, deciding needs the edit permission and the app switched on, changing the team setup needs an Admin.\",\n },\n {\n type: \"list\",\n ordered: true,\n items: [\n \"`talonic_contract_desk_todo` — sections and batches of open work.\",\n \"`talonic_contract_desk_todo_items` — the items of one batch.\",\n \"`talonic_contract_desk_get_decision` — one item's evidence and the actions it offers.\",\n \"`talonic_contract_desk_decide` — record the decision (preview with `dry_run` first).\",\n \"`talonic_contract_desk_undo` — take a decision back while it is the item's latest.\",\n ],\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"Accepting a colleague's suggestion is done by a person in the app; there is no tool for it.\",\n },\n ...tool(\n \"talonic_contract_desk_status\",\n \"Whether the desk is ready: when it was last refreshed, whether a refresh is running, and how many sites, contracts and open items it holds.\",\n ),\n ...tool(\n \"talonic_contract_desk_refresh\",\n \"Start a refresh of the desk from its source apps. Answers at once; the status tool shows it running. Needs the run permission.\",\n ),\n ...tool(\"talonic_contract_desk_sites\", \"One page of sites with their open work.\", [\n {\n name: \"q\",\n type: \"string\",\n description:\n \"Words that must each occur in the site's number, name, contracts or partners.\",\n },\n {\n name: \"filter\",\n type: \"string\",\n description: \"`all`, `now` (work due now) or `nodoc` (no documents).\",\n },\n ...paging,\n ]),\n ...tool(\"talonic_contract_desk_get_site\", \"One site with its contracts and site-level items.\", [\n { name: \"key\", type: \"string\", required: true, description: \"The site key.\" },\n ]),\n ...tool(\n \"talonic_contract_desk_contracts\",\n \"One page of contracts, searchable, for one partner or one site.\",\n [\n { name: \"q\", type: \"string\", description: \"Search words.\" },\n { name: \"partner\", type: \"string\", description: \"A `partner_key`, matched exactly.\" },\n { name: \"site\", type: \"string\", description: \"A site key, matched exactly.\" },\n ...paging,\n ],\n ),\n ...tool(\n \"talonic_contract_desk_get_contract\",\n \"One contract with its items and values: where the documents and the CRM agree or differ, and what is open.\",\n [{ name: \"id\", type: \"string\", required: true, description: \"The contract's `crm_key`.\" }],\n ),\n ...tool(\n \"talonic_contract_desk_dashboard\",\n \"Work due now and this month, open work by team, due dates by week, the busiest sites and the history.\",\n [team],\n ),\n ...tool(\n \"talonic_contract_desk_quality\",\n \"Required values and how many are still open, the attributes with most open values, and how well documents link to contracts.\",\n ),\n ...tool(\n \"talonic_contract_desk_todo\",\n \"The To do list: per section (now, this month, later, no date) its count and first batches of similar items, plus today's decisions.\",\n [team],\n ),\n ...tool(\"talonic_contract_desk_todo_items\", \"One page of the open items of a batch.\", [\n {\n name: \"batch\",\n type: \"string\",\n required: true,\n description: \"The batch key from `talonic_contract_desk_todo`, unchanged.\",\n },\n ...paging,\n ]),\n ...tool(\n \"talonic_contract_desk_get_decision\",\n \"Everything the decision screen shows for one item: for a value, what each document and the CRM say and the values to pick; for a key date, its day and the outcomes offered; for a process step, mark it handled. `can_decide` says whether your connection may decide it; `mode: suggest` means your decision becomes a suggestion a colleague accepts.\",\n [{ name: \"id\", type: \"UUID\", required: true, description: \"The item id.\" }],\n ),\n ...tool(\n \"talonic_contract_desk_decide\",\n \"Decide one item at its source app. Run with `dry_run` first. Returns the `decision_id` to undo it with.\",\n [\n { name: \"id\", type: \"UUID\", required: true, description: \"The item id.\" },\n {\n name: \"action\",\n type: \"string\",\n required: true,\n description:\n \"`set`, `crm_add`, `handled`, `notice_sent`, `renewal_declined` or `terminated`; only those the item offers.\",\n },\n { name: \"value\", type: \"string\", description: \"The value to record; with `set` only.\" },\n {\n name: \"note\",\n type: \"string\",\n description: \"Why, in a few words; recorded at the source.\",\n },\n { name: \"dry_run\", type: \"boolean\", description: \"Preview only; nothing is recorded.\" },\n ],\n ),\n ...tool(\n \"talonic_contract_desk_decisions\",\n \"The decisions newest first, with who decided what and whether each can still be undone.\",\n [\n { name: \"mine\", type: \"boolean\", description: \"Only your own decisions.\" },\n { name: \"crm_key\", type: \"string\", description: \"One contract's decisions.\" },\n ...paging,\n ],\n ),\n ...tool(\n \"talonic_contract_desk_undo\",\n \"Undo a decision at its source and put the item back on the list. Only an item's latest decision can be undone.\",\n [{ name: \"id\", type: \"UUID\", required: true, description: \"The decision id.\" }],\n ),\n ...tool(\n \"talonic_contract_desk_settings\",\n \"Which team gets which items: the team per item kind and per attribute, and the choices.\",\n ),\n ...tool(\n \"talonic_contract_desk_save_settings\",\n \"Replace the whole team setup and refresh the desk. Read the current setup first and send it back complete. Needs an Admin.\",\n [\n {\n name: \"teams\",\n type: \"object\",\n required: true,\n description: \"`{ kinds: { <kind>: <team> }, fields: { <field_key>: <team> } }`.\",\n },\n ],\n ),\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { DocBlock, Param, RawSection } from \"../../types\"\n\nconst tool = (name: string, text: string, params: Param[] = []): DocBlock[] => [\n { type: \"heading\", level: 3, id: name.replace(/_/g, \"-\"), text: name },\n { type: \"paragraph\", text },\n ...(params.length ? [{ type: \"param-table\" as const, params }] : []),\n]\n\nconst folder: Param = {\n name: \"folder_id\",\n type: \"UUID\",\n required: true,\n description: \"The transport folder.\",\n}\nconst doc: Param = {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"A document of the folder.\",\n}\nconst load: Param = {\n name: \"load_key\",\n type: \"string\",\n required: true,\n description: \"A load of the folder.\",\n}\n\nexport const section: RawSection = {\n slug: \"transport-folders-tools\",\n parentSlug: \"tool-groups\",\n title: \"Transport Folders\",\n seoTitle: \"Transport Folders MCP Tools — Loads, Documents, Handover\",\n description:\n \"Use Transport Folders from an AI agent: list loads and documents that need a person, open the evidence, assign documents, confirm loads, get the customer set.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Transport Folders turns each scanned packet of a transport into one folder, matches its documents to the transport's loads and judges each load: required documents on file, delivery confirmed, quantities agree. Documents that fit no single load wait for a person. With these tools an agent works the worklist, opens a folder's evidence, assigns a document to a load or confirms a load, and can take either back.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are listed only when Transport Folders is available to your connection. Every call is checked against your role in the workspace, exactly as in the app: documents are shown as you may see them, changing the settings needs an Admin, and locating values and confirming loads need the app switched on.\",\n },\n {\n type: \"list\",\n ordered: true,\n items: [\n \"`talonic_transport_folders_worklist` — loads not complete and documents not assigned.\",\n \"`talonic_transport_folders_get` — one folder's loads, documents and comparisons.\",\n \"`talonic_transport_folders_assign` or `talonic_transport_folders_confirm_load` — record the decision.\",\n \"`talonic_transport_folders_unassign` or `talonic_transport_folders_unconfirm_load` — take it back.\",\n ],\n },\n ...tool(\n \"talonic_transport_folders_list\",\n \"Every folder with its transport number, status and load counts, and whether the app is set up.\",\n ),\n ...tool(\n \"talonic_transport_folders_worklist\",\n \"Everything that needs a person across all folders: loads not complete and documents not assigned to a load.\",\n ),\n ...tool(\n \"talonic_transport_folders_get\",\n \"One folder: per load its verdict, what is missing, the record compared with the documents and whether it is confirmed; per document the load it belongs to and why, or the candidate loads and a suggestion.\",\n [folder],\n ),\n ...tool(\n \"talonic_transport_folders_boxes\",\n \"Where each captured value of a document sits on its pages, as far as already located.\",\n [folder, doc],\n ),\n ...tool(\n \"talonic_transport_folders_locate_document\",\n \"Find where a document's values sit on its page images and keep the result. Does nothing when already done.\",\n [folder, doc],\n ),\n ...tool(\n \"talonic_transport_folders_locate_folder\",\n \"Find where the values of every document of a folder sit on the page images.\",\n [folder],\n ),\n ...tool(\n \"talonic_transport_folders_assign\",\n \"Record which load a document belongs to, or that it belongs to no load. Your assignment wins over the matching.\",\n [\n folder,\n doc,\n {\n name: \"load_key\",\n type: \"string | null\",\n required: true,\n description: \"A load of the folder, or null for no load.\",\n },\n ],\n ),\n ...tool(\n \"talonic_transport_folders_unassign\",\n \"Withdraw an assignment, so the matching decides again.\",\n [folder, doc],\n ),\n ...tool(\n \"talonic_transport_folders_confirm_load\",\n \"Confirm a load as ready to invoice and hand its customer document set over. Records who confirmed and which documents.\",\n [folder, load],\n ),\n ...tool(\"talonic_transport_folders_unconfirm_load\", \"Withdraw a load's confirmation.\", [\n folder,\n load,\n ]),\n ...tool(\n \"talonic_transport_folders_handover\",\n \"The customer document set of a load as one PDF (returned as an embedded file), with the archive filing values per document (`index`).\",\n [folder, load],\n ),\n ...tool(\n \"talonic_transport_folders_settings\",\n \"The app's settings and what they can be set to: your Specs and ready reference tables.\",\n ),\n ...tool(\n \"talonic_transport_folders_save_settings\",\n \"Change the settings; only the keys sent change and null clears one. Needs an Admin.\",\n [\n {\n name: \"pipeline_id\",\n type: \"UUID | null\",\n description: \"The Spec run whose results describe the documents.\",\n },\n {\n name: \"reference_data_id\",\n type: \"UUID | null\",\n description: \"The reference table holding the loads.\",\n },\n {\n name: \"folder_key_pattern\",\n type: \"string | null\",\n description:\n \"Regular expression whose first group is the transport number in a filename.\",\n },\n {\n name: \"matcher\",\n type: \"object | null\",\n description: \"Overrides of column names, field names and document type lists.\",\n },\n ],\n ),\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\n// Generated from src/tools/compliance.ts (names, summaries, parameters); keep in step with it.\nexport const section: RawSection = {\n slug: \"compliance-tools\",\n parentSlug: \"tool-groups\",\n title: \"Compliance\",\n seoTitle: \"Compliance MCP Tools — Check Documents Against Rules\",\n description:\n \"MCP tools for the Talonic Compliance app: list failed checks, open a verdict with its reason and quote, re-evaluate documents and manage frameworks and sets.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Check workspace documents against the regulations, policies and standards the workspace holds as frameworks. Each rule of a framework that is ON gets a verdict per document (or per document set): pass, fail, unclear or not applicable, with the reason and the quote it rests on.\",\n },\n {\n type: \"paragraph\",\n text: \"The usual loop: **`talonic_compliance_issues`** lists what fails, **`talonic_compliance_get_document_evaluation`** shows the evidence for one document, and the allowed correction follows: re-evaluate after the document changed, take a document off the list, switch a framework OFF, or narrow the rules a document set is judged against. A workspace that makes its compliance decisions with its own agent works them through the task tools (claim, heartbeat, release, submit).\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are listed only when the Compliance app is available to the connection. Every call is checked against the role and permissions of the person behind the connection, exactly as in the web app.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-issues\",\n text: \"talonic_compliance_issues\",\n },\n {\n type: \"paragraph\",\n text: \"The worklist of failed checks: per document the rules it fails (and, with `unclear`, the rules whose verdict is unclear), with the framework each rule comes from.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"unclear\",\n type: \"boolean\",\n required: false,\n description: \"Also list rules whose verdict is unclear.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-get-document-evaluation\",\n text: \"talonic_compliance_get_document_evaluation\",\n },\n {\n type: \"paragraph\",\n text: \"A document's latest evaluation with every result: per rule the verdict (pass, fail, unclear, not_applicable), the reason, the quote from the document it rests on, whether it needs a person's check, and whether the evaluation is outdated.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The evaluated document.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-evaluations\",\n text: \"talonic_compliance_list_evaluations\",\n },\n {\n type: \"paragraph\",\n text: \"The latest evaluation of every document on the Evaluations list. Without paging arguments the whole list; with any of status / limit / offset one page with total and has_more.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"status\",\n type: '\"processing\" | \"waiting\" | \"completed\" | \"error\"',\n required: false,\n description: \"Only evaluations with this status (an interrupted one shows error).\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Page size; any of status / limit / offset asks for one page.\",\n },\n {\n name: \"offset\",\n type: \"integer\",\n required: false,\n description: \"Rows to skip, for paging.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-evaluation-status\",\n text: \"talonic_compliance_evaluation_status\",\n },\n {\n type: \"paragraph\",\n text: \"Counts over the latest evaluations: processing, completed, error, outdated and failing.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-export\",\n text: \"talonic_compliance_export\",\n },\n {\n type: \"paragraph\",\n text: \"Download every verdict of the evaluated documents and document sets as a file (one row per rule and document or set: framework, rule, obligation, verdict, reason, quote, evaluated at, outdated), up to 8 MB.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"format\",\n type: '\"xlsx\" | \"csv\"',\n required: false,\n description: \"File format (default xlsx).\",\n },\n {\n name: \"issues_only\",\n type: \"boolean\",\n required: false,\n description: \"Only failed and unclear verdicts of the sets.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-evaluate\",\n text: \"talonic_compliance_evaluate\",\n },\n {\n type: \"paragraph\",\n text: \"Evaluate documents against every framework that is ON. Runs in the background; poll talonic_compliance_evaluation_status or talonic_compliance_get_document_evaluation.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"Documents to evaluate.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-evaluate-all\",\n text: \"talonic_compliance_evaluate_all\",\n },\n {\n type: \"paragraph\",\n text: \"Evaluate every listed document whose evaluation is missing or outdated, oldest first. Run with dry_run first to see how many.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"dry_run\",\n type: \"boolean\",\n required: false,\n description: \"Only report how many would be evaluated.\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Evaluate at most this many.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-add-documents\",\n text: \"talonic_compliance_add_documents\",\n },\n {\n type: \"paragraph\",\n text: \"Put workspace documents on the Evaluations list and evaluate them against the frameworks that are ON.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"Documents to add and evaluate.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-remove-document\",\n text: \"talonic_compliance_remove_document\",\n },\n {\n type: \"paragraph\",\n text: \"Take a document off the Evaluations list together with its evaluations. The document itself stays in the workspace; adding it again re-evaluates it. Cannot be undone: ask the user first.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The document to take off the list.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-frameworks\",\n text: \"talonic_compliance_list_frameworks\",\n },\n {\n type: \"paragraph\",\n text: \"The frameworks (regulations, policies, contract standards held as workspace documents) with their status, whether each is ON, and their rule counts.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-framework-rules\",\n text: \"talonic_compliance_framework_rules\",\n },\n {\n type: \"paragraph\",\n text: \"The rules of one framework: code, text, obligation, section, what it applies to and its condition.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The framework's document id.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-add-frameworks\",\n text: \"talonic_compliance_add_frameworks\",\n },\n {\n type: \"paragraph\",\n text: \"Make existing workspace documents frameworks (a regulation, policy or standard to check other documents against). Their rules are then written from their text; switch a framework ON to check documents against it.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"Workspace documents to make frameworks.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-set-framework-active\",\n text: \"talonic_compliance_set_framework_active\",\n },\n {\n type: \"paragraph\",\n text: \"Turn a framework ON (its rules are in force for every evaluation) or OFF (they are not). Reversible; evaluations made before become outdated.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The framework's document id.\",\n },\n {\n name: \"active\",\n type: \"boolean\",\n required: true,\n description: \"true = ON, false = OFF.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-generate-rules\",\n text: \"talonic_compliance_generate_rules\",\n },\n {\n type: \"paragraph\",\n text: \"Write the rules of a framework again from its text, replacing the current ones. Cannot be undone: ask the user first.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The framework's document id.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-remove-framework\",\n text: \"talonic_compliance_remove_framework\",\n },\n {\n type: \"paragraph\",\n text: \"Take a framework out of the app with its rules. The document stays in the workspace and can be made a framework again. Cannot be undone: ask the user first.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_id\",\n type: \"UUID\",\n required: true,\n description: \"The framework's document id.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-comparisons\",\n text: \"talonic_compliance_list_comparisons\",\n },\n {\n type: \"paragraph\",\n text: \"Comparisons of document batches for discrepancies (values that should agree across the documents but do not), newest first.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-get-comparison\",\n text: \"talonic_compliance_get_comparison\",\n },\n {\n type: \"paragraph\",\n text: \"One comparison with every discrepancy found: the value, which documents disagree and where.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"run_id\",\n type: \"UUID\",\n required: true,\n description: \"The comparison id.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-compare-documents\",\n text: \"talonic_compliance_compare_documents\",\n },\n {\n type: \"paragraph\",\n text: \"Compare a batch of documents that belong together (an order, its invoice, its delivery note) for values that disagree. Runs in the background; read it with talonic_compliance_get_comparison.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"The documents to compare.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-sets\",\n text: \"talonic_compliance_list_sets\",\n },\n {\n type: \"paragraph\",\n text: \"Document sets (documents judged as one whole, e.g. a contract with its annexes) with their documents and rule set.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-create-set\",\n text: \"talonic_compliance_create_set\",\n },\n {\n type: \"paragraph\",\n text: \"Create a document set picked by hand, judged against one rule set or, without one, every rule of the frameworks that are ON.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"name\",\n type: \"string\",\n required: true,\n description: \"Set name.\",\n },\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"The set's documents.\",\n },\n {\n name: \"rule_set_id\",\n type: \"UUID\",\n required: false,\n description: \"Rule set to judge it against; omitted or null = every ON rule.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-assembly-groups\",\n text: \"talonic_compliance_assembly_groups\",\n },\n {\n type: \"paragraph\",\n text: \"The assembly groups of the workspace's pipelines (documents grouped by a shared value, such as one order number) that sets can be made from.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-create-sets-from-groups\",\n text: \"talonic_compliance_create_sets_from_groups\",\n },\n {\n type: \"paragraph\",\n text: \"Create one document set per assembly group; the set follows the group as documents join it.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"groups\",\n type: \"object[]\",\n required: true,\n description: \"Groups from talonic_compliance_assembly_groups.\",\n },\n {\n name: \"rule_set_id\",\n type: \"UUID\",\n required: false,\n description: \"Rule set to judge them against; omitted or null = every ON rule.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-update-set\",\n text: \"talonic_compliance_update_set\",\n },\n {\n type: \"paragraph\",\n text: \"Rename a set, replace its documents (a group-following set becomes hand-picked) or change its rule set. Fields left out stay.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"set_id\",\n type: \"UUID\",\n required: true,\n description: \"The set.\",\n },\n {\n name: \"name\",\n type: \"string\",\n required: false,\n description: \"New set name.\",\n },\n {\n name: \"document_ids\",\n type: \"UUID[]\",\n required: false,\n description: \"The set's documents (replaces them).\",\n },\n {\n name: \"rule_set_id\",\n type: \"UUID\",\n required: false,\n description: \"null = every ON rule; omitted = unchanged.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-remove-set\",\n text: \"talonic_compliance_remove_set\",\n },\n {\n type: \"paragraph\",\n text: \"Remove a document set with its evaluations. The documents stay in the workspace. Cannot be undone: ask the user first.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"set_id\",\n type: \"UUID\",\n required: true,\n description: \"The set.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-set-evaluations\",\n text: \"talonic_compliance_list_set_evaluations\",\n },\n {\n type: \"paragraph\",\n text: \"The latest evaluation of every document set. Without paging arguments the whole list; with any of status / limit / offset one page with total and has_more.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"status\",\n type: '\"processing\" | \"waiting\" | \"completed\" | \"error\"',\n required: false,\n description: \"Only evaluations with this status (an interrupted one shows error).\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Page size; any of status / limit / offset asks for one page.\",\n },\n {\n name: \"offset\",\n type: \"integer\",\n required: false,\n description: \"Rows to skip, for paging.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-get-set-evaluation\",\n text: \"talonic_compliance_get_set_evaluation\",\n },\n {\n type: \"paragraph\",\n text: \"A set's latest evaluation with every result: verdict, reason, and the quote with the member document it comes from.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"set_id\",\n type: \"UUID\",\n required: true,\n description: \"The set.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-evaluate-sets\",\n text: \"talonic_compliance_evaluate_sets\",\n },\n {\n type: \"paragraph\",\n text: \"Evaluate document sets, each as one whole, against their rule set. Runs in the background.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"set_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"Sets to evaluate.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-rule-sets\",\n text: \"talonic_compliance_list_rule_sets\",\n },\n {\n type: \"paragraph\",\n text: \"The workspace's rule sets: named selections of rules of the ON frameworks that a document set is judged against.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-create-rule-set\",\n text: \"talonic_compliance_create_rule_set\",\n },\n {\n type: \"paragraph\",\n text: \"Create a named selection of rules (from talonic_compliance_framework_rules) to judge document sets against.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"name\",\n type: \"string\",\n required: true,\n description: \"Rule set name.\",\n },\n {\n name: \"rule_ids\",\n type: \"UUID[]\",\n required: true,\n description: \"Rules of ON frameworks.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-update-rule-set\",\n text: \"talonic_compliance_update_rule_set\",\n },\n {\n type: \"paragraph\",\n text: \"Rename a rule set or replace its rules.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"rule_set_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n {\n name: \"name\",\n type: \"string\",\n required: false,\n description: \"New rule set name.\",\n },\n {\n name: \"rule_ids\",\n type: \"UUID[]\",\n required: false,\n description: \"The rules (replaces them).\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-remove-rule-set\",\n text: \"talonic_compliance_remove_rule_set\",\n },\n {\n type: \"paragraph\",\n text: \"Remove a rule set. Sets that used it go back to every rule of the ON frameworks. Cannot be undone: ask the user first.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"rule_set_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-settings\",\n text: \"talonic_compliance_settings\",\n },\n {\n type: \"paragraph\",\n text: \"Who makes the workspace's compliance decisions: `platform` (Talonic decides every verdict) or `external` (the workspace's own agent decides, through the compliance tasks).\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-set-decider\",\n text: \"talonic_compliance_set_decider\",\n },\n {\n type: \"paragraph\",\n text: \"Switch who makes the compliance decisions: `platform` or `external` (the workspace's own agent works the tasks). Reversible. The person behind the connection needs the Workspace settings permission.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"decider\",\n type: '\"platform\" | \"external\"',\n required: true,\n description: \"platform = Talonic decides; external = the workspace's own agent.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-list-tasks\",\n text: \"talonic_compliance_list_tasks\",\n },\n {\n type: \"paragraph\",\n text: \"Decisions waiting for the workspace's own agent (only when the decider is external).\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"status\",\n type: '\"open\" | \"all\"',\n required: false,\n description: \"open (default) or all.\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Most tasks returned (default 100).\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-get-task\",\n text: \"talonic_compliance_get_task\",\n },\n {\n type: \"paragraph\",\n text: \"One task's state (open, claimed, done) without its work package.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-claim-task\",\n text: \"talonic_compliance_claim_task\",\n },\n {\n type: \"paragraph\",\n text: \"Claim a task for this agent and read its work package: instructions, the input, and the JSON Schema the answer must match. The claim is a lease: renew it with talonic_compliance_heartbeat_task while working, hand it back with talonic_compliance_release_task, or answer with talonic_compliance_submit_task. A lapsed lease returns the task to open.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-heartbeat-task\",\n text: \"talonic_compliance_heartbeat_task\",\n },\n {\n type: \"paragraph\",\n text: \"Renew the lease on a claimed task.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"The execution_epoch talonic_compliance_claim_task returned.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-release-task\",\n text: \"talonic_compliance_release_task\",\n },\n {\n type: \"paragraph\",\n text: \"Hand a claimed task back unanswered; it is open again for any agent.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"The execution_epoch talonic_compliance_claim_task returned.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-compliance-submit-task\",\n text: \"talonic_compliance_submit_task\",\n },\n {\n type: \"paragraph\",\n text: \"Submit the answer to a claimed task. It is checked against the package's output_schema and stored exactly like a verdict Talonic makes itself.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"task_id\",\n type: \"UUID\",\n required: true,\n description: \"Id from the matching list tool.\",\n },\n {\n name: \"execution_epoch\",\n type: \"integer\",\n required: true,\n description: \"The execution_epoch talonic_compliance_claim_task returned.\",\n },\n {\n name: \"answer\",\n type: \"object\",\n required: true,\n description: \"The answer, matching the package's output_schema.\",\n },\n ],\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\n// Generated from src/tools/money-found.ts (names, summaries, parameters); keep in step with it.\nexport const section: RawSection = {\n slug: \"money-found-tools\",\n parentSlug: \"tool-groups\",\n title: \"Money Found\",\n seoTitle: \"Money Found MCP Tools — Recoverable Amounts Ledger\",\n description:\n \"MCP tools for the Talonic Money Found app: read the ledger of recoverable amounts with their evidence, prepare evidence requests and queue row re-reviews.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Read the Money Found ledger: every amount the workspace's contracts, invoices and payments show could be recovered, grouped by lever, each row with the clause and the documents it rests on.\",\n },\n {\n type: \"paragraph\",\n text: \"The usual loop: **`talonic_money_found_ledger`** finds a row and its evidence, **`talonic_money_found_evidence_requests`** lists what to ask the customer's receivables team to confirm, and **`talonic_money_found_review_row`** queues a re-review when a row's price is in doubt; **`talonic_money_found_reviews`** shows the outcome.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are listed only when the Money Found app is available to the connection. Every call is checked against the role and permissions of the person behind the connection, exactly as in the web app.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-money-found-ledger\",\n text: \"talonic_money_found_ledger\",\n },\n {\n type: \"paragraph\",\n text: \"The whole lever ledger: per lever (a kind of recoverable amount, such as a charge the contract allows but the invoices leave off) its rows, each with its key, party and agreement, the amount, its `tier` (e.g. potential) and `state`, the explanation, and the quotes and documents it rests on, plus the ledger totals in the ledger currency.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-money-found-evidence-requests\",\n text: \"talonic_money_found_evidence_requests\",\n },\n {\n type: \"paragraph\",\n text: \"What to ask the customer's receivables team for: the open potential rows that need a confirmation, grouped by cost unit and framework number, largest first, each item with its lever id and row key, invoice type, period, amount and the question to ask.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-money-found-reviews\",\n text: \"talonic_money_found_reviews\",\n },\n {\n type: \"paragraph\",\n text: \"Re-reviews of contract price rows: per row its status (queued, running, done), the outcome, and the suggested price where a contract price was read again.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-money-found-review-row\",\n text: \"talonic_money_found_review_row\",\n },\n {\n type: \"paragraph\",\n text: \"Queue a re-review of one contract price row: its contract price is checked again against the documents; the ledger changes only when the review finds a different price.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"lever_id\",\n type: \"string\",\n required: true,\n description: \"The lever id of the row.\",\n },\n {\n name: \"key\",\n type: \"string\",\n required: true,\n description: \"The row key.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-money-found-review-all\",\n text: \"talonic_money_found_review_all\",\n },\n {\n type: \"paragraph\",\n text: \"Queue a re-review of every contract price row not reviewed since its check changed.\",\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../../types\"\n\n// Generated from src/tools/customs-declaration.ts (names, summaries, parameters); keep in step with it.\nexport const section: RawSection = {\n slug: \"customs-declaration-tools\",\n parentSlug: \"tool-groups\",\n title: \"Customs declaration\",\n seoTitle: \"Customs Declaration MCP Tools — Compare and Check Orders\",\n description:\n \"MCP tools for the Talonic customs declaration app: list orders whose documents and filed declaration disagree, and read the field-by-field comparison per order.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Compare the transport documents of each order with the customs declaration filed for it, field by field, and see which orders fail a check before filing.\",\n },\n {\n type: \"paragraph\",\n text: \"The usual loop: **`talonic_customs_declaration_issues`** lists the orders that fail a check, and **`talonic_customs_declaration_orders`** with `q` set to the order's LRN shows the comparison and the documents behind it. Corrections happen on the documents themselves; the order is compared again afterwards.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: \"These tools are listed only when the Customs declaration app is available to the connection. Every call is checked against the role and permissions of the person behind the connection, exactly as in the web app.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-customs-declaration-pipelines\",\n text: \"talonic_customs_declaration_pipelines\",\n },\n {\n type: \"paragraph\",\n text: \"The pipelines whose Spec compares transport documents with a filed customs declaration.\",\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-customs-declaration-issues\",\n text: \"talonic_customs_declaration_issues\",\n },\n {\n type: \"paragraph\",\n text: \"The worklist: orders with a failing check, with the checks that fail (message and fields concerned) and the fields where documents and declaration differ or a value is missing.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"pipeline_id\",\n type: \"UUID\",\n required: false,\n description:\n \"The pipeline (talonic_customs_declaration_pipelines); default: the workspace's first.\",\n },\n ],\n },\n {\n type: \"heading\",\n level: 3,\n id: \"talonic-customs-declaration-orders\",\n text: \"talonic_customs_declaration_orders\",\n },\n {\n type: \"paragraph\",\n text: \"Orders of a pipeline with their field-by-field comparison (document value, declared value, state match / mismatch / missing) and checks; the evidence for one order's issues.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"pipeline_id\",\n type: \"UUID\",\n required: false,\n description:\n \"The pipeline (talonic_customs_declaration_pipelines); default: the workspace's first.\",\n },\n {\n name: \"status\",\n type: '\"ready\" | \"review\"',\n required: false,\n description: \"ready = every check passes; review = at least one fails.\",\n },\n {\n name: \"q\",\n type: \"string\",\n required: false,\n description: \"LRN, sender, receiver or plates contains.\",\n },\n {\n name: \"page\",\n type: \"integer\",\n required: false,\n description: \"Page number (asks for one page).\",\n },\n {\n name: \"limit\",\n type: \"integer\",\n required: false,\n description: \"Orders per page, at most 200 (default 50).\",\n },\n ],\n },\n ],\n related: [],\n faq: [],\n mentions: [],\n}\n","import type { RawSection } from \"../types\"\nimport { section as dataManagement } from \"./groups/data-management\"\nimport { section as events } from \"./groups/events\"\nimport { section as aggregate } from \"./groups/aggregate\"\nimport { section as admin } from \"./groups/admin\"\nimport { section as contractDesk } from \"./groups/contract-desk\"\nimport { section as transportFolders } from \"./groups/transport-folders\"\nimport { section as compliance } from \"./groups/compliance\"\nimport { section as moneyFound } from \"./groups/money-found\"\nimport { section as customsDeclaration } from \"./groups/customs-declaration\"\n\n/**\n * One page per probe-gated tool group (src/tools/tool-groups.ts). Each group\n * is listed only when it is available to the connection, so these pages say\n * when a customer sees the tools as well as what they do.\n */\nexport const sections: RawSection[] = [\n dataManagement,\n events,\n aggregate,\n admin,\n contractDesk,\n transportFolders,\n compliance,\n moneyFound,\n customsDeclaration,\n]\n","// ---------------------------------------------------------------------------\n// Where each MCP docs section lives on talonic.com. The website owns routing\n// (src/lib/docs-nav-routes.ts MCP_ROUTES); this map is the proposal it can\n// import instead of keeping its own copy, and what in-page links use.\n// Existing routes are unchanged; new sections get the paths below.\n// ---------------------------------------------------------------------------\n\nimport { TOOL_REGISTRY } from \"./generated/tool-registry\"\nimport { sections as appSections } from \"./sections/apps\"\nimport { sections as toolGroupSections } from \"./sections/tool-groups\"\n\nconst PAGES: Record<string, string> = {\n \"mcp-introduction\": \"/docs/mcp\",\n \"why-mcp\": \"/docs/mcp/why\",\n \"get-api-key\": \"/docs/mcp/api-key\",\n \"install-overview\": \"/docs/mcp/install\",\n \"claude-desktop\": \"/docs/mcp/claude-desktop\",\n cursor: \"/docs/mcp/cursor\",\n cline: \"/docs/mcp/cline\",\n continue: \"/docs/mcp/continue\",\n cowork: \"/docs/mcp/cowork\",\n \"env-variables\": \"/docs/mcp/configuration\",\n \"tools-by-task\": \"/docs/mcp/tools\",\n \"agent-decision-guide\": \"/docs/mcp/tools\",\n \"files-and-uploads\": \"/docs/mcp/files\",\n \"drag-and-drop\": \"/docs/mcp/drag-and-drop\",\n \"how-it-works\": \"/docs/mcp/how-it-works\",\n \"recipe-set-up-workspace\": \"/docs/mcp/recipes/set-up-a-workspace\",\n \"recipe-process-inbox\": \"/docs/mcp/recipes/process-an-inbox\",\n \"recipe-audit-invoices\": \"/docs/mcp/recipes/audit-invoices\",\n \"recipe-contract-question\": \"/docs/mcp/recipes/answer-a-contract-question\",\n \"run-talonic-tasks\": \"/docs/mcp/run-talonic-tasks\",\n \"common-issues\": \"/docs/mcp/troubleshooting\",\n \"known-limitations\": \"/docs/mcp/known-limitations\",\n upgrading: \"/docs/mcp/upgrading\",\n}\n\n/** URL path of a section on talonic.com, by slug. */\nexport const MCP_PATHS: Record<string, string> = {\n ...PAGES,\n // App tools and tool-group pages keep the paths they shipped with.\n ...Object.fromEntries(\n [...appSections, ...toolGroupSections].map((s) => [s.slug, `/docs/mcp/${s.slug}`]),\n ),\n ...Object.fromEntries(\n TOOL_REGISTRY.map((t) => [\n t.name.replace(/_/g, \"-\"),\n `/docs/mcp/tools/${t.name.replace(/^talonic_/, \"\").replace(/_/g, \"-\")}`,\n ]),\n ),\n}\n\n/** Inline link to another MCP docs section. */\nexport function link(slug: string, text: string): string {\n const path = MCP_PATHS[slug]\n if (!path) throw new Error(`No MCP docs path for ${slug}`)\n return `[${text}](${path})`\n}\n\n/** Inline link to a tool's reference page, with the tool name as code. */\nexport function tool(name: string): string {\n return link(name.replace(/_/g, \"-\"), `\\`${name}\\``)\n}\n","// ---------------------------------------------------------------------------\n// Tool reference: one page per public tool, rendered from the generated\n// registry snapshot (src/content/generated/tool-registry.ts, written by\n// `npm run docs:gen` from a real tools/list) plus the hand-written copy in\n// src/content/tool-pages.ts. The summary, usage notes, parameters,\n// availability and behaviour therefore always match what an agent sees.\n// App-gated and Talonic-internal tool groups are never in the registry.\n// ---------------------------------------------------------------------------\n\nimport type { DocBlock, Param, RawSection } from \"../types\"\nimport type { RegistryParam, RegistryTool, ToolPage } from \"../tool-reference-types\"\nimport { TOOL_REGISTRY } from \"../generated/tool-registry\"\nimport { TOOL_PAGES } from \"../tool-pages\"\nimport { link } from \"../routes\"\n\n/** Labels the tool descriptions use for their sections (`USE WHEN: …`). */\nconst LABEL = /^([A-Z][A-Z -]*[A-Z])(?:\\s*\\(([^)]*)\\))?:\\s*(.*)$/\n\nconst LABEL_TEXT: Record<string, string> = {\n \"USE WHEN\": \"Use it when\",\n \"NOT FOR\": \"Not for\",\n \"BY NAME\": \"By file name\",\n ARGS: \"Arguments\",\n RETURNS: \"Returns\",\n COST: \"Cost\",\n AUTH: \"Access\",\n}\n\nconst titleCase = (s: string) => s.charAt(0) + s.slice(1).toLowerCase()\n\n/** Split a tool description into its lead paragraphs and labelled notes. */\nexport function parseDescription(description: string): {\n lead: string[]\n notes: { label: string; text: string }[]\n} {\n const lead: string[] = []\n const notes: { label: string; text: string }[] = []\n // Some descriptions put two labels on one line (\"ARGS: … RETURNS: …\").\n const text = description.replace(\n /\\.\\s+(USE WHEN|NOT FOR|BY NAME|ARGS|RETURNS|COST|AUTH):/g,\n \".\\n$1:\",\n )\n for (const raw of text.split(\"\\n\")) {\n const line = raw.trim()\n if (!line) continue\n const m = LABEL.exec(line)\n if (m && !/^https?$/i.test(m[1]!)) {\n const key = m[1]!\n const label = (LABEL_TEXT[key] ?? titleCase(key)) + (m[2] ? ` (${m[2]})` : \"\")\n notes.push({ label, text: m[3]! })\n } else if (notes.length === 0) {\n lead.push(line)\n } else {\n notes.push({ label: \"\", text: line })\n }\n }\n return { lead, notes }\n}\n\nfunction availability(t: RegistryTool): string {\n const base: Record<RegistryTool[\"group\"], string> = {\n core: \"Listed in every Talonic MCP session, local or hosted.\",\n agent_tasks:\n \"Listed in every session by default. These tools only return work when your workspace hands tasks to an outside agent.\",\n decision_tasks:\n \"Listed in every session. Calling it needs a per-app `decide` grant on an API key, or, on a connector session, the `apps:decide` scope and a workspace role of senior member or above. Without it the tool stays listed but is marked not callable, and the agent can tell you to reconnect.\",\n processes:\n \"Listed when your workspace role has the Process Plane view permission. Changing, publishing and signing are checked again on every call against your role in the process.\",\n }\n return (\n base[t.group] +\n (t.notForOpenAi\n ? \" Not listed in ChatGPT; there, ask the question with `talonic_ask` instead.\"\n : \"\")\n )\n}\n\nfunction behaviour(t: RegistryTool, page: ToolPage): string[] {\n const out: string[] = []\n if (t.readOnly) out.push(\"**Reads only.** It never changes workspace data.\")\n else if (t.destructive)\n out.push(\"**Changes workspace data and can't be undone.** Call it only when the user asked.\")\n else out.push(\"**Not read-only.** It can add to or change workspace data.\")\n if (t.openWorld)\n out.push(\"**Can reach outside the workspace**, for example a public file URL you pass.\")\n if (page.credits) out.push(`**Cost:** ${page.credits}`)\n else if (t.readOnly) out.push(\"**Cost:** no credits.\")\n return out\n}\n\nfunction paramDescription(p: RegistryParam): string {\n const parts = [p.description ?? \"\"]\n if (p.minimum !== undefined || p.maximum !== undefined) {\n const range =\n p.minimum !== undefined && p.maximum !== undefined\n ? `${p.minimum} to ${p.maximum}`\n : p.minimum !== undefined\n ? `at least ${p.minimum}`\n : `at most ${p.maximum}`\n parts.push(`Range: ${range}.`)\n }\n return parts.filter(Boolean).join(\" \") || \"—\"\n}\n\nfunction params(t: RegistryTool): Param[] {\n return t.params.map((p) => ({\n name: p.name,\n type: p.type,\n required: p.required,\n description: paramDescription(p),\n ...(p.default !== undefined ? { default: p.default } : {}),\n }))\n}\n\nfunction sample(p: RegistryParam): unknown {\n if (p.enum?.length) return p.type.endsWith(\"[]\") ? [p.enum[0]] : p.enum[0]\n if (p.default !== undefined) {\n try {\n return JSON.parse(p.default)\n } catch {\n /* fall through */\n }\n }\n if (p.type.startsWith(\"number\") || p.type.startsWith(\"integer\")) return p.minimum ?? 1\n if (p.type.startsWith(\"boolean\")) return true\n if (p.type.endsWith(\"[]\")) return [`<${p.name.replace(/s$/, \"\")}>`]\n if (p.type.startsWith(\"object\")) return {}\n return `<${p.name}>`\n}\n\n/** A call with every required argument, for tools without a written example. */\nfunction generatedExample(t: RegistryTool): DocBlock {\n const args = Object.fromEntries(\n t.params.filter((p) => p.required).map((p) => [p.name, sample(p)]),\n )\n return {\n type: \"code\",\n language: \"json\",\n title: \"Tool input\",\n code: JSON.stringify(args, null, 2),\n }\n}\n\n/** One reference page. */\nexport function toolSection(t: RegistryTool, page: ToolPage): RawSection {\n const { lead, notes } = parseDescription(t.description)\n const content: DocBlock[] = [\n ...lead.map((text): DocBlock => ({ type: \"paragraph\", text })),\n ...(notes.length\n ? ([\n { type: \"heading\", level: 2, id: \"how-to-use\", text: \"How an agent uses it\" },\n {\n type: \"list\",\n items: notes.map((n) => (n.label ? `**${n.label}:** ${n.text}` : n.text)),\n },\n ] satisfies DocBlock[])\n : []),\n { type: \"heading\", level: 2, id: \"availability\", text: \"Availability\" },\n { type: \"paragraph\", text: availability(t) },\n { type: \"heading\", level: 2, id: \"behaviour\", text: \"Behaviour and cost\" },\n { type: \"list\", items: behaviour(t, page) },\n { type: \"heading\", level: 2, id: \"parameters\", text: \"Parameters\" },\n t.params.length\n ? { type: \"param-table\", params: params(t) }\n : { type: \"paragraph\", text: \"None.\" },\n { type: \"heading\", level: 2, id: \"example\", text: \"Example\" },\n ...(page.examples?.length\n ? page.examples.map(\n (e): DocBlock => ({\n type: \"code\",\n language: e.language ?? \"json\",\n title: e.title,\n code: e.code,\n }),\n )\n : [generatedExample(t)]),\n { type: \"heading\", level: 2, id: \"errors\", text: \"Errors\" },\n {\n type: \"paragraph\",\n text: `A failed call comes back as a tool error with the HTTP status and a message that says what to change. ${link(\"common-issues\", \"Troubleshooting\")} lists the common ones.`,\n },\n ]\n return {\n slug: t.name.replace(/_/g, \"-\"),\n parentSlug: \"tools\",\n title: t.name,\n seoTitle: page.seoTitle,\n description: page.description,\n content,\n related: page.related ?? [{ label: \"Tools by task\", slug: \"tools-by-task\" }],\n faq: page.faq ?? [],\n mentions: page.mentions ?? [],\n }\n}\n\nexport const sections: RawSection[] = TOOL_REGISTRY.map((t) => {\n const page = TOOL_PAGES[t.name]\n if (!page) throw new Error(`src/content/tool-pages.ts has no entry for ${t.name}`)\n return toolSection(t, page)\n})\n","// ---------------------------------------------------------------------------\n// Tools by task: every documented tool, grouped by what the user wants done.\n// The lists are built from the generated registry and each tool's `task` in\n// src/content/tool-pages.ts, so a new tool can't be left off this page.\n// ---------------------------------------------------------------------------\n\nimport type { DocBlock, RawSection } from \"../types\"\nimport type { ToolTask } from \"../tool-reference-types\"\nimport { TOOL_REGISTRY } from \"../generated/tool-registry\"\nimport { TOOL_PAGES } from \"../tool-pages\"\nimport { link, tool } from \"../routes\"\nimport { parseDescription } from \"./tool-reference\"\n\n/** The tasks, in page order. */\nexport const TASKS: { task: ToolTask; id: string; title: string; intro: string }[] = [\n {\n task: \"find\",\n id: \"find\",\n title: \"Find documents and data\",\n intro: `Start here when the user names a document, a value or a concept. ${tool(\"talonic_search\")} turns a file name or keyword into a \\`document_id\\`; ${tool(\"talonic_filter\")} finds documents by an extracted value; ${tool(\"talonic_find_data\")} finds which field holds a concept.`,\n },\n {\n task: \"extract\",\n id: \"extract\",\n title: \"Read and extract\",\n intro: `Get fields as JSON with ${tool(\"talonic_extract\")}, or the full text with ${tool(\"talonic_to_markdown\")}. Save field sets you reuse; hand the user an upload link when a file can't be passed directly (${link(\"files-and-uploads\", \"Files and uploads\")}).`,\n },\n {\n task: \"ask\",\n id: \"ask\",\n title: \"Ask questions\",\n intro: `For any question about what the documents say (totals, duplicates, comparisons, a clause), call ${tool(\"talonic_ask\")} first: one call returns a cited, checked answer.`,\n },\n {\n task: \"run\",\n id: \"run\",\n title: \"Run a Spec\",\n intro:\n \"A Spec is a saved set of fields and checks your team set up in Talonic. Run it over documents to get one clean row per document.\",\n },\n {\n task: \"review\",\n id: \"review\",\n title: \"Review and decide\",\n intro: `Work that waits for a person or an outside agent: sign-offs and forms waiting for the user, checks a Spec hands to your agent, and decisions an app hands out. ${link(\"run-talonic-tasks\", \"Run Talonic tasks from your own agent\")} explains the claim, work, submit loop.`,\n },\n {\n task: \"build\",\n id: \"build\",\n title: \"Build a process\",\n intro: `Describe a process in plain words, check it, test it on real documents in a test copy, then publish it. Nothing runs for real until ${tool(\"talonic_process_publish\")}. Process tools are listed when your role can see processes.`,\n },\n {\n task: \"automate\",\n id: \"automate\",\n title: \"Run and watch processes\",\n intro:\n \"Start a published process for one item, see where its runs stand, follow one item through every step, and retry failed steps once the cause is fixed.\",\n },\n {\n task: \"apps\",\n id: \"apps\",\n title: \"Apps\",\n intro:\n \"See which Talonic apps the workspace has. Apps you have enabled (for example Contracts, Accounts Payable, Document Generation or Price Baseline) add their own tools to sessions that can use them; each app's page under [Apps](https://talonic.com/docs/apps) lists them.\",\n },\n {\n task: \"workspace\",\n id: \"workspace\",\n title: \"Companies, credits and usage\",\n intro:\n \"Keep each company's documents apart with accounts, and check balance, pricing and what credits went on.\",\n },\n]\n\n/** First sentence of a tool's description. */\nfunction oneLine(description: string): string {\n const lead = parseDescription(description).lead.join(\" \")\n const m = /^(.+?(?<!\\be\\.g|\\bi\\.e)[.!?])(?=\\s+[A-Z`]|$)/.exec(lead)\n return (m ? m[1]! : lead).trim()\n}\n\nfunction taskBlocks(): DocBlock[] {\n return TASKS.flatMap(({ task, id, title, intro }): DocBlock[] => {\n const tools = TOOL_REGISTRY.filter((t) => TOOL_PAGES[t.name]?.task === task)\n return [\n { type: \"heading\", level: 2, id, text: title },\n { type: \"paragraph\", text: intro },\n {\n type: \"list\",\n items: tools.map((t) => `${tool(t.name)}: ${oneLine(t.description)}`),\n },\n ]\n })\n}\n\nexport const sections: RawSection[] = [\n {\n slug: \"tools-by-task\",\n parentSlug: \"tools\",\n title: \"Tools by task\",\n seoTitle: \"Talonic MCP Tools by Task: Find, Extract, Ask, Run — Talonic\",\n description:\n \"Every Talonic MCP tool grouped by the job: find documents, extract fields, ask cited questions, run Specs, review, build and run processes, check credits.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Pick the job, then the tool. Your agent reads the same descriptions and usually chooses well on its own; this page is for you to see what is possible and to steer it.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: `Rule of thumb: a question about what documents say goes to ${tool(\"talonic_ask\")}; a named file goes through ${tool(\"talonic_search\")} first; fields from one document come from ${tool(\"talonic_extract\")}.`,\n },\n ...taskBlocks(),\n ],\n related: [\n { label: \"What an agent can do\", slug: \"mcp-introduction\" },\n { label: \"Files and uploads\", slug: \"files-and-uploads\" },\n { label: \"Recipe: answer a contract question\", slug: \"recipe-contract-question\" },\n ],\n faq: [\n {\n question: \"Why does my agent not list some of these tools?\",\n answer:\n \"Process tools appear only when your role can see processes, app tools only when the app is enabled for you, and ChatGPT omits the two generic data-query tools. Everything else is listed in every session.\",\n },\n ],\n mentions: [\"MCP tools\", \"document extraction\", \"AI agent tools\"],\n },\n]\n","import type { NavSection } from \"./types\"\nimport { TOOL_REGISTRY } from \"./generated/tool-registry\"\nimport { TOOL_PAGES } from \"./tool-pages\"\nimport { TASKS } from \"./sections/tools-by-task\"\n\nconst taskIndex = (name: string) => TASKS.findIndex((t) => t.task === TOOL_PAGES[name]?.task)\n\n/** Tool reference entries, grouped by task in the order of the Tools by task page. */\nconst TOOL_NAV = TOOL_REGISTRY.map((t, i) => ({ t, i }))\n .sort((a, b) => taskIndex(a.t.name) - taskIndex(b.t.name) || a.i - b.i)\n .map(({ t }) => ({ id: t.name.replace(/_/g, \"-\"), label: t.name }))\n\n/**\n * MCP documentation navigation — synced to website.\n *\n * Sections kept for old URLs but no longer in the nav: why-mcp,\n * agent-decision-guide, claude-desktop, cursor, cline, continue, cowork,\n * drag-and-drop, how-it-works.\n */\nexport const MCP_NAV_SECTIONS: NavSection[] = [\n {\n id: \"overview\",\n label: \"Overview\",\n children: [\n { id: \"mcp-introduction\", label: \"What an agent can do\" },\n { id: \"get-api-key\", label: \"Get an API key\" },\n ],\n },\n {\n id: \"install\",\n label: \"Connect\",\n children: [\n { id: \"install-overview\", label: \"Connect your agent\" },\n { id: \"env-variables\", label: \"Configuration\" },\n ],\n },\n {\n id: \"tools\",\n label: \"Tools\",\n children: [\n { id: \"tools-by-task\", label: \"Tools by task\" },\n ...TOOL_NAV,\n // App tools: listed only when the credential can read the workspace's apps.\n { id: \"talonic-create-app\", label: \"talonic_create_app\" },\n { id: \"talonic-get-app\", label: \"talonic_get_app\" },\n { id: \"talonic-get-app-logic\", label: \"talonic_get_app_logic\" },\n { id: \"talonic-get-app-fields\", label: \"talonic_get_app_fields\" },\n { id: \"talonic-save-app-draft\", label: \"talonic_save_app_draft\" },\n { id: \"talonic-interpret-app-rules\", label: \"talonic_interpret_app_rules\" },\n { id: \"talonic-propose-app-edit\", label: \"talonic_propose_app_edit\" },\n { id: \"talonic-apply-app-edit\", label: \"talonic_apply_app_edit\" },\n { id: \"talonic-list-app-versions\", label: \"talonic_list_app_versions\" },\n { id: \"talonic-publish-app\", label: \"talonic_publish_app\" },\n { id: \"talonic-enable-app\", label: \"talonic_enable_app\" },\n { id: \"talonic-disable-app\", label: \"talonic_disable_app\" },\n { id: \"talonic-get-app-acceptance\", label: \"talonic_get_app_acceptance\" },\n { id: \"talonic-save-app-acceptance\", label: \"talonic_save_app_acceptance\" },\n { id: \"talonic-check-app-acceptance\", label: \"talonic_check_app_acceptance\" },\n { id: \"talonic-run-app\", label: \"talonic_run_app\" },\n { id: \"talonic-list-app-runs\", label: \"talonic_list_app_runs\" },\n { id: \"talonic-get-app-run\", label: \"talonic_get_app_run\" },\n { id: \"talonic-get-run-record\", label: \"talonic_get_run_record\" },\n { id: \"talonic-get-run-verdicts\", label: \"talonic_get_run_verdicts\" },\n { id: \"talonic-list-app-reviews\", label: \"talonic_list_app_reviews\" },\n { id: \"talonic-raise-app-review\", label: \"talonic_raise_app_review\" },\n { id: \"talonic-resolve-app-review\", label: \"talonic_resolve_app_review\" },\n { id: \"talonic-interview-app-review\", label: \"talonic_interview_app_review\" },\n { id: \"talonic-list-app-precedents\", label: \"talonic_list_app_precedents\" },\n { id: \"talonic-mining-list-rounds\", label: \"talonic_mining_list_rounds\" },\n { id: \"talonic-mining-get-round\", label: \"talonic_mining_get_round\" },\n { id: \"talonic-mining-start-round\", label: \"talonic_mining_start_round\" },\n { id: \"talonic-mining-list-round-tools\", label: \"talonic_mining_list_round_tools\" },\n { id: \"talonic-mining-call-round-tool\", label: \"talonic_mining_call_round_tool\" },\n { id: \"talonic-mining-get-round-tool-call\", label: \"talonic_mining_get_round_tool_call\" },\n ],\n },\n {\n id: \"files\",\n label: \"Files\",\n children: [{ id: \"files-and-uploads\", label: \"Files and uploads\" }],\n },\n {\n id: \"recipes\",\n label: \"Recipes\",\n children: [\n { id: \"recipe-set-up-workspace\", label: \"Set up a workspace\" },\n { id: \"recipe-process-inbox\", label: \"Process an inbox\" },\n { id: \"recipe-audit-invoices\", label: \"Audit invoices\" },\n { id: \"recipe-contract-question\", label: \"Answer a contract question\" },\n ],\n },\n {\n id: \"tool-groups\",\n label: \"App and Admin Tools\",\n children: [\n { id: \"data-management-tools\", label: \"Documents, extractions, jobs and schemas\" },\n { id: \"events-tools\", label: \"Events\" },\n { id: \"aggregate-tools\", label: \"Workspace metrics\" },\n { id: \"admin-tools\", label: \"Workspace administration\" },\n { id: \"contract-desk-tools\", label: \"Contract Desk\" },\n { id: \"transport-folders-tools\", label: \"Transport Folders\" },\n { id: \"compliance-tools\", label: \"Compliance\" },\n { id: \"money-found-tools\", label: \"Money Found\" },\n { id: \"customs-declaration-tools\", label: \"Customs declaration\" },\n ],\n },\n {\n id: \"advanced\",\n label: \"Advanced\",\n children: [{ id: \"run-talonic-tasks\", label: \"Run Talonic tasks from your agent\" }],\n },\n {\n id: \"troubleshooting\",\n label: \"Troubleshooting\",\n children: [\n { id: \"common-issues\", label: \"Troubleshooting\" },\n { id: \"known-limitations\", label: \"Limits\" },\n { id: \"upgrading\", label: \"Upgrading\" },\n ],\n },\n]\n","// ---------------------------------------------------------------------------\n// Connect: one page with a section per client. MCP_CLIENTS is exported so the\n// website can render the sections as tabs; until it does, each client is an\n// h3 under \"Choose your client\" (anchor = client id). The old per-client URLs\n// (claude-desktop, cursor, cline, continue, cowork) render the same client\n// data, so nothing is written twice and no URL breaks.\n// ---------------------------------------------------------------------------\n\nimport type { DocBlock, RawSection } from \"../types\"\nimport { link, tool } from \"../routes\"\n\nconst HOSTED_URL = \"https://mcp.talonic.com/mcp\"\n\nconst LOCAL = `{\n \"mcpServers\": {\n \"talonic\": {\n \"command\": \"npx\",\n \"args\": [\"-y\", \"@talonic/mcp@latest\"],\n \"env\": { \"TALONIC_API_KEY\": \"tlnc_your_key_here\" }\n }\n }\n}`\n\nconst HOSTED_KEY = `{\n \"mcpServers\": {\n \"talonic\": {\n \"url\": \"${HOSTED_URL}\",\n \"headers\": { \"Authorization\": \"Bearer tlnc_your_key_here\" }\n }\n }\n}`\n\n/** One client's connect instructions. */\nexport interface McpClient {\n /** Anchor on the connect page; also the old per-client page slug where one exists. */\n id: string\n label: string\n /** Has its own legacy page at this slug. */\n legacySlug?: string\n blocks: DocBlock[]\n}\n\nconst connectorSteps = (where: string): DocBlock => ({\n type: \"list\",\n ordered: true,\n items: [\n `${where} and choose **Add custom connector**.`,\n `Enter the URL \\`${HOSTED_URL}\\`. No headers, no key.`,\n \"Choose **Connect**, sign in to Talonic and approve access. If you belong to several workspaces, pick one.\",\n \"Start a new conversation. The Talonic tools are available.\",\n ],\n})\n\nexport const MCP_CLIENTS: McpClient[] = [\n {\n id: \"claude\",\n label: \"Claude.ai and Claude Desktop\",\n legacySlug: \"claude-desktop\",\n blocks: [\n {\n type: \"paragraph\",\n text: \"Add Talonic once as a connector; it then works in Claude.ai and the Claude Desktop app.\",\n },\n connectorSteps(\n \"Open **Settings → Connectors** in [claude.ai](https://claude.ai/settings/connectors) or Claude Desktop\",\n ),\n {\n type: \"paragraph\",\n text: \"To run the server on your own machine instead (so the agent can read local files by path), add the local config to `claude_desktop_config.json` (macOS: `~/Library/Application Support/Claude/`, Windows: `%APPDATA%\\\\Claude\\\\`) and quit and reopen Claude Desktop:\",\n },\n { type: \"code\", language: \"json\", title: \"Local (Claude Desktop)\", code: LOCAL },\n ],\n },\n {\n id: \"chatgpt\",\n label: \"ChatGPT\",\n blocks: [\n {\n type: \"list\",\n ordered: true,\n items: [\n \"In ChatGPT, open **Settings → Apps**.\",\n \"Find **Talonic** and choose **Connect**.\",\n \"Sign in to Talonic and approve access.\",\n 'In a new chat, ask for Talonic by name the first time (\"Use Talonic to find my latest invoice\").',\n ],\n },\n {\n type: \"paragraph\",\n text: `ChatGPT lists every tool except the two generic data-query tools; ask questions with ${tool(\"talonic_ask\")} there. Results show as cards in the chat.`,\n },\n ],\n },\n {\n id: \"claude-code\",\n label: \"Claude Code\",\n blocks: [\n { type: \"paragraph\", text: \"Hosted, signed in with your Talonic account:\" },\n {\n type: \"code\",\n language: \"bash\",\n code: `claude mcp add --transport http talonic ${HOSTED_URL}\\n# then run /mcp inside Claude Code and choose Authenticate`,\n },\n { type: \"paragraph\", text: \"Local, with an API key:\" },\n {\n type: \"code\",\n language: \"bash\",\n code: \"claude mcp add talonic --env TALONIC_API_KEY=tlnc_your_key_here -- npx -y @talonic/mcp@latest\",\n },\n ],\n },\n {\n id: \"cursor\",\n label: \"Cursor\",\n legacySlug: \"cursor\",\n blocks: [\n {\n type: \"paragraph\",\n text: \"Open **Cursor Settings → MCP → Add new MCP server**, or edit `~/.cursor/mcp.json`. Use the local config to let the agent read files in your project by path:\",\n },\n { type: \"code\", language: \"json\", title: \"Local\", code: LOCAL },\n { type: \"code\", language: \"json\", title: \"Hosted, with an API key\", code: HOSTED_KEY },\n {\n type: \"paragraph\",\n text: \"Save and reload the window. The `talonic` entry turns green and lists its tools.\",\n },\n ],\n },\n {\n id: \"cline\",\n label: \"Cline\",\n legacySlug: \"cline\",\n blocks: [\n {\n type: \"paragraph\",\n text: \"In VS Code, open the Cline panel → **MCP Servers → Configure** and add one of these, then restart the panel:\",\n },\n { type: \"code\", language: \"json\", title: \"Local\", code: LOCAL },\n { type: \"code\", language: \"json\", title: \"Hosted, with an API key\", code: HOSTED_KEY },\n {\n type: \"paragraph\",\n text: \"Cline can auto-approve tools. Approving the read-only ones (search, look-ups, listings) lets it explore without asking; keep writes on manual approval.\",\n },\n ],\n },\n {\n id: \"continue\",\n label: \"Continue\",\n legacySlug: \"continue\",\n blocks: [\n {\n type: \"paragraph\",\n text: \"Edit `~/.continue/config.json` (shared by VS Code and JetBrains) and add an entry to `mcpServers`, then reload the IDE window:\",\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Local\",\n code: `{\n \"name\": \"talonic\",\n \"command\": \"npx\",\n \"args\": [\"-y\", \"@talonic/mcp@latest\"],\n \"env\": { \"TALONIC_API_KEY\": \"tlnc_your_key_here\" }\n}`,\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"Hosted, with an API key\",\n code: `{\n \"name\": \"talonic\",\n \"url\": \"${HOSTED_URL}\",\n \"headers\": { \"Authorization\": \"Bearer tlnc_your_key_here\" }\n}`,\n },\n ],\n },\n {\n id: \"cowork\",\n label: \"Cowork\",\n legacySlug: \"cowork\",\n blocks: [\n {\n type: \"paragraph\",\n text: \"Open **Settings → MCP Servers → Add**, paste one of these and restart Cowork:\",\n },\n { type: \"code\", language: \"json\", title: \"Local\", code: LOCAL },\n { type: \"code\", language: \"json\", title: \"Hosted, with an API key\", code: HOSTED_KEY },\n {\n type: \"paragraph\",\n text: \"Cowork shows your saved schemas under resources (`talonic://schemas`), so you can pick one before extracting.\",\n },\n ],\n },\n]\n\nconst verify: DocBlock[] = [\n { type: \"heading\", level: 2, id: \"check\", text: \"Check it works\" },\n {\n type: \"paragraph\",\n text: `Ask your agent: \"List my Talonic schemas.\" It calls ${tool(\"talonic_list_schemas\")}, which is free and changes nothing. A list (or an empty list in a new workspace) means you are connected. An authentication error means the key or sign-in is wrong; see ${link(\"common-issues\", \"Troubleshooting\")}.`,\n },\n]\n\nconst choosing: DocBlock[] = [\n { type: \"heading\", level: 2, id: \"hosted-or-local\", text: \"Hosted or local\" },\n {\n type: \"list\",\n items: [\n `**Hosted** (\\`${HOSTED_URL}\\`): nothing to install, always the latest version, and you sign in with your Talonic account (OAuth). Files reach Talonic by URL, by document id or through an ${link(\"files-and-uploads\", \"upload link\")}.`,\n `**Local** (\\`npx -y @talonic/mcp@latest\\`, Node.js 18 or later): needs an ${link(\"get-api-key\", \"API key\")}. The agent can pass files on your machine by path. Pin an exact version (for example \\`@talonic/mcp@0.1.100\\`) for repeatable setups.`,\n ],\n },\n {\n type: \"paragraph\",\n text: \"Both list the same tools and work on the same workspace. Signing in grants `extract:write`, `documents:read`, `schemas:read` and `apps:decide`; you can revoke access by removing the connector or the key.\",\n },\n]\n\n/** Search-result copy for the old per-client pages. */\nconst LEGACY_META: Record<string, { seoTitle: string; description: string }> = {\n \"claude-desktop\": {\n seoTitle: \"Connect Claude.ai and Claude Desktop to Talonic MCP\",\n description:\n \"Add Talonic to Claude.ai and Claude Desktop as a connector with your Talonic sign-in, or run it locally with npx and an API key, then check that it works.\",\n },\n cursor: {\n seoTitle: \"Connect Cursor to the Talonic MCP Server — Talonic Docs\",\n description:\n \"Add Talonic to Cursor in mcp.json: run it locally with npx and an API key so the agent can read project files, or use the hosted server, then check it works.\",\n },\n cline: {\n seoTitle: \"Connect Cline in VS Code to the Talonic MCP Server — Talonic\",\n description:\n \"Add Talonic to Cline in VS Code: run it locally with npx and an API key or use the hosted server, auto-approve the read-only tools, then check it works.\",\n },\n continue: {\n seoTitle: \"Connect Continue to the Talonic MCP Server — Talonic Docs\",\n description:\n \"Add Talonic to Continue in VS Code or JetBrains through config.json: run it locally with npx and an API key or use the hosted server, then check it works.\",\n },\n cowork: {\n seoTitle: \"Connect Cowork to the Talonic MCP Server — Talonic Docs\",\n description:\n \"Add Talonic to Cowork under Settings, MCP Servers: run it locally with npx and an API key or use the hosted server, browse saved schemas, then check it works.\",\n },\n}\n\nexport const sections: RawSection[] = [\n {\n slug: \"install-overview\",\n parentSlug: \"install\",\n title: \"Connect your agent\",\n seoTitle: \"Connect Claude, ChatGPT or Cursor to Talonic MCP — Talonic\",\n description:\n \"Connect Talonic to Claude.ai, Claude Desktop, Claude Code, ChatGPT, Cursor, Cline, Continue or Cowork: hosted with sign-in, or local with npx and an API key.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Connect Talonic to your AI client and your agent can work with your workspace. Pick your client below; most take under two minutes.\",\n },\n ...choosing,\n { type: \"heading\", level: 2, id: \"clients\", text: \"Choose your client\" },\n ...MCP_CLIENTS.flatMap((c): DocBlock[] => [\n { type: \"heading\", level: 3, id: c.id, text: c.label },\n ...c.blocks,\n ]),\n {\n type: \"heading\",\n level: 3,\n id: \"other-clients\",\n text: \"Any other MCP client\",\n },\n {\n type: \"paragraph\",\n text: `Point a client that supports remote servers at \\`${HOSTED_URL}\\` (it will start a Talonic sign-in, or send \\`Authorization: Bearer tlnc_…\\`), or have it start \\`npx -y @talonic/mcp@latest\\` with \\`TALONIC_API_KEY\\` set. ${link(\"env-variables\", \"Configuration\")} lists every setting.`,\n },\n ...verify,\n ],\n related: [\n { label: \"Get an API key\", slug: \"get-api-key\" },\n { label: \"Configuration\", slug: \"env-variables\" },\n { label: \"Tools by task\", slug: \"tools-by-task\" },\n { label: \"Troubleshooting\", slug: \"common-issues\" },\n ],\n faq: [\n {\n question: \"Should I use the hosted server or the local one?\",\n answer:\n \"Use hosted for Claude.ai, ChatGPT and Claude Code: you sign in and there is nothing to install. Use local in desktop and IDE clients when you want the agent to pass files from your machine by path.\",\n },\n {\n question: \"Do the hosted and local servers offer the same tools?\",\n answer:\n \"Yes. The only difference is that a local install can read files on your machine by path; hosted sessions use a URL, a document id or an upload link.\",\n },\n {\n question: \"How do I disconnect?\",\n answer:\n \"Remove the connector in your client, or revoke the API key under Settings → API Keys in the Talonic web app.\",\n },\n ],\n mentions: [\n \"Claude.ai\",\n \"Claude Desktop\",\n \"Claude Code\",\n \"ChatGPT\",\n \"Cursor\",\n \"Cline\",\n \"Continue\",\n \"Cowork\",\n \"MCP install\",\n ],\n },\n ...MCP_CLIENTS.filter((c) => c.legacySlug).map(\n (c): RawSection => ({\n slug: c.legacySlug!,\n parentSlug: \"install\",\n title: `Connect ${c.label}`,\n seoTitle: LEGACY_META[c.legacySlug!]!.seoTitle,\n description: LEGACY_META[c.legacySlug!]!.description,\n content: [\n {\n type: \"paragraph\",\n text: `Connect ${c.label} to Talonic. All clients are on one page now: ${link(\"install-overview\", \"Connect your agent\")}.`,\n },\n ...c.blocks,\n ...verify,\n ],\n related: [\n { label: \"Connect your agent\", slug: \"install-overview\" },\n { label: \"Troubleshooting\", slug: \"common-issues\" },\n ],\n faq: [],\n mentions: [c.label, \"MCP\"],\n }),\n ),\n]\n","// ---------------------------------------------------------------------------\n// Pure functions that derive breadcrumbs and prev/next from nav structure.\n// ---------------------------------------------------------------------------\n\ninterface NavChild {\n id: string\n label: string\n}\n\ninterface NavGroup {\n id: string\n label: string\n children?: NavChild[]\n}\n\nexport function deriveBreadcrumbs(\n sections: NavGroup[],\n leafId: string,\n): { label: string; slug: string }[] {\n const root = { label: \"MCP Server\", slug: \"mcp\" }\n\n for (const group of sections) {\n const child = group.children?.find((c) => c.id === leafId)\n if (child) {\n return [root, { label: group.label, slug: group.id }, { label: child.label, slug: child.id }]\n }\n }\n\n const topLevel = sections.find((s) => s.id === leafId)\n if (topLevel) {\n return [root, { label: topLevel.label, slug: topLevel.id }]\n }\n\n return [root]\n}\n\nexport function derivePrevNext(\n sections: NavGroup[],\n leafId: string,\n): { prev: { slug: string; label: string } | null; next: { slug: string; label: string } | null } {\n const flat: NavChild[] = sections.flatMap((s) => s.children ?? [{ id: s.id, label: s.label }])\n\n const idx = flat.findIndex((c) => c.id === leafId)\n if (idx === -1) return { prev: null, next: null }\n\n const prevItem = idx > 0 ? flat[idx - 1] : undefined\n const nextItem = idx < flat.length - 1 ? flat[idx + 1] : undefined\n\n return {\n prev: prevItem ? { slug: prevItem.id, label: prevItem.label } : null,\n next: nextItem ? { slug: nextItem.id, label: nextItem.label } : null,\n }\n}\n","import type { RawSection } from \"../types\"\nimport { link, tool } from \"../routes\"\nimport { TOOL_REGISTRY } from \"../generated/tool-registry\"\n\nconst CORE = TOOL_REGISTRY.filter((t) => t.group !== \"processes\").length\nconst PROCESS = TOOL_REGISTRY.filter((t) => t.group === \"processes\").length\n\nexport const sections: RawSection[] = [\n {\n slug: \"mcp-introduction\",\n parentSlug: \"overview\",\n title: \"What an agent can do with Talonic\",\n seoTitle: \"Talonic MCP Server: What Your AI Agent Can Do — Talonic\",\n description:\n \"Connect Claude.ai, ChatGPT, Cursor or any MCP client to Talonic. Your agent finds documents, extracts fields, answers cited questions and runs processes.\",\n content: [\n {\n type: \"paragraph\",\n text: \"The Talonic MCP server lets an AI agent work with the documents and data in your Talonic workspace the way you would in the web app: find a document, pull fields out of it, ask a question across everything, run a Spec, sign off a step, or set up a process. It is for anyone who wants their agent (in Claude.ai, Claude Desktop, ChatGPT, Cursor, Cline, Continue, Cowork or their own) to do document work for them.\",\n },\n {\n type: \"callout\",\n variant: \"info\",\n text: `New here? ${link(\"install-overview\", \"Connect your agent\")} in two minutes, then try the ${link(\"recipe-contract-question\", \"contract question recipe\")}.`,\n },\n { type: \"heading\", level: 2, id: \"what-you-can-do\", text: \"What your agent can do\" },\n {\n type: \"list\",\n items: [\n `**Find.** Locate documents by name or keyword, filter them by extracted values (\"invoices over 10,000 EUR\"), and find which field holds a concept. ${link(\"tools-by-task\", \"Find tools\")}.`,\n \"**Read and extract.** Turn any PDF, scan, image, DOCX or email into JSON that matches the fields you ask for, with a confidence score per field and the page and passage each value came from. Or get the full text.\",\n \"**Ask.** Ask a question in plain words and get an answer with citations to the documents it rests on, checked before it is returned.\",\n \"**Run.** Run one of your workspace's Specs over a set of documents and read back one clean row per document.\",\n \"**Review and decide.** Sign off or send back items waiting for you, and take on checks or decisions your workspace hands to an outside agent.\",\n \"**Build and automate.** Describe a process in your own words (what comes in, what is checked, who signs, what goes out), test it on real documents, publish it, and watch its runs.\",\n \"**Look after the workspace.** Keep each company's documents apart, check credits, pricing and usage.\",\n ],\n },\n { type: \"heading\", level: 2, id: \"how-it-works\", text: \"How it fits together\" },\n {\n type: \"paragraph\",\n text: \"Your agent calls Talonic tools; Talonic does the reading and checking and returns structured results. Every call runs as you: it sees only your workspace and can do only what your role allows, exactly like the web app. Writes that send mail, call other systems or can't be undone say so in their description, and the agent is told to call them only when you ask.\",\n },\n {\n type: \"list\",\n items: [\n `**${CORE} tools** are listed in every session.`,\n `**${PROCESS} process tools** are listed when your role can see processes in the workspace.`,\n \"Apps you have enabled (for example Contracts or Accounts Payable) add their own tools to sessions that can use them; see [Apps](https://talonic.com/docs/apps).\",\n ],\n },\n { type: \"heading\", level: 2, id: \"two-ways-to-connect\", text: \"Two ways to connect\" },\n {\n type: \"list\",\n items: [\n \"**Hosted** at `https://mcp.talonic.com/mcp`. Sign in with your Talonic account; no key to copy. Best for Claude.ai, ChatGPT and Claude Code.\",\n \"**Local** with `npx -y @talonic/mcp@latest` and an API key. Best for desktop and IDE clients that start the server on your machine and can read local files.\",\n ],\n },\n { type: \"heading\", level: 2, id: \"first-call\", text: \"Your first call\" },\n {\n type: \"paragraph\",\n text: `Once connected, ask your agent: \"What documents do I have in Talonic about invoices?\" It calls ${tool(\"talonic_search\")} and lists them. Then: \"Extract the vendor, total and due date from the first one.\" It calls ${tool(\"talonic_extract\")} and returns JSON with a confidence score for each field.`,\n },\n { type: \"heading\", level: 2, id: \"next\", text: \"Next\" },\n {\n type: \"list\",\n items: [\n link(\"install-overview\", \"Connect your client\"),\n link(\"tools-by-task\", \"Tools by task\"),\n link(\"files-and-uploads\", \"Files and uploads\"),\n link(\"recipe-set-up-workspace\", \"Recipe: set up a workspace end to end\"),\n ],\n },\n ],\n related: [\n { label: \"Connect your agent\", slug: \"install-overview\" },\n { label: \"Tools by task\", slug: \"tools-by-task\" },\n { label: \"Get an API key\", slug: \"get-api-key\" },\n ],\n faq: [\n {\n question: \"Which AI clients work with the Talonic MCP server?\",\n answer:\n \"Any client that speaks the Model Context Protocol. Claude.ai, Claude Desktop, Claude Code, ChatGPT, Cursor, Cline, Continue and Cowork have step-by-step instructions on the Connect page.\",\n },\n {\n question: \"Can the agent see other people's documents?\",\n answer:\n \"No. Every call runs with your credential and your workspace role, so the agent sees and changes exactly what you could in the web app, and nothing else.\",\n },\n {\n question: \"Does using the MCP server cost extra?\",\n answer:\n \"No. Tool calls use the same credits as the web app and the API. Reading, listing and searching are free; extracting, asking and running Specs use credits. Each tool page says what it costs.\",\n },\n ],\n mentions: [\"MCP server\", \"AI agent\", \"document extraction\", \"Model Context Protocol\"],\n },\n {\n slug: \"why-mcp\",\n parentSlug: \"overview\",\n title: \"Why connect your agent to Talonic\",\n seoTitle: \"Why Connect Your AI Agent to Talonic Over MCP — Talonic\",\n description:\n \"Reading documents inside a chat gives you text. Connecting Talonic gives your agent checked fields, cited answers, your saved Specs and processes it can run.\",\n content: [\n {\n type: \"paragraph\",\n text: \"An agent can read a PDF you paste into a chat. What it can't do on its own is give you the same fields every time, show where each value came from, remember the thousand documents you processed last quarter, or start the approval your team runs on every invoice. Connecting Talonic adds those.\",\n },\n {\n type: \"list\",\n items: [\n \"**Same fields, every time.** You say which fields you want once (or save them); every document comes back in that shape, with a confidence score per field.\",\n \"**Evidence.** Each value links to the page and passage it came from, and answers cite the documents they rest on, so you can check before you act.\",\n \"**Your whole workspace.** Questions run across every document you have added, not only the one in the chat.\",\n \"**Your rules.** The agent runs the Specs and processes your team already set up, with the same permissions and sign-offs as the web app.\",\n \"**Large files.** Files too big for a chat go through an upload link instead.\",\n ],\n },\n {\n type: \"paragraph\",\n text: `Start with ${link(\"install-overview\", \"Connect your agent\")}, or see ${link(\"mcp-introduction\", \"what an agent can do\")}.`,\n },\n ],\n related: [\n { label: \"What an agent can do\", slug: \"mcp-introduction\" },\n { label: \"Connect your agent\", slug: \"install-overview\" },\n ],\n faq: [],\n mentions: [\"MCP\", \"document extraction\", \"AI agents\"],\n },\n {\n slug: \"get-api-key\",\n parentSlug: \"overview\",\n title: \"Get an API key\",\n seoTitle: \"Get a Talonic API Key for the MCP Server — Talonic Docs\",\n description:\n \"Create a Talonic API key for local MCP installs and header-based clients. Hosted connectors in Claude.ai, ChatGPT and Claude Code sign you in without a key.\",\n content: [\n {\n type: \"paragraph\",\n text: \"A local install (`npx @talonic/mcp`) and clients that send their own headers need an API key. Hosted connectors in Claude.ai, ChatGPT and Claude Code sign you in with your Talonic account instead, so you can skip this page for those.\",\n },\n {\n type: \"list\",\n ordered: true,\n items: [\n \"Sign in at [app.talonic.com](https://app.talonic.com).\",\n \"Open **Settings → API Keys** and choose **Create key**.\",\n \"Copy the key. It starts with `tlnc_` and is shown once.\",\n `Put it in your client's config as \\`TALONIC_API_KEY\\` (local) or an \\`Authorization: Bearer\\` header (hosted). ${link(\"install-overview\", \"Connect your agent\")} has the snippets.`,\n ],\n },\n {\n type: \"paragraph\",\n text: \"A key acts as the person who created it, in one workspace, and never with more rights than that person's role. Create a separate key per workspace and per machine so you can revoke one without breaking the others.\",\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"Keep keys out of source control and screenshots. If a key leaks, revoke it under **Settings → API Keys** and create a new one.\",\n },\n ],\n related: [\n { label: \"Connect your agent\", slug: \"install-overview\" },\n { label: \"Configuration\", slug: \"env-variables\" },\n ],\n faq: [\n {\n question: \"Do I need an API key to use Talonic in Claude.ai or ChatGPT?\",\n answer:\n \"No. Hosted connectors sign you in with your Talonic account and keep the access token for you. You only need a key for a local install or a client that sends its own headers.\",\n },\n ],\n mentions: [\"API key\", \"tlnc_\", \"authentication\"],\n },\n {\n slug: \"agent-decision-guide\",\n parentSlug: \"overview\",\n title: \"Which tool to use\",\n seoTitle: \"Which Talonic MCP Tool Should My Agent Use? — Talonic\",\n description:\n \"This guide moved to Tools by task: every Talonic MCP tool grouped by what you want done, from finding documents to running and building your processes.\",\n content: [\n {\n type: \"paragraph\",\n text: `This page moved. ${link(\"tools-by-task\", \"Tools by task\")} groups every tool by what you want done.`,\n },\n ],\n related: [{ label: \"Tools by task\", slug: \"tools-by-task\" }],\n faq: [],\n mentions: [],\n },\n]\n","import type { RawSection } from \"../types\"\nimport { link } from \"../routes\"\n\nexport const sections: RawSection[] = [\n {\n slug: \"env-variables\",\n parentSlug: \"install\",\n title: \"Configuration\",\n seoTitle: \"Talonic MCP Configuration: Environment Variables — Talonic\",\n description:\n \"Configure the local Talonic MCP server: TALONIC_API_KEY is required, TALONIC_BASE_URL is optional. Hosted connections need no settings beyond sign-in.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Settings for the local server (`npx @talonic/mcp`). Hosted connections need none: you sign in, or send `Authorization: Bearer tlnc_…`.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"TALONIC_API_KEY\",\n type: \"string\",\n required: true,\n description: `Your API key, starting with \\`tlnc_\\`. ${link(\"get-api-key\", \"Get one\")}.`,\n },\n {\n name: \"TALONIC_BASE_URL\",\n type: \"string\",\n description:\n \"Only for a dedicated Talonic deployment your account team gave you a URL for.\",\n default: \"https://api.talonic.com\",\n },\n {\n name: \"HTTPS_PROXY\",\n type: \"string\",\n description: \"Standard proxy setting, if your network requires one.\",\n },\n ],\n },\n {\n type: \"code\",\n language: \"json\",\n title: \"In your client config\",\n code: `{\n \"mcpServers\": {\n \"talonic\": {\n \"command\": \"npx\",\n \"args\": [\"-y\", \"@talonic/mcp@latest\"],\n \"env\": { \"TALONIC_API_KEY\": \"tlnc_your_key_here\" }\n }\n }\n}`,\n },\n {\n type: \"paragraph\",\n text: `If the key is missing, the server stops at start-up with \\`TALONIC_API_KEY environment variable is required.\\` See ${link(\"common-issues\", \"Troubleshooting\")}.`,\n },\n ],\n related: [\n { label: \"Connect your agent\", slug: \"install-overview\" },\n { label: \"Get an API key\", slug: \"get-api-key\" },\n { label: \"Troubleshooting\", slug: \"common-issues\" },\n ],\n faq: [],\n mentions: [\"TALONIC_API_KEY\", \"environment variables\", \"MCP configuration\"],\n },\n]\n","import type { RawSection } from \"../types\"\nimport { link, tool } from \"../routes\"\n\nexport const sections: RawSection[] = [\n {\n slug: \"files-and-uploads\",\n parentSlug: \"files\",\n title: \"Files and uploads from an agent\",\n seoTitle: \"Files and Uploads from an AI Agent: Talonic MCP — Talonic\",\n description:\n \"Four ways an agent gets a file to Talonic: a document already in the workspace, a public URL, a local path or bytes, or an upload link the user opens.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Before Talonic can read a document, the file has to reach it. This page shows the four ways an agent can do that, which one to use, and what to tell the user while a file is on its way.\",\n },\n { type: \"heading\", level: 2, id: \"pick-a-way\", text: \"Pick a way\" },\n {\n type: \"list\",\n items: [\n `**Already in the workspace.** Use its \\`document_id\\`. If the user names the file, find the id with ${tool(\"talonic_search\")} (search by file name or one keyword). Free and instant.`,\n \"**On a public URL.** Pass `file_url` (https). Talonic fetches it. Good for links the user pastes.\",\n \"**On the user's machine, in a local install.** Pass `file_path`; the local server reads the file. Small files can also go as `file_data` (base64) with `filename`.\",\n `**Anything else, especially in Claude.ai or ChatGPT.** Call ${tool(\"talonic_request_upload\")} and give the user the link. They open it in their browser and drop the file.`,\n ],\n },\n {\n type: \"callout\",\n variant: \"warning\",\n text: \"Hosted chat clients cap the size of a tool call (around 32 KB), which is smaller than most real documents. A file sent as `file_data` there arrives cut short and comes back with empty fields. Use an upload link instead.\",\n },\n { type: \"heading\", level: 2, id: \"upload-link\", text: \"The upload link, step by step\" },\n {\n type: \"list\",\n ordered: true,\n items: [\n `The agent calls ${tool(\"talonic_request_upload\")} with the \\`filename\\`. Pass \\`account\\` to file it under one company, and \\`add_to_workspace: true\\` if the user will ask questions about it later (otherwise only its text is kept for the next extraction).`,\n \"It returns `upload_url`, a `document_id` reserved for the file, and `expires_at`. The agent shows the user the link and says when it expires.\",\n `The user opens the link and drops the file. The agent checks ${tool(\"talonic_get_document\")} every few seconds.`,\n \"When `status` is `completed` (or `extracted` without `add_to_workspace`), the file is ready: extract fields, read its text, or ask about it.\",\n ],\n },\n {\n type: \"param-table\",\n title: \"Status while a file is on its way\",\n params: [\n {\n name: \"pending_upload\",\n type: \"waiting\",\n description: \"Link issued; the user has not dropped the file yet.\",\n },\n {\n name: \"uploading\",\n type: \"in progress\",\n description: \"The file is arriving. Keep checking.\",\n },\n {\n name: \"queued / extracting\",\n type: \"in progress\",\n description: \"Talonic is reading the file.\",\n },\n {\n name: \"extracted\",\n type: \"ready\",\n description: \"Text is ready (uploads without `add_to_workspace`).\",\n },\n { name: \"completed\", type: \"ready\", description: \"Fully processed and searchable.\" },\n {\n name: \"ocr_failed / extraction_failed / error\",\n type: \"failed\",\n description:\n \"Stop checking and tell the user; the file could not be read. A clearer scan or the original file usually works.\",\n },\n ],\n },\n { type: \"heading\", level: 2, id: \"what-files\", text: \"What files work\" },\n {\n type: \"paragraph\",\n text: \"PDFs (text or scanned), images and phone photos, Word documents (DOCX) and emails. Long documents take longer; very large files are better sent as an upload link or a URL than as bytes.\",\n },\n { type: \"heading\", level: 2, id: \"companies\", text: \"Keeping companies apart\" },\n {\n type: \"paragraph\",\n text: `If the workspace holds documents for several companies (clients, portfolio companies, entities), pass \\`account\\` when uploading. Questions scoped to that account never mix in another company's files. ${tool(\"talonic_list_accounts\")} lists them; ${tool(\"talonic_create_account\")} adds one.`,\n },\n { type: \"heading\", level: 2, id: \"cost\", text: \"Cost\" },\n {\n type: \"paragraph\",\n text: `Issuing a link and checking status are free. Reading a new file uses credits, as in the web app; ${tool(\"talonic_get_pricing\")} shows the rates.`,\n },\n ],\n related: [\n { label: \"talonic_request_upload\", slug: \"talonic-request-upload\" },\n { label: \"talonic_get_document\", slug: \"talonic-get-document\" },\n { label: \"Recipe: set up a workspace\", slug: \"recipe-set-up-workspace\" },\n ],\n faq: [\n {\n question: \"Why does my agent ask me to open a link instead of reading the file I attached?\",\n answer:\n \"Hosted chat clients limit how much data one tool call can carry, so an attached document would arrive incomplete. The upload link sends the whole file straight from your browser to your workspace.\",\n },\n {\n question: \"How long is an upload link valid?\",\n answer:\n \"Until the `expires_at` time returned with it. If it expires, ask the agent for a new link; nothing is lost.\",\n },\n ],\n mentions: [\"file upload\", \"upload link\", \"document upload\", \"MCP files\"],\n },\n {\n slug: \"drag-and-drop\",\n parentSlug: \"files\",\n title: \"Drag and drop files\",\n seoTitle: \"Drag and Drop Files into Your Agent: Talonic MCP Docs\",\n description:\n \"Drop a file into your AI client and have Talonic read it: when attaching works, when an upload link is better, and how a local install reads files by path.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Desktop and IDE clients running the local server can pass a dropped or attached file straight to Talonic. In Claude.ai and ChatGPT, attached files are too large for a tool call, so the agent gives you an upload link instead.\",\n },\n {\n type: \"paragraph\",\n text: `All the options, and which to use when, are on ${link(\"files-and-uploads\", \"Files and uploads\")}.`,\n },\n ],\n related: [{ label: \"Files and uploads\", slug: \"files-and-uploads\" }],\n faq: [],\n mentions: [\"drag and drop\"],\n },\n {\n slug: \"how-it-works\",\n parentSlug: \"files\",\n title: \"How a file gets to Talonic\",\n seoTitle: \"How a File Gets from Your Agent to Talonic MCP — Talonic\",\n description:\n \"What happens between your agent and Talonic when it reads a file: the four ways a file arrives, the status you can check, and when results are ready to use.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Your agent sends Talonic a document id, a URL, a local file or an upload link. Talonic reads the file, fills the fields you asked for, and links each value to the page and passage it came from. Values it is unsure about are marked with a lower confidence score so you can check them.\",\n },\n {\n type: \"paragraph\",\n text: `The four ways in and the status to check are on ${link(\"files-and-uploads\", \"Files and uploads\")}.`,\n },\n ],\n related: [{ label: \"Files and uploads\", slug: \"files-and-uploads\" }],\n faq: [],\n mentions: [],\n },\n]\n","// Recipes: end-to-end jobs an agent does with the Talonic tools. Each one\n// says what you get, what you need, the prompt to give your agent, the calls\n// it makes, and what it costs.\n\nimport type { DocBlock, RawSection } from \"../types\"\nimport { link, tool } from \"../routes\"\n\nconst call = (title: string, code: string): DocBlock => ({\n type: \"code\",\n language: \"json\",\n title,\n code,\n})\n\nexport const sections: RawSection[] = [\n {\n slug: \"recipe-set-up-workspace\",\n parentSlug: \"recipes\",\n title: \"Recipe: set up a workspace end to end\",\n seoTitle: \"Recipe: Set Up a Talonic Workspace from Your AI Agent\",\n description:\n \"From an empty workspace to answers: add companies, upload files, choose the fields you want, extract or run a Spec, ask a first question and check credits.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Go from an empty workspace to structured data and cited answers without opening the web app. For anyone starting with Talonic through an agent.\",\n },\n { type: \"heading\", level: 2, id: \"before\", text: \"Before you start\" },\n {\n type: \"paragraph\",\n text: `Connect your agent (${link(\"install-overview\", \"Connect\")}). Have a few sample documents ready, for example ten invoices from two suppliers.`,\n },\n { type: \"heading\", level: 2, id: \"prompt\", text: \"Tell your agent\" },\n {\n type: \"callout\",\n variant: \"info\",\n text: '\"Set up Talonic for our invoices. We buy from Acme GmbH and Nordwind AG; keep their documents apart. I\\'ll upload ten invoices. Pull vendor, invoice number, date, total and currency from each, show me a table, then tell me our total spend per supplier.\"',\n },\n { type: \"heading\", level: 2, id: \"steps\", text: \"What the agent does\" },\n {\n type: \"list\",\n ordered: true,\n items: [\n `**Companies.** ${tool(\"talonic_list_accounts\")}, then ${tool(\"talonic_create_account\")} for each supplier that is missing.`,\n `**Files.** ${tool(\"talonic_request_upload\")} per file with \\`account\\` and \\`add_to_workspace: true\\`; you open each link and drop the file; it checks ${tool(\"talonic_get_document\")} until \\`completed\\`.`,\n `**Fields.** ${tool(\"talonic_save_schema\")} with the five fields, so every invoice comes back the same way. (Not sure which fields exist? It can call ${tool(\"talonic_extract\")} with \\`auto_schema: true\\` on one invoice and show you what it found.)`,\n `**Extract.** ${tool(\"talonic_extract\")} per document with the saved \\`schema_id\\`. If your team already has an invoice Spec, ${tool(\"talonic_run_spec\")} runs it over all ten at once and ${tool(\"talonic_get_run_results\")} returns one row each.`,\n `**First question.** ${tool(\"talonic_ask\")}: \"Total spend per supplier\", answered with citations to each invoice.`,\n `**Check credits.** ${tool(\"talonic_get_balance\")} and ${tool(\"talonic_get_usage\")}.`,\n ],\n },\n call(\n \"Save the fields\",\n `{\n \"name\": \"Invoice basics\",\n \"definition\": {\n \"vendor_name\": \"string\",\n \"invoice_number\": \"string\",\n \"invoice_date\": \"string\",\n \"total\": \"number\",\n \"currency\": \"string\"\n }\n}`,\n ),\n { type: \"heading\", level: 2, id: \"next-step\", text: \"Make it run by itself\" },\n {\n type: \"paragraph\",\n text: `If your role can build processes, ask: \"From now on, read every invoice that arrives at invoices@ourcompany.com the same way.\" The agent drafts it with ${tool(\"talonic_process_create\")}; see ${link(\"recipe-process-inbox\", \"Process an inbox\")}.`,\n },\n { type: \"heading\", level: 2, id: \"cost\", text: \"Limits and cost\" },\n {\n type: \"list\",\n items: [\n \"Accounts, schemas, links and look-ups are free. Each document read and each question uses credits.\",\n \"A Spec run takes up to 500 workspace documents, or 20 public URLs, per call.\",\n `Something failing? ${link(\"common-issues\", \"Troubleshooting\")}.`,\n ],\n },\n ],\n related: [\n { label: \"Files and uploads\", slug: \"files-and-uploads\" },\n { label: \"Tools by task\", slug: \"tools-by-task\" },\n { label: \"Recipe: audit invoices\", slug: \"recipe-audit-invoices\" },\n ],\n faq: [],\n mentions: [\"workspace setup\", \"invoice extraction\", \"AI agent\"],\n },\n {\n slug: \"recipe-process-inbox\",\n parentSlug: \"recipes\",\n title: \"Recipe: process an inbox\",\n seoTitle: \"Recipe: Process an Email Inbox with Talonic and an Agent\",\n description:\n \"Have every document that arrives in a mailbox read, checked and signed off: describe the process, test it on real files, publish it and work its sign-offs.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Turn a shared mailbox into a process: every document that arrives is read, checked, sent to the right person to sign when needed, and passed on. For operations and finance teams whose agent can build processes.\",\n },\n { type: \"heading\", level: 2, id: \"before\", text: \"Before you start\" },\n {\n type: \"list\",\n items: [\n \"Your role can see and build processes (the process tools are listed in your session).\",\n \"The mailbox is connected in the Talonic web app. Connecting a mailbox and storing passwords happen in the web app, never through the agent.\",\n ],\n },\n { type: \"heading\", level: 2, id: \"prompt\", text: \"Tell your agent\" },\n {\n type: \"callout\",\n variant: \"info\",\n text: '\"Set up a process for ap@ourcompany.com: read each invoice, check the total against the purchase order, have Finance sign anything over 10,000 EUR, and send approved invoices to accounting@ourcompany.com. Test it on last week\\'s invoices before it goes live.\"',\n },\n { type: \"heading\", level: 2, id: \"steps\", text: \"What the agent does\" },\n {\n type: \"list\",\n ordered: true,\n items: [\n `**See what's available.** ${tool(\"talonic_process_setup\")} lists connected mailboxes, who steps can wait for, and the data a look-up step can read.`,\n `**Draft.** ${tool(\"talonic_process_create\")} with your description. Nothing runs yet. The answer lists what a person still has to choose (\\`stillOpen\\`, \\`questions\\`); the agent asks you.`,\n `**Adjust.** ${tool(\"talonic_process_change\")} for each answer (\"Finance means the Finance group\"). If a change means fewer checks, the agent must ask you before it confirms.`,\n `**Check.** ${tool(\"talonic_process_check\")} shows what the draft still needs and what publishing would change.`,\n `**Test.** ${tool(\"talonic_process_test_run\")} on a few real invoices (\\`document_ids\\`) in a test copy: nothing is sent. ${tool(\"talonic_process_status\")} on the test copy shows each item's path.`,\n `**Publish.** Only when you say so: ${tool(\"talonic_process_publish\")} with a \\`reason\\`. From now on new mail starts runs.`,\n ],\n },\n call(\n \"Test on real documents\",\n `{\n \"process_id\": \"<from talonic_process_create>\",\n \"document_ids\": [\"<invoice 1>\", \"<invoice 2>\", \"<invoice 3>\"]\n}`,\n ),\n { type: \"heading\", level: 2, id: \"daily\", text: \"Every day after\" },\n {\n type: \"list\",\n items: [\n `\"What's waiting for me?\" → ${tool(\"talonic_process_waiting_for_me\")}, then ${tool(\"talonic_process_status\")} to see the items.`,\n `\"Approve the Acme ones, send the other back: PO number missing.\" → ${tool(\"talonic_process_sign\")} with \\`items\\`, ${tool(\"talonic_process_send_back\")} with a \\`reason\\`.`,\n `\"Anything stuck?\" → ${tool(\"talonic_process_runs\")} with state \\`stuck\\`, ${tool(\"talonic_process_item\")} for why, and ${tool(\"talonic_process_retry\")} once the cause is fixed.`,\n ],\n },\n { type: \"heading\", level: 2, id: \"cost\", text: \"Limits and cost\" },\n {\n type: \"list\",\n items: [\n \"Drafting, checking and reading status are free; each document a run reads uses credits, including test runs.\",\n \"Signing and sending back are allowed only where you are assigned to the step, exactly as in the web app.\",\n `${tool(\"talonic_process_rollback\")} makes an earlier version live again if a change misbehaves.`,\n ],\n },\n ],\n related: [\n { label: \"Tools by task: build a process\", slug: \"tools-by-task\" },\n { label: \"talonic_process_create\", slug: \"talonic-process-create\" },\n { label: \"talonic_process_publish\", slug: \"talonic-process-publish\" },\n ],\n faq: [\n {\n question: \"Can the agent publish a process on its own?\",\n answer:\n \"It can call publish, but it is told to do so only after you say so and after showing you the check. Publishing is checked against your role every time.\",\n },\n ],\n mentions: [\"email inbox\", \"invoice approval\", \"process automation\"],\n },\n {\n slug: \"recipe-audit-invoices\",\n parentSlug: \"recipes\",\n title: \"Recipe: audit invoices\",\n seoTitle: \"Recipe: Audit Invoices for Duplicates and Outliers — Talonic\",\n description:\n \"Ask your agent to audit invoices: find duplicates, totals above a limit and missing fields across the workspace, with every finding linked to its source page.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Find duplicate invoices, unusually large totals and missing details across everything in your workspace, with each finding linked to the document and page it came from. For finance and audit teams.\",\n },\n { type: \"heading\", level: 2, id: \"before\", text: \"Before you start\" },\n {\n type: \"paragraph\",\n text: `Invoices are in the workspace and have been read (by a Spec, a process, or ${tool(\"talonic_extract\")}). ${link(\"recipe-set-up-workspace\", \"Set up a workspace\")} if not.`,\n },\n { type: \"heading\", level: 2, id: \"prompt\", text: \"Tell your agent\" },\n {\n type: \"callout\",\n variant: \"info\",\n text: '\"Audit our 2026 invoices: any vendor that billed the same amount twice, any invoice over 25,000 EUR, and any without an invoice number. Give me a table with a link to each document.\"',\n },\n { type: \"heading\", level: 2, id: \"steps\", text: \"What the agent does\" },\n {\n type: \"list\",\n ordered: true,\n items: [\n `**Duplicates.** ${tool(\"talonic_ask\")}: \"Which vendors invoiced the same amount more than once in 2026?\" The answer cites each pair of invoices.`,\n `**Large totals.** ${tool(\"talonic_find_data\")} for \"invoice total\" to get the field name, then ${tool(\"talonic_filter\")} with \\`gt 25000\\`. Numeric comparisons need a number field; the agent checks first.`,\n `**Missing numbers.** ${tool(\"talonic_filter\")} with \\`is_empty\\` on the invoice-number field.`,\n `**Evidence.** For any finding you question, ${tool(\"talonic_field_values\")} or ${tool(\"talonic_extract\")} with \\`include_provenance\\` shows the page and passage the value came from.`,\n ],\n },\n call(\n \"Invoices over 25,000\",\n `{\n \"conditions\": [\n { \"field\": \"invoice.total\", \"operator\": \"gt\", \"value\": 25000 },\n { \"field\": \"invoice.date\", \"operator\": \"between\", \"value\": \"2026-01-01\", \"value_to\": \"2026-12-31\" }\n ]\n}`,\n ),\n { type: \"heading\", level: 2, id: \"read\", text: \"Reading the results\" },\n {\n type: \"list\",\n items: [\n \"Every answer comes with citations; open them before acting on a finding.\",\n \"Values with a confidence below 0.7 are worth a second look.\",\n \"If a filter returns `warnings[]` (for example a field name it could not match), the agent tells you instead of guessing.\",\n ],\n },\n { type: \"heading\", level: 2, id: \"cost\", text: \"Limits and cost\" },\n {\n type: \"list\",\n items: [\n \"Filters, field values and look-ups are free; each question uses credits.\",\n \"Results include only documents you are allowed to see.\",\n ],\n },\n ],\n related: [\n { label: \"talonic_ask\", slug: \"talonic-ask\" },\n { label: \"talonic_filter\", slug: \"talonic-filter\" },\n { label: \"Recipe: set up a workspace\", slug: \"recipe-set-up-workspace\" },\n ],\n faq: [],\n mentions: [\"invoice audit\", \"duplicate invoices\", \"accounts payable\"],\n },\n {\n slug: \"recipe-contract-question\",\n parentSlug: \"recipes\",\n title: \"Recipe: answer a contract question\",\n seoTitle: \"Recipe: Answer a Contract Question with Citations — Talonic\",\n description:\n \"Ask what a contract says (notice periods, renewal dates, liability caps) and get an answer that quotes the clause, with a link to the page it comes from.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Ask what a contract says and get an answer that quotes the clause and links to the page, in one call. For legal, procurement and anyone who needs a term out of a contract quickly.\",\n },\n { type: \"heading\", level: 2, id: \"prompt\", text: \"Tell your agent\" },\n {\n type: \"callout\",\n variant: \"info\",\n text: '\"What is the notice period for ending our agreement with Acme, and by when do we have to give notice to stop it renewing?\"',\n },\n { type: \"heading\", level: 2, id: \"steps\", text: \"What the agent does\" },\n {\n type: \"list\",\n ordered: true,\n items: [\n `**Find the contract** (optional). ${tool(\"talonic_search\")} with a short keyword (\"Acme\") to get the \\`document_id\\`, so the question looks only at that contract.`,\n `**Ask.** ${tool(\"talonic_ask\")} with the question and \\`scope.document_ids\\`. Talonic answers with citations quoting the clause.`,\n `**If it takes longer.** When the answer says \\`processing\\`, ${tool(\"talonic_get_answer\")} with the \\`ask_id\\` until it is \\`completed\\`.`,\n `**Follow up.** \"And the liability cap?\" goes to ${tool(\"talonic_ask\")} again with the same \\`conversation_id\\`.`,\n `**Read the clause in full** (optional). ${tool(\"talonic_to_markdown\")} returns the contract's text.`,\n ],\n },\n call(\n \"Ask about one contract\",\n `{\n \"question\": \"What is the notice period to terminate, and the last date to give notice before auto-renewal?\",\n \"scope\": { \"document_ids\": [\"<document_id from talonic_search>\"] }\n}`,\n ),\n {\n type: \"paragraph\",\n text: \"The answer's `citations[]` give the quote, the document and a link to open it in the web app. `verification` says whether every claim was backed by a source; if not, `correction` says what changed.\",\n },\n { type: \"heading\", level: 2, id: \"cost\", text: \"Limits and cost\" },\n {\n type: \"list\",\n items: [\n \"Each question uses credits; `usage.credits_charged` on the answer says how many. Search and reading text from a stored document are free.\",\n \"An answer waits up to 55 seconds (`wait_seconds`) before handing back an `ask_id` to collect later.\",\n ],\n },\n ],\n related: [\n { label: \"talonic_ask\", slug: \"talonic-ask\" },\n { label: \"talonic_search\", slug: \"talonic-search\" },\n { label: \"Tools by task\", slug: \"tools-by-task\" },\n ],\n faq: [\n {\n question: \"Can I ask about all contracts at once?\",\n answer:\n 'Yes. Leave out the scope, or scope by `document_type` or tags, and ask \"Which of our supplier contracts renew automatically in the next 90 days?\".',\n },\n ],\n mentions: [\"contract question\", \"notice period\", \"contract review\"],\n },\n]\n","import type { RawSection } from \"../types\"\nimport { link, tool } from \"../routes\"\n\nexport const sections: RawSection[] = [\n {\n slug: \"run-talonic-tasks\",\n parentSlug: \"advanced\",\n title: \"Run Talonic tasks from your own agent\",\n seoTitle: \"Run Talonic Tasks and Decisions from Your Own Agent: Docs\",\n description:\n \"Let your own agent take checks and decisions your workspace hands out: list the work, claim one, read its input, submit a result Talonic checks or hand it back.\",\n content: [\n {\n type: \"paragraph\",\n text: \"A workspace can hand some work to an outside agent instead of a person: a check a Spec asks for on a document, or a decision an app makes on each run. Your agent picks the work up, does it, and hands back a result that Talonic verifies before anything continues. This page is for teams wiring their own agent into those steps.\",\n },\n { type: \"heading\", level: 2, id: \"two-kinds\", text: \"Two kinds of work\" },\n {\n type: \"list\",\n items: [\n `**Agent tasks** come from a Spec step set to wait for an outside agent. Each has the document's input, instructions and the fields to return. Tools: ${tool(\"talonic_list_agent_tasks\")}, ${tool(\"talonic_get_agent_task\")}, ${tool(\"talonic_claim_agent_task\")}, ${tool(\"talonic_heartbeat_agent_task\")}, ${tool(\"talonic_submit_agent_task\")}.`,\n `**Decision tasks** come from an app whose decisions are made outside Talonic. Each has the records to decide on, earlier decisions as precedent, and the shape the decision must take. Tools: ${tool(\"talonic_list_decision_tasks\")}, ${tool(\"talonic_claim_decision_task\")}, ${tool(\"talonic_read_decision_package\")}, ${tool(\"talonic_heartbeat_decision_task\")}, ${tool(\"talonic_submit_decision_task\")}, ${tool(\"talonic_release_decision_task\")}, ${tool(\"talonic_fail_decision_task\")}.`,\n ],\n },\n { type: \"heading\", level: 2, id: \"loop\", text: \"The loop\" },\n {\n type: \"list\",\n ordered: true,\n items: [\n \"**List** available work. (Or subscribe to the webhook your workspace sends when work is offered.)\",\n \"**Claim** one item. A claim is yours for a limited time (`lease_expires_at`) and carries an `execution_epoch` you send back with every later call. If another agent claimed it first you get HTTP 409; take the next one.\",\n \"**Read** the input. For decisions, read the records page by page; copy the evidence locators you rely on.\",\n \"**Keep the claim alive** with a heartbeat if the work takes longer than the lease.\",\n \"**Submit** the result in exactly the declared shape. Talonic checks it before writing anything; a rejected submission (HTTP 422) says why and changes nothing, so fix it and submit again while the claim lasts.\",\n \"**Or hand it back.** Release a decision another agent could still make; fail one nobody can decide, which sends it to a person and applies the app's fallback.\",\n ],\n },\n { type: \"heading\", level: 2, id: \"access\", text: \"Access\" },\n {\n type: \"list\",\n items: [\n \"Agent tasks: any credential for the workspace; you see only the tasks of that workspace.\",\n \"Decision tasks: an API key with a `decide` grant for that app, or a connector session with the `apps:decide` scope and a workspace role of senior member or above. A 403 names what is missing (`decide_grant_required`, `insufficient_scope`, `insufficient_tier`); the agent should tell you, not retry.\",\n \"Every read of a task's input is recorded against the task.\",\n ],\n },\n { type: \"heading\", level: 2, id: \"errors\", text: \"Errors\" },\n {\n type: \"param-table\",\n params: [\n {\n name: \"409\",\n type: \"conflict\",\n description:\n \"Someone else holds the claim, or your `execution_epoch` is out of date. Stop, discard the work and list again.\",\n },\n {\n name: \"422\",\n type: \"rejected\",\n description:\n \"The result does not match the declared shape or evidence. Nothing changed; fix and resubmit.\",\n },\n {\n name: \"403\",\n type: \"forbidden\",\n description:\n \"The credential lacks the grant, scope or role. Reconnect or ask an admin.\",\n },\n ],\n },\n {\n type: \"paragraph\",\n text: `See ${link(\"tools-by-task\", \"Tools by task\")} for the rest of the tools.`,\n },\n ],\n related: [\n { label: \"talonic_claim_agent_task\", slug: \"talonic-claim-agent-task\" },\n { label: \"talonic_claim_decision_task\", slug: \"talonic-claim-decision-task\" },\n { label: \"Tools by task\", slug: \"tools-by-task\" },\n ],\n faq: [\n {\n question: \"What happens if my agent crashes in the middle of a task?\",\n answer:\n \"The claim runs out at `lease_expires_at` and the task becomes available again. Any later call with the old `execution_epoch` is refused, so stale work can never overwrite a newer result.\",\n },\n ],\n mentions: [\"agent tasks\", \"decision tasks\", \"human in the loop\"],\n },\n]\n","import type { DocBlock, RawSection } from \"../types\"\nimport { link, tool } from \"../routes\"\n\nconst issue = (id: string, title: string, fix: string): DocBlock[] => [\n { type: \"heading\", level: 3, id, text: title },\n { type: \"paragraph\", text: fix },\n]\n\nexport const sections: RawSection[] = [\n {\n slug: \"common-issues\",\n parentSlug: \"troubleshooting\",\n title: \"Troubleshooting\",\n seoTitle: \"Talonic MCP Troubleshooting: Fix Connection and Tool Errors\",\n description:\n \"Fix the common Talonic MCP problems: client won't connect, sign-in loops, authentication errors, missing tools, empty search results and stuck uploads.\",\n content: [\n {\n type: \"paragraph\",\n text: \"The common problems and their fixes, in the order people hit them. If Talonic is missing from your client's server list, the problem is the connection; if it is listed but a call fails, read the error message first, because it says what to change.\",\n },\n { type: \"heading\", level: 2, id: \"connecting\", text: \"Connecting\" },\n ...issue(\n \"api-key-required\",\n '\"TALONIC_API_KEY environment variable is required\"',\n \"The local server could not read the key. Put it in the `env` block of your client config under exactly `TALONIC_API_KEY`, check the JSON is valid, and fully quit and reopen the client (a new conversation is not enough).\",\n ),\n ...issue(\n \"not-listed\",\n \"Talonic does not appear in the client\",\n 'For a local install, `command` must be `npx` and `args` exactly `[\"-y\", \"@talonic/mcp@latest\"]`. Run `npx -y @talonic/mcp@latest --version` in a terminal: it should print a version. Node.js 18 or later is required.',\n ),\n ...issue(\n \"sign-in\",\n \"Connector sign-in does not return to the chat\",\n \"Sign in at app.talonic.com with the account that owns the workspace, allow third-party cookies for app.talonic.com and your chat client, then start the connector again. With several Talonic accounts, sign out first so the right one is used. Last resort: remove the connector and add `https://mcp.talonic.com/mcp` again.\",\n ),\n ...issue(\n \"auth-error\",\n \"Every call fails with an authentication error\",\n `The key is wrong, revoked or for another workspace. Keys start with \\`tlnc_\\`; create a new one under **Settings → API Keys** (${link(\"get-api-key\", \"Get an API key\")}). For connectors, remove and re-add the connector.`,\n ),\n { type: \"heading\", level: 2, id: \"tools\", text: \"Tools\" },\n ...issue(\n \"missing-tools\",\n \"Some tools are missing\",\n `Process tools appear only when your role can see processes; app tools only when the app is enabled for you; ChatGPT omits the two generic data-query tools. Decision-task tools marked not callable mean the connector was added before it could ask for \\`apps:decide\\`: remove and re-add it. ${link(\"tools-by-task\", \"Tools by task\")} shows what each session lists.`,\n ),\n ...issue(\n \"stale-descriptions\",\n \"Tool descriptions or tools look out of date\",\n \"Clients cache the tool list. Restart the client, or reconnect the connector, after Talonic adds or changes tools.\",\n ),\n ...issue(\n \"search-empty\",\n \"Search returns nothing for something that exists\",\n `${tool(\"talonic_search\")} matches words literally. Search with one short, singular keyword (\\`invoice\\`, not \\`invoices from May\\`) or the exact file name. For a concept rather than a word, use ${tool(\"talonic_find_data\")}.`,\n ),\n ...issue(\n \"filter-zero\",\n 'A filter like \"total > 1000\" returns nothing',\n `Number comparisons work only on fields stored as numbers. Check the field's \\`dataType\\` with ${tool(\"talonic_search\")} or ${tool(\"talonic_get_field\")}, and read any \\`warnings[]\\` on the response: it names fields it could not match.`,\n ),\n ...issue(\n \"extract-schema\",\n \"Extract asks for fields\",\n `${tool(\"talonic_extract\")} needs to know what to pull: an inline \\`schema\\`, a saved \\`schema_id\\`, or \\`auto_schema: true\\` to have Talonic suggest the fields. The error includes a ready-to-use schema for your request.`,\n ),\n ...issue(\n \"empty-fields\",\n \"Extract returns empty fields for a file I attached\",\n `In Claude.ai and ChatGPT, a file sent inside the tool call is cut short by the client's size limit. Use ${tool(\"talonic_request_upload\")} instead (${link(\"files-and-uploads\", \"Files and uploads\")}).`,\n ),\n ...issue(\n \"upload-stuck\",\n \"An upload seems stuck\",\n \"`pending_upload` means the link has not been used yet; `uploading`, `queued` and `extracting` are normal while a file is read. `ocr_failed`, `extraction_failed` or `error` are final: try a clearer scan or the original file. An expired link can be replaced by asking for a new one.\",\n ),\n ...issue(\n \"slow\",\n \"Long documents time out\",\n `Reading time grows with page count. If your client gives up first, use an upload link or a Spec run (${tool(\"talonic_run_spec\")}), which return at once and let the agent check progress.`,\n ),\n ...issue(\n \"permission\",\n \"A write is refused (403)\",\n \"The call runs with your workspace role. The message names what is missing, such as a role, a grant or a scope; ask a workspace admin, or reconnect if it names a scope.\",\n ),\n { type: \"heading\", level: 2, id: \"report\", text: \"Reporting a problem\" },\n {\n type: \"paragraph\",\n text: \"Include your client and its version, the server version (`npx -y @talonic/mcp@latest --version` for local installs), the tool name and the full error message. Open an issue on [GitHub](https://github.com/talonicdev/talonic-mcp/issues) or write to support from the web app.\",\n },\n ],\n related: [\n { label: \"Limits\", slug: \"known-limitations\" },\n { label: \"Connect your agent\", slug: \"install-overview\" },\n { label: \"Files and uploads\", slug: \"files-and-uploads\" },\n ],\n faq: [\n {\n question: \"Why does my agent say it can't find a document I know is there?\",\n answer:\n \"Search matches words literally. Ask it to search for one short keyword or the exact file name, or to look for the concept instead of the word.\",\n },\n ],\n mentions: [\"MCP troubleshooting\", \"connection errors\", \"authentication\"],\n },\n {\n slug: \"known-limitations\",\n parentSlug: \"troubleshooting\",\n title: \"Limits\",\n seoTitle: \"Talonic MCP Limits: File Sizes, Batches and Timeouts\",\n description:\n \"The limits that shape what an agent can do with Talonic: tool-call size in hosted chats, batch sizes, waits for answers, page sizes and what uses credits.\",\n content: [\n {\n type: \"paragraph\",\n text: \"The limits an agent works within, and what to do at each one.\",\n },\n {\n type: \"param-table\",\n params: [\n {\n name: \"File inside a tool call (hosted chats)\",\n type: \"about 32 KB\",\n description: `Larger files arrive cut short. Use ${tool(\"talonic_request_upload\")}, a \\`file_url\\` or a \\`document_id\\`.`,\n },\n {\n name: \"File by path\",\n type: \"local install only\",\n description:\n \"`file_path` is read by the server on your machine; hosted sessions refuse it.\",\n },\n {\n name: \"Spec run\",\n type: \"500 documents or 20 URLs\",\n description: \"Per call to `talonic_run_spec`; split larger sets into several runs.\",\n },\n {\n name: \"Answer wait\",\n type: \"up to 55 s\",\n description:\n \"`talonic_ask` returns an `ask_id` after `wait_seconds`; collect the answer with `talonic_get_answer`.\",\n },\n {\n name: \"Run results page\",\n type: \"up to 200 rows\",\n description: \"Page through `talonic_get_run_results` with `cursor`.\",\n },\n {\n name: \"Field values page\",\n type: \"up to 100 rows\",\n description: \"Page through `talonic_field_values` with `cursor`.\",\n },\n {\n name: \"Decision package page\",\n type: \"up to 2,000 records\",\n description: \"Page through `talonic_read_decision_package` with `cursor`.\",\n },\n {\n name: \"Usage window\",\n type: \"1 to 365 days\",\n description: \"`talonic_get_usage` defaults to 30 days.\",\n },\n ],\n },\n { type: \"heading\", level: 2, id: \"credits\", text: \"What uses credits\" },\n {\n type: \"paragraph\",\n text: `Reading a new document, extracting fields, asking a question and running a Spec or a process use credits, at the same rates as the web app and the API. Searching, filtering, listing, looking up and reading stored text are free. ${tool(\"talonic_get_pricing\")} has the rates; ${tool(\"talonic_get_balance\")} the balance.`,\n },\n {\n type: \"heading\",\n level: 2,\n id: \"in-the-web-app\",\n text: \"Done in the web app, not by an agent\",\n },\n {\n type: \"list\",\n items: [\n \"Connecting a mailbox or another system, and storing passwords or secrets.\",\n \"Creating API keys and managing members and roles.\",\n ],\n },\n ],\n related: [\n { label: \"Troubleshooting\", slug: \"common-issues\" },\n { label: \"Files and uploads\", slug: \"files-and-uploads\" },\n ],\n faq: [],\n mentions: [\"MCP limits\", \"file size\", \"credits\"],\n },\n {\n slug: \"upgrading\",\n parentSlug: \"troubleshooting\",\n title: \"Upgrading\",\n seoTitle: \"Upgrading the Talonic MCP Server to the Latest Version\",\n description:\n \"Hosted connections always run the latest Talonic MCP server. Local installs update on restart with @latest; pin an exact version when you need repeatable runs.\",\n content: [\n {\n type: \"paragraph\",\n text: \"Hosted connections (`https://mcp.talonic.com/mcp`) always run the latest version; there is nothing to do except reconnect if your client caches the tool list.\",\n },\n {\n type: \"paragraph\",\n text: \"Local installs with `@talonic/mcp@latest` pick up the newest version the next time the client starts. Quit the client fully (not just the conversation) to restart the server. To pin, use an exact version such as `@talonic/mcp@0.1.100`; `npm view @talonic/mcp version` shows the latest.\",\n },\n {\n type: \"paragraph\",\n text: \"New versions add tools and optional parameters. Existing parameters and response fields are not removed or renamed without a dated notice in the [changelog](https://github.com/talonicdev/talonic-mcp/blob/main/CHANGELOG.md).\",\n },\n ],\n related: [{ label: \"Connect your agent\", slug: \"install-overview\" }],\n faq: [],\n mentions: [\"upgrade\", \"npm\", \"version\"],\n },\n]\n","// ---------------------------------------------------------------------------\n// Structured content export for @talonic/mcp documentation.\n//\n// ⚠ This module is the source-of-truth for talonic.com/docs/mcp/* pages.\n// The website's <McpContentPage> calls getMcpSection(slug) at render time.\n// docs/sections.json is a dormant mirror generated FROM these sections\n// (npm run docs:gen); editing it changes no page.\n// Full architecture, \"add a new tool\" checklist, and failure modes:\n// docs/architecture/docs-pipeline.md\n//\n// Usage:\n// import { getMcpSection, getAllMcpSections, MCP_NAV_SECTIONS } from '@talonic/mcp/content'\n// ---------------------------------------------------------------------------\n\nexport type { DocBlock, DocSection, RawSection, Param, HttpMethod, NavSection } from \"./types\"\n\nexport { MCP_NAV_SECTIONS } from \"./seo\"\nexport { MCP_PATHS } from \"./routes\"\nexport { MCP_CLIENTS } from \"./sections/connect\"\nexport type { McpClient } from \"./sections/connect\"\n\nimport type { DocSection, RawSection } from \"./types\"\nimport { deriveBreadcrumbs, derivePrevNext } from \"./helpers\"\nimport { MCP_NAV_SECTIONS } from \"./seo\"\n\n// --- Section imports ---\nimport { sections as overview } from \"./sections/overview\"\nimport { sections as connect } from \"./sections/connect\"\nimport { sections as apps } from \"./sections/apps\"\nimport { sections as toolGroups } from \"./sections/tool-groups\"\nimport { sections as configuration } from \"./sections/configuration\"\nimport { sections as toolsByTask } from \"./sections/tools-by-task\"\nimport { sections as toolReference } from \"./sections/tool-reference\"\nimport { sections as files } from \"./sections/files\"\nimport { sections as recipes } from \"./sections/recipes\"\nimport { sections as advanced } from \"./sections/advanced\"\nimport { sections as troubleshooting } from \"./sections/troubleshooting\"\n\n// ---------------------------------------------------------------------------\n// Registry\n// ---------------------------------------------------------------------------\n\nconst ALL_RAW: RawSection[] = [\n ...overview,\n ...connect,\n ...apps,\n ...toolGroups,\n ...configuration,\n ...toolsByTask,\n ...toolReference,\n ...files,\n ...recipes,\n ...advanced,\n ...troubleshooting,\n]\n\n// ---------------------------------------------------------------------------\n// Enrichment\n// ---------------------------------------------------------------------------\n\nfunction enrich(raw: RawSection[]): DocSection[] {\n return raw.map((r) => {\n const { prev, next } = derivePrevNext(MCP_NAV_SECTIONS, r.slug)\n return {\n ...r,\n breadcrumbs: deriveBreadcrumbs(MCP_NAV_SECTIONS, r.slug),\n prev,\n next,\n }\n })\n}\n\nlet _sections: DocSection[] | null = null\n\nfunction getSectionsAll(): DocSection[] {\n if (!_sections) {\n _sections = enrich(ALL_RAW)\n }\n return _sections\n}\n\n// ---------------------------------------------------------------------------\n// Public API\n// ---------------------------------------------------------------------------\n\n/** Get a single MCP section by slug, or null if not found. */\nexport function getMcpSection(slug: string): DocSection | null {\n return getSectionsAll().find((s) => s.slug === slug) ?? null\n}\n\n/** Get all MCP sections in reading order. */\nexport function getAllMcpSections(): DocSection[] {\n return getSectionsAll()\n}\n"]}