createMediaMessage
Send direct messages on Twitter with media attachments, including images or videos, by specifying recipient ID, text, media ID, and alt text for accessibility.
Instructions
Send a direct message with media attachments
Input Schema
Name | Required | Description | Default |
---|---|---|---|
altText | No | Alternative text for the media (accessibility) | |
mediaId | Yes | The media ID of the uploaded media to attach | |
mediaType | No | MIME type of the media file | |
recipientId | Yes | The ID of the user to send the message to | |
text | Yes | The text content of the direct message |
Input Schema (JSON Schema)
{
"properties": {
"altText": {
"description": "Alternative text for the media (accessibility)",
"type": "string"
},
"mediaId": {
"description": "The media ID of the uploaded media to attach",
"type": "string"
},
"mediaType": {
"description": "MIME type of the media file",
"enum": [
"image/jpeg",
"image/png",
"image/gif",
"video/mp4"
],
"type": "string"
},
"recipientId": {
"description": "The ID of the user to send the message to",
"type": "string"
},
"text": {
"description": "The text content of the direct message",
"type": "string"
}
},
"required": [
"recipientId",
"text",
"mediaId"
],
"type": "object"
}