search_posts
Retrieve public posts from a specific subreddit by keyword, with options to sort by relevance, hot, top, new, or comments and filter by time period.
Instructions
Search public posts inside one approved subreddit.
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>",
"subreddit": "<subreddit>"
},
"name": "search_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | relevance | |
| limit | No | ||
| query | Yes | ||
| subreddit | Yes | ||
| time_filter | No | year |