Create upload URL
create_upload_urlGet a presigned upload URL for an image, video, or audio file, or supply an existing public URL, then use it in task inputs after completing the upload.
Instructions
Use an existing public URL, or get a presigned R2 PUT URL for one image/video/audio file. With fileName, PUT the raw bytes to uploadUrl using the returned Content-Type, then pass url in create_task inputs (for example imageUrls). Complete the upload with complete_upload before attaching the owned asset to a task. This call does not transfer the file itself.
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": "create_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Existing public http(s) URL. Use this instead of fileName when you already host the asset. | |
| fileName | No | Original file name; its extension determines the accepted type. | |
| fileSize | No | Bytes. Required for a ticket. Limits are 10 MiB for images, 50 MiB for videos, and 15 MiB for audio. | |
| contentType | No | MIME type, e.g. image/png. |