Request File Upload
talonic_request_uploadGenerates a browser upload link for the user to add a file to their workspace. Returns a pre-allocated document ID for 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 — hosted/sandboxed clients (ChatGPT, Claude.ai) or files 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). RETURNS: upload_url, document_id, expires_at. After the user uploads, poll talonic_get_document on that document_id until status is 'completed', then call talonic_extract.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The pre-allocated document ID. Use with talonic_get_document to poll status, and with talonic_extract once uploaded. | |
| upload_url | Yes | URL the user should open in their browser to drop the file. | |
| expires_at | Yes | ISO 8601 timestamp when the upload link expires. |