create_post
Publish or reply to X posts as a chosen account, with optional media, polls, quotes, and reply settings. Requires confirmed text and account before spending credits.
Instructions
Publish a post as the given account; also used to reply (reply_to_post_id). Attach media via media_files (uploads for you) or media_ids. Spends pay-per-use credits (roughly $0.015 per post, much more if the text contains a URL; check current pricing in the X console). Only call when the user has confirmed the exact text and account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poll | No | ||
| text | No | Post text. Required unless media is attached. | |
| account | No | X username of an authorized account (see list_accounts). Omit to use the default account. | |
| media_ids | No | media_id values returned by upload_media | |
| media_files | No | Local files to upload and attach in one step (max 4 images, or 1 GIF/video). | |
| made_with_ai | No | Disclose AI-generated media | |
| quote_post_id | No | Post ID to quote (X currently limits this to Enterprise access) | |
| reply_settings | No | Who can reply | |
| paid_partnership | No | Disclose a paid partnership | |
| reply_to_post_id | No | Post ID to reply to |