X (Twitter): Fetch a tweet with its reply thread
x_get_tweet_detailGet a tweet by its ID together with the first page of replies beneath it. Returns the text, author, timestamp and like, retweet, reply, quote, bookmark and view counts for the tweet and each reply. Load more replies with /x/get-tweet-replies. Read-only: returns public data and changes nothing. Costs 1 credit per request.
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": {
"tweetId": "<tweetId>"
},
"name": "x_get_tweet_detail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tweetId | Yes | Numeric ID of the focal tweet to expand, or the tweet link, e.g. "1234567890". | |
| cacheOnly | No | Return only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true. | |
| sortOrder | No | Reply ordering: "Relevance" for X's ranking (default), "Recency" for newest first, "Likes" for most liked first. | |
| cacheMaxAgeHours | No | Accept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24. |