search
Search Reddit posts by keyword or within a subreddit and retrieve titles, scores, comments, authors, and permalinks sorted by relevance, hot, new, top, or comments.
Instructions
Search Reddit posts by keyword, optionally scoped to a subreddit. Returns post title, score, comment count, subreddit, author, and permalink. Sort by relevance, hot, new, top, or comments.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order: relevance | hot | new | top | comments | |
| time | No | Time filter: all | year | month | week | day | hour | |
| after | No | Pagination cursor from previous nextPageUrl (e.g. "t3_...") | |
| limit | No | Number of results to return (1–100) | |
| query | Yes | Search query string | |
| subreddit | No | Limit results to this subreddit (without r/ prefix) |