Extract Document to JSON
extract_documentExtract structured JSON from any document text. Auto-detects document type (invoice, receipt, contract, purchase_order, bill) and extracts relevant fields: vendor, customer, line items, totals, dates, parties, obligations.
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": {
"text": "<text>"
},
"name": "extract_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Raw document text (invoice, receipt, contract, etc.) |