Upload image/video
upload_mediaUpload an image or video from a public URL to use in question text or as an answer image (img_url). Allowed: png, jpg, jpeg, gif, webp, svg, mp4, mov, webm; max 25 MB. Returns public_url.
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": {
"url": "<url>"
},
"name": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL of the file to upload. | |
| filename | No | Filename to store (default: taken from the URL). | |
| file_type | No | image (default) or video. |