Extract Media URLs
tweetsave_extract_mediaExtract direct media URLs from a tweet for downloading or embedding. Filter by photos, videos, or all types.
Instructions
Extract direct media URLs (photos, videos, GIFs) from a tweet.
Returns direct URLs that can be downloaded or embedded. Video URLs are the highest quality available.
Args:
url (string): Tweet URL or tweet ID
media_type ('all' | 'photos' | 'videos'): Filter by media type (default: 'all')
Returns: List of media items with:
type (photo/video/gif)
url (direct download URL)
dimensions (width/height)
duration (for videos)
Examples:
"Get all media from this tweet: https://x.com/user/status/123"
"Extract video URLs from tweet 123456"
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": "tweetsave_extract_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Tweet URL or tweet ID | |
| media_type | No | Type of media to extract: 'all', 'photos', or 'videos' | all |