Get Subreddit Posts
reddit_get_subreddit_postsFetch posts from a specified subreddit sorted by hot, new, top, or rising, with configurable limits and JSON or Markdown output.
Instructions
Get posts from a subreddit sorted by hot, new, top, or rising.
Examples:
Hot posts: { "subreddit": "programming" }
Top posts: { "subreddit": "science", "sort": "top", "limit": 10 }
Returns: { posts: [{ title, author, score, url, permalink, selftext, num_comments, created_utc, subreddit }], count, subreddit, sort, has_more }
Errors:
403: Subreddit is private or quarantined
404: Subreddit does not exist
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"subreddit": "<subreddit>"
},
"name": "reddit_get_subreddit_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort method | hot |
| limit | No | Number of posts (default: 25, max: 100) | |
| subreddit | Yes | Subreddit name (without r/ prefix) | |
| response_format | No | Response format | json |