Twitter Search
glim_twitter_searchSearch Twitter/X. Returns a compact human-readable list by default; pass format='json' for full structured data. Use glim_twitter_get(ref) for full thread context. Use docs://search-operators for reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort by relevance or recency: "top" (most engaged tweets matching the query - best for "what's the conversation about X") or "latest" (newest first - best for monitoring/recency). Default: "top". | |
| query | Yes | Search query with operators (e.g. 'from:elonmusk AI min_faves:100 within_time:7d') | |
| cursor | No | Pagination cursor from previous search. Ranking is strongest on page 1 - paged results under sort:'top' trend toward recency (upstream behavior). | |
| format | No | Output format. 'text' (default): compact human-readable view, fewer tokens. 'json': full structured data for machine parsing. | text |
| end_date | No | Only tweets before this time. YYYY-MM-DD (inclusive through end of day UTC) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z) | |
| start_date | No | Only tweets on or after this time. YYYY-MM-DD (UTC midnight) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z) | |
| expand_urls | No | When true, auto-crawl entity URLs and attach crawled_content to tweets. Off by default: responses can grow by up to 4KB per expanded URL. Use glim_web_fetch(url) for targeted crawls instead. |