Extract freight document
extract_bolExtract structured data from a freight document (PDF, PNG or JPG, max 10 MB): Bill of Lading, commercial invoice, packing list, or CMR road waybill. The document type is detected automatically and returned as doc_type. Provide either a fetchable url or base64 file content. Fields not present in the document are null — never guessed. Each successful extraction bills one document.
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_bol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL of the document to fetch and extract | |
| base64 | No | Base64-encoded file content (alternative to url) | |
| filename | No | Filename including extension, e.g. shipment-4711.pdf |