X posts
x_postsCreate, read, search, and moderate X posts: publish threads, fetch posts by ID, search archives, count volume, reconstruct conversations, list engagement, hide replies, and delete posts.
Instructions
Create, read, search and moderate posts: publish posts and threads, fetch one or many by id, search recent or full-archive, count volume, reconstruct a conversation, list likers/reposters/quotes, hide replies, delete.
Actions (pass "action" plus that action's parameters):
create: Publish a post (tweet), reply or quote on X as the authenticated account. [requires: text]
create_thread: Publish a multi-post thread by chaining replies. [requires: posts]
delete: Delete a post you authored. [requires: tweet_id]
get: Fetch one post with its author, metrics, media, entities and (when present) the quoted or reposted post. [requires: tweet_id]
get_many: Fetch up to 100 posts in one request. [requires: tweet_ids]
search: Search X posts with the v2 search operators. [requires: query]
count: Get post volume for a query without retrieving the posts themselves. [requires: query]
thread: Reconstruct a conversation: fetches the root post and finds replies via conversation_id search. [requires: tweet_id]
likers: Returns up to 100 users per page who liked the post. [requires: tweet_id]
reposters: Returns up to 100 users per page who reposted the post. [requires: tweet_id]
quotes: Returns up to 100 posts that quote the given post, with authors and metrics. [requires: tweet_id]
hide_reply: Hide a reply to one of your posts, or unhide it. [requires: tweet_id]
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": {
"action": "<action>"
},
"name": "x_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poll | No | Poll configuration: 2-4 options, duration 5-10080 minutes. | |
| text | No | Post text. Standard accounts are limited to 280 characters; X enforces it. | |
| posts | No | Thread posts in order (2-25). | |
| query | No | ||
| action | Yes | Action to perform. One of: create, create_thread, delete, get, get_many, search, count, thread, likers, reposters, quotes, hide_reply. | |
| hidden | No | ||
| archive | No | ||
| end_time | No | ISO 8601 timestamp. Exclusive upper bound. | |
| quote_of | No | Post id to quote. Note: X currently limits quote posting to Enterprise plans. | |
| reply_to | No | Post id to reply to. | |
| tweet_id | No | ||
| media_ids | No | Media ids from x_upload_media. | |
| tweet_ids | No | 1-100 post ids. | |
| next_token | No | Cursor from a previous response (meta.next_token). | |
| sort_order | No | Result ordering (recent search only). | recency |
| start_time | No | ISO 8601 timestamp (e.g. 2026-01-31T12:00:00Z). Inclusive lower bound. | |
| granularity | No | hour | |
| max_replies | No | Number of results to return (10-100). | |
| max_results | No | ||
| community_id | No | Community id to post into. | |
| made_with_ai | No | Disclose that the post contains AI-generated media. | |
| reply_settings | No | Who may reply: following, mentionedUsers, subscribers or verified. | |
| paid_partnership | No | Disclose a paid partnership. |