Get an upload link
talonic_request_uploadCreate a browser upload link for files that can't be attached to a tool call or exceed argument size limits. Returns the link plus a pre-allocated document_id for polling and later extraction.
Instructions
Get a browser upload link the user opens to add a file to their workspace. Returns the link plus a pre-allocated document_id.
USE 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. NOT FOR: a document already in the workspace (use its document_id) · a file already on a public URL (use file_url on talonic_extract). ARGS: 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). RETURNS: 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>"
},
"name": "talonic_request_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Company (account) the file belongs to: its name, alias or id. See talonic_list_accounts / talonic_create_account. | |
| filename | Yes | The name of the file being uploaded, including extension (e.g. 'invoice.pdf'). Used to pre-allocate the document and infer MIME type. | |
| add_to_workspace | No | true: process fully so the file becomes workspace data (questions, SQL, registry). false (default): text only, for a one-off talonic_extract. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expires_at | Yes | ISO 8601 timestamp when the upload link expires. | |
| upload_url | Yes | URL the user should open in their browser to drop the file. | |
| document_id | Yes | The pre-allocated document ID. Use with talonic_get_document to poll status, and with talonic_extract once uploaded. |