Get a link for the user to upload a file
request_upload_linkChanges data: makes a link where the user can drop one file for a shipment, as the person who connected this app, and records it in the organization's audit log. Use it when you cannot give upload_document or replace_document a file: a chat attachment that has no URL you can pass (Claude.ai, Microsoft Copilot), a link that needs a sign-in (Microsoft 365, SharePoint, OneDrive, Google Drive and similar pages cannot be fetched by Trackberry), or a file too large to send inline. The link is a Trackberry page that needs no sign-in, works once, and expires in 30 minutes. Show it to the user in your answer, say which shipment it is for, and ask them to open it and choose the file; do not open it yourself. By default the file is attached to the shipment and read for extraction like any upload, and it appears in list_documents once they have uploaded it. To replace a document instead, pass replace_document_id: the file the user chooses then replaces that document exactly as replace_document would (same checks, the old one kept as an older version), and shipment_id can be left out. A document that was already replaced, or that is on another shipment than the one named, is refused when the link is made. Name an existing shipment with shipment_id, or with container_number for the live shipment that carries it; unlike upload_document it does not start a draft shipment, so a container number nothing carries is refused. Not safe to repeat for nothing: every call makes a new link, adds an entry to the audit log and counts toward a limit of 20 unused links, and the earlier links stay valid until they expire or are used. Ask once and give the user that link; ask again only if it expired or was used. Only people who can upload documents in Trackberry can ask for one.
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": "request_upload_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shipment_id | No | The shipment the file is for, such as "shp_123", as returned by search_shipments. Not together with container_number. | |
| container_number | No | Instead of shipment_id: an ISO 6346 container number such as "MSCU1234566". It must be on a live shipment. | |
| replace_document_id | No | Optional: a document such as "doc_123", as returned by list_documents. The file the user chooses replaces it, as replace_document would, instead of being added as a new document. It must be a current document and on the shipment, which can be left out then. |