Extract data from a document
extract_documentExtract structured fields from invoices, receipts, purchase orders, or bank statements using a ParserBee Parser Template. Provide a local file path or public URL and get the data fields back.
Instructions
Extract structured data from an invoice, receipt, purchase order, bank statement or other document with a ParserBee Parser Template. Give either file_path (a PDF or image on this computer) or file_url (a public link). Returns the extracted fields in data. Costs 1 ParserBee page credit per page. Use list_templates to find the template_id.
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": {
"template_id": "<template_id>"
},
"name": "extract_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_url | No | Public URL of the document (must open without a login) | |
| file_path | No | Absolute path to a local PDF, PNG, JPG, WebP or HEIC file | |
| template_id | Yes | ID of the Parser Template to use |