reddit_list_posts
Fetch Reddit posts from a subreddit or front page with sorting, time filters, and pagination; returns id, title, author, score, comments, and permalink.
Instructions
List posts from a subreddit, or from the site-wide front page when subreddit is omitted. Returns each post's id, title, author, score, comment count and permalink — the body text or link, but never the comments. Use reddit_get_post for one thread's discussion; fetching 25 posts' comment trees is orders of magnitude more text than this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Listing sort. `top` and `controversial` also read `time`. | hot |
| time | No | Time window, used only by the `top` and `controversial` sorts. Ignored otherwise. | day |
| after | No | Pagination cursor: pass the `after` value from the previous response to get the next page. Reddit paginates by fullname, not by offset, so there is no page number. | |
| limit | No | How many items to return (1-100). Defaults to 25; Reddit's hard cap is 100. | |
| subreddit | No | Subreddit name without the `r/` prefix, e.g. "rust". |