upload_media
Accepts a local file path or public URL, uploads the media, and returns a signed media_url ready for use in social media posts. Enables one-step attachment of images or videos.
Instructions
One-step media upload: provide a local file path OR a public URL, and this generates a signed URL, uploads the bytes, and returns { media_url } ready to drop into create_post/publish_now/schedule_post media. Use this whenever you need to attach an image or video.
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 |
|---|---|---|---|
| file_path | No | Absolute path to a local image/video file to upload. | |
| source_url | No | Public URL of media to fetch and re-upload (alternative to file_path). | |
| content_type | No | Override the MIME type (auto-detected from extension otherwise). |