get_article
Fetch an X article by rest_id or URL, returning content in preview, plain text, or full GraphQL format with media and metadata.
Instructions
Fetch an X Article (long-form post) by rest_id or URL.
Two-hop reader flow (issue #10):
ArticleRedirectScreenQueryresolves the article rest_id to the underlying tweet rest_id.TweetResultByRestId(twikit's existing helper) fetches the tweet with article fieldToggles enabled. The body lives attweet.article.article_results.result.
Requires authentication via cookies — same as every other authenticated tool here. No env-var setup.
Args: article_id: Article rest_id (numeric string) or full /i/article/ URL. format: Output shape, one of: - "preview" (~1 KB) — rest_id, title, preview_text, cover_image - "plain" (~20 KB, default) — above + plain_text + media URL list + lifecycle_state. The LLM-friendly shape. - "full" (~150 KB+) — raw GraphQL payload including the heavy content_state rich-block tree. Use only when you need it (rich-content rendering, archiving, structure analysis).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| article_id | Yes | ||
| format | No | plain |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |