get_tweet_replies
Fetch replies to a tweet by ID or URL. Returns a paginated list of comments with author, text, timestamps, and engagement metrics. Use the next_cursor to retrieve additional pages.
Instructions
Fetch replies (comments) to a tweet (issue #94).
Uses X's TweetDetail GraphQL endpoint via vendored twikit's
Client.get_tweet_by_id, which populates tweet.replies as a
paginated Result[Tweet]. One page per call; pass the returned
next_cursor to fetch more.
Args:
tweet_id: The tweet ID (numeric string) or full URL.
cursor: Pagination cursor from a previous response's
next_cursor; omit for the first page.
Returns: JSON with tweet_id, replies (compact list — id/author/text/ created_at/likes/retweets), next_cursor, count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | ||
| tweet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |