Search Reddit Posts
reddit_search_postsSearch Reddit posts by query across all Reddit or within a specific subreddit to find relevant discussions and content.
Instructions
Search for posts across Reddit or within a specific subreddit.
Examples:
Search all of Reddit: { "query": "machine learning" }
Search within a subreddit: { "query": "best practices", "subreddit": "programming" }
Returns: { posts: [{ title, author, score, url, permalink, selftext, num_comments, created_utc, subreddit }], count, has_more }
Errors:
403: Subreddit is private or quarantined
404: Subreddit does not exist
429: Rate limited by Reddit API
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": {
"query": "<query>"
},
"name": "reddit_search_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of results (default: 25, max: 100) | |
| query | Yes | Search query | |
| subreddit | No | Restrict search to this subreddit (without r/ prefix) | |
| response_format | No | Response format | json |