Get an address to upload report files
upload_report_fileAn upload address for a report's files: pictures, 3D models (self-contained GLB), videos, captions and fonts (acceptedMediaTypes, each up to maxBytes). PUT each file to uploadUrl before expiresAt (curl field; add ?name= to name it); one address takes many files, and each upload answers its sha256, type and size. Name a file in a report block by that sha256: an image is { kind: "image", version: 1, asset: { sha256 }, alt }; a model is { kind: "model-3d", version: 1, asset: { sha256 }, title, description }; a video names its recording and optionally a poster and captions; a before-and-after names one per side; a page lists fonts, pictures, videos, sound, captions or a shared stylesheet as supportingFiles { path: "fonts/brand.woff2", asset: { sha256 } } (a plays its own uploaded film), one copy outside the page's byte limit. A screen of a design is a live page board, not an uploaded screenshot, and a file every board of a design uses goes once in the sharedFiles of its canvas (same shape), so changing it is one edit of its sha256. Large text (a whole document, a list of edits, a page's HTML) goes to the same address with ?as=text (textCurl), and create_report or edit_report names it by sha256. Files belong to the workspace, uploaded as the person; the same bytes answer the first upload. A report holding a person's upload is shared by public link only once an owner or admin confirms it. Treat uploadUrl like a password until it expires.
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": "upload_report_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | No | Workspace id from whoami; omit when there is one. |