Get Upload Url
get_upload_urlGet a temporary upload URL for a local image, video or audio file.
Requesting a URL does not upload the file. Request a new URL if it expires.
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": {
"file_name": "<file_name>",
"size_bytes": "<size_bytes>"
},
"name": "get_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | Local file basename with its image, video or audio extension. | |
| size_bytes | Yes | Exact file size in bytes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | HTTP method for uploading raw bytes, without multipart encoding. | PUT |
| headers | Yes | Use exactly these headers for the upload request. | |
| file_url | Yes | Media reference URL to use after a successful upload. | |
| expires_in | Yes | Maximum upload URL lifetime in seconds; not file retention. | |
| upload_url | Yes | Temporary upload endpoint. Send raw file bytes using method and headers; never fetch or preview this URL. |