Get upload URL
get_upload_urlA signed URL (valid 15 minutes) to upload local files to a workspace from a shell, without sending them through the conversation: curl -F file=@ref.png (several -F file=@… at once; 10 MB per file, 40 MB per request, enough for full-resolution iPad and desktop screenshots). The files go to fileId's workspace when given (pass the file you will use them in), else to workspace, else to the default workspace. The JSON response gives each asset's url (/api/assets/…), for or as a reference image. The files never go through the conversation, where base64 costs thousands of tokens.
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": "get_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | The file the assets are for: its workspace's (a file shows the fonts and images of its own workspace). | |
| workspace | No | The workspace whose assets to use: its id or name (whoami lists them). Default: fileId's workspace, else the default workspace. |