opentweet_upload_media
Upload images or videos to use in tweets. Supports JPG, PNG, GIF, WebP (up to 5MB) and MP4, MOV (up to 20MB). Returns a media URL for tweet creation or updates.
Instructions
Upload an image or video file to use in tweets. Returns a URL that can be passed to create_tweet or update_tweet in the media_urls field. Supported formats: JPG, PNG, GIF, WebP (max 5MB), MP4, MOV (max 20MB).
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": {
"file_path": "<file_path>"
},
"name": "opentweet_upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the image or video file on disk |