get_upload_url
Upload without the upload widget, only when you can send HTTP requests with the file's bytes yourself (e.g. from a shell); in a chat, show the upload widget instead. Step 1: get a presigned URL. PUT the raw file bytes to it (not multipart) with the same Content-Type, then call confirm_upload. The URL expires in 1 hour.
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": {
"contentType": "<contentType>",
"size": "<size>"
},
"name": "get_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | Exact file size in bytes; the upload is rejected if it differs | |
| contentType | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Pass to confirm_upload | |
| uploadUrl | Yes | PUT the raw file bytes here with the same Content-Type header, then call confirm_upload |