postTweetWithMedia
Upload and share tweets with media attachments like images, videos, or GIFs using a local file path. Include text and alt text for accessibility, ensuring content is accessible and engaging on Twitter.
Instructions
Post a tweet with media attachment to Twitter
Input Schema
Name | Required | Description | Default |
---|---|---|---|
altText | No | Alternative text for the media (accessibility) | |
mediaPath | Yes | Local file path to the media to upload | |
mediaType | Yes | MIME type of the media file | |
text | Yes | The text of the tweet |
Input Schema (JSON Schema)
{
"properties": {
"altText": {
"description": "Alternative text for the media (accessibility)",
"type": "string"
},
"mediaPath": {
"description": "Local file path to the media to upload",
"type": "string"
},
"mediaType": {
"description": "MIME type of the media file",
"enum": [
"image/jpeg",
"image/png",
"image/gif",
"video/mp4"
],
"type": "string"
},
"text": {
"description": "The text of the tweet",
"type": "string"
}
},
"required": [
"text",
"mediaPath",
"mediaType"
],
"type": "object"
}