search_posts
Search Reddit posts by keyword across a single subreddit or all of Reddit, with sorting by relevance, hot, top or new and time filtering to narrow results.
Instructions
Search Reddit posts by keyword across one subreddit or all of Reddit. Supports sorting by relevance, hot, top, new and time filtering.
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": "search_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order (default: relevance) | |
| after | No | Pagination cursor from a previous response | |
| limit | No | Number of results (1-100, default 25) | |
| query | Yes | Search query string | |
| subreddit | No | Subreddit to search in (default: 'all' for global search) | |
| time_filter | No | Time filter (default: all) |