Change a document's type and read it again
recategorize_documentDeletes data: tells Trackberry a document is a different type than it decided (for example an invoice read as a packing list) and has it read again as that type, as the person who connected this app, and records it in the organization's audit log. Each run is a paid AI extraction that sends the file to an AI provider. What was read from the document is cleared first: its extracted data, and what it had imported into the shipment (a packing list with its pallets, invoice lines, a free-time notice, an inspection report, a booking's route). The new reading is not instant: the document shows processing, then parsed or failed; use get_document_data later. Only admins and owners can do this in Trackberry, and the answer says so for anyone else. Refused, with nothing changed, for a document that is waiting or being read, a file the security scan blocked, a shipment that has arrived, a packing list with pre-allocations (delete those first). In a demo or sample organization nothing is read: the call is recorded in the audit log, the document is unchanged and the answer says simulated true. Limited to 10 re-readings (this and reparse_document together) an hour per connection; do not retry sooner. Use it only when the user asks and says which type; on a copy shared across containers it acts on the original. Answers with the document.
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>",
"document_type": "<document_type>"
},
"name": "recategorize_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | A document id such as "doc_45", as returned by list_documents. | |
| document_type | Yes | The type to read it as, such as "packing_list", "exporter_invoice" or "transport_document". |