post_tweet
Create new posts on X (Twitter) with text, polls, and media attachments. Use this tool to publish content and engage with audiences directly from the x-mcp server.
Instructions
Create a new post on X (Twitter). Supports text, polls, and media attachments.
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": {
"text": "<text>"
},
"name": "post_tweet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text content of the tweet (max 280 characters) | |
| poll_options | No | Poll options (2-4 choices) | |
| poll_duration_minutes | No | Poll duration in minutes (default 1440 = 24h) | |
| media_ids | No | Media IDs to attach (from upload_media) |