upload_media
Upload an image or PDF (jpg, png, gif, svg, webp, pdf; max 10MB) from a local path or URL and get a public URL for HTML.
Instructions
Upload an image or PDF (jpg, png, gif, svg, webp, pdf; max 10MB) from a local file path or a remote URL. Returns the public URL to reference in HTML.
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": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Remote file URL to download and upload | |
| name | No | Display name in the media library | |
| path | No | Absolute local file path |