Invoke a platform agent tool
talonic_invoke_agent_toolDirectly invoke any registered agent tool to run a read-only SQL query, list queryable fields, or fetch document markdown, while keeping full control over arguments and provenance.
Instructions
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 (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).
USE 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.
NOT FOR: anything a dedicated talonic_* tool already does (prefer those — they are shaped for you).
ARGS: name (tool name), args (object matching the tool's input_schema), optional document_ids (hard scope for scope-aware tools).
RETURNS: { 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments matching the tool's input_schema. | |
| name | Yes | Tool name from talonic_list_agent_tools, e.g. `query_data`. | |
| document_ids | No | Restrict to these document ids (hard filter, enforced server-side). |