A batch of invoices → one ledger-ready table (arithmetic-checked)
extract_invoicesGive it up to 20 invoice URLs (PDF or page images) and get back one table ready to post: number, date, seller, buyer, net / tax / gross, currency. Every row is checked in code — net + tax must equal gross — and the batch total is re-added independently, so a row the model misread is flagged with the exact difference instead of quietly landing in your books. Mixed currencies get no batch total on purpose: adding them together would be an accounting error. CSV is UTF-8 with BOM so Excel opens it right.
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": {
"urls": "<urls>"
},
"name": "extract_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | Invoice URLs — comma-separated, or pass an array. Up to 20 per call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||