Create dossier image upload url
create_dossier_image_upload_urlReserve a place for an image in a dossier's Mappe and get a signed PUT address for it. The bytes never pass through the agent: upload with curl -H "Content-Type: <mime>" -T <file> "<upload_url>" from the shell — without the header the bucket answers 415, then call finalize_dossier_image_upload with the returned upload_id. This is the way for a file that lives on the caller's own disk — base64 has to stand inside the tool call and an execution environment spills output to a file at about 30 KB, and source_url needs a server that can reach the machine. The address is valid for two hours and for exactly one path. Nothing is written to the Mappe until you finalize; an abandoned upload leaves an object that list_orphan_dossier_images shows. Up to 10 MB per image, enforced by the bucket so the PUT fails at once. For a small image or one the server can fetch itself, upload_dossier_image is still the shorter way.
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": {
"filename": "<filename>"
},
"name": "create_dossier_image_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name as it should be kept, e.g. "07-befundhistorie.png". Its extension decides the stored one when mime_type is omitted. | |
| grant_id | No | ||
| mime_type | No | What you are about to upload. Only decides the extension in the path — the content is read and checked when you finalize, and the content wins. | |
| tender_id | No | ||
| dossier_id | No |