reddit_search_subreddit
Search posts within a chosen subreddit using keywords and return matching Reddit results; set result limit and sort by relevance, hot, top, new, or comments.
Instructions
Search within a specific subreddit.
Args: subreddit: Subreddit name without r/ prefix (e.g., 'Python', 'MachineLearning') query: Search keywords limit: Maximum number of results to return (default: 25, max: 100) sort: Sort order for results (relevance, hot, top, new, comments)
Returns: An object with a 'results' array.
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>",
"query": "<query>"
},
"name": "reddit_search_subreddit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | ||
| limit | No | ||
| query | Yes | ||
| subreddit | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes |