Get the data extracted from a document
get_document_dataThe structured fields Trackberry read from one document: for a bill of lading the parties, ports, vessel and containers; for an invoice the amounts and terms; and so on. type and schema say what kind of document it is. fields is empty when nothing could be extracted. Use it for "what is the invoice total on doc_45" or "who is the consignee on the B/L". Get document ids from list_documents.
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": {
"document_id": "<document_id>"
},
"name": "get_document_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | A document id such as "doc_45", as returned by list_documents. |