Search Reddit posts
reddit_search_postsSearch Reddit posts by phrase, across all of Reddit or within one subreddit, sorted by relevance, hot, top, new or comment count. Each result includes the title, author, subreddit, score, comment count and, when Reddit shows one, a passage matching the query. Read-only: returns public data and changes nothing. Costs 1 credit per request.
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>",
"count": "<count>"
},
"name": "reddit_search_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Result ordering. Defaults to "relevance". | |
| time | No | Restrict results to a recent window. Defaults to "all". | |
| count | Yes | Number of results to return (1–10). Defaults to 10. | |
| query | Yes | The text to search Reddit for, e.g. "openai", "best keyboard". | |
| cursor | No | The previous response's `nextCursor`, to fetch the next page. Omit it for the first page. | |
| cacheOnly | No | Return only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true. | |
| subreddit | No | Restrict the search to a single subreddit (name with or without the "r/" prefix). Only applies to post search. | |
| cacheMaxAgeHours | No | Accept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24. |