Read data out of documents
tarkle_extract_dataStart reading chosen fields out of up to 10 PDFs or pictures (fileIds from tarkle_list_files): an invoice's supplier, number, dates and total, a contract's parties and terms. Give a ready-made template (invoice, receipt, contract) or your own fields (a name, a type of text, number, date, yes_no, choice or table, with options for a choice and columns for a table; up to 20). The reading continues in the background: this returns a runId and the credits quoted; call tarkle_get_extraction with it a few seconds later (about 3 to 6 seconds a page) for the answers, each with the page it was read from. A value the document does not state is empty, never guessed. THIS SPENDS CREDITS (about 20 a page, charged for each file once read). Up to any number of pages (only the credits limit a run); a password-protected or unreadable file is refused. Only files this person can open are read.
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": {
"workspaceId": "<workspaceId>",
"fileIds": "<fileIds>"
},
"name": "tarkle_extract_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | standard is used when omitted. deep costs about twice as much and is for hard documents. | |
| fields | No | Your own fields. Send this or template. | |
| fileIds | Yes | Ids of the files to read, from tarkle_list_files. They must be PDFs or PNG, JPG or TIFF pictures. | |
| template | No | A ready-made set of fields. Send this or fields. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| workspaceId | Yes | The workspace's id, from tarkle_list_workspaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| runId | No | ||
| status | No | ||
| credits | No |