Upload media
upload_mediaUploads media from a public URL or local image, video, or PDF path and returns the media row ID that posts reference via mediaIds.
Instructions
Upload media from a public URL or a local image/video/PDF file path. Returns the media row whose id posts reference via mediaIds.
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 | Public media URL | |
| path | No | Local file path | |
| mediaType | No |