Reddit Search
glim_reddit_searchSearch Reddit posts. Each result comes with full post content and its top comments, so a single search usually answers the question without follow-up. Compact human-readable text by default; pass format='json' for full structured data. Use glim_reddit_get(ref) for a single post's complete comment tree. Page with cursor (response gives next_cursor when more exist). See docs://reddit-search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order. Keep 'relevance' (default) for question or topic queries - it ranks by how well posts match your query. 'top'/'hot' rank by score/recency and largely ignore the query text, so use them only to browse what's popular in a subreddit. | relevance |
| time | No | Time range | all |
| limit | No | Max posts (1-10), each with full content + top comments | |
| query | Yes | Search query (e.g. 'subreddit:programming machine learning') | |
| cursor | No | Pagination cursor from a prior response's next_cursor | |
| format | No | Output format. 'text' (default): compact human-readable view, fewer tokens. 'json': full structured data for machine parsing. | text |
| end_date | No | Only posts before this date (YYYY-MM-DD) | |
| start_date | No | Only posts on or after this date (YYYY-MM-DD) |