extract
Document extraction: PDF/image (url or file_base64, max 10 MB) -> typed fields, line items, OCR text, document type ($0.025 per page, max 5 pages billed; synchronous, charged only on success). Pay with X-PAYMENT (x402 USDC on Base) or a prepaid API key.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL of a PDF or image (max 10 MB) | |
| region | No | Optional regional variant, e.g. EU, US, IN | |
| filename | No | Optional file name, e.g. invoice.pdf | |
| file_base64 | No | Alternative to url: base64 file content (max 10 MB decoded) | |
| document_type | No | Optional: invoice, receipt, purchase_order, bank_statement, contract, cv, ... (default auto) |