search_posts
Search for Reddit posts using keywords, filter by subreddit, sort by relevance or time, and retrieve specific results to find relevant discussions and content.
Instructions
Search for Reddit posts
Input Schema
Name | Required | Description | Default |
---|---|---|---|
limit | No | Number of results to retrieve (1-100) | |
query | Yes | Search query | |
sort | No | Sort order for search results | relevance |
subreddit | No | Optional: restrict search to specific subreddit | |
time | No | Time period to filter results (works best with sort=top) |
Input Schema (JSON Schema)
{
"properties": {
"limit": {
"default": 25,
"description": "Number of results to retrieve (1-100)",
"maximum": 100,
"minimum": 1,
"type": "number"
},
"query": {
"description": "Search query",
"type": "string"
},
"sort": {
"default": "relevance",
"description": "Sort order for search results",
"enum": [
"relevance",
"hot",
"top",
"new",
"comments"
],
"type": "string"
},
"subreddit": {
"description": "Optional: restrict search to specific subreddit",
"type": "string"
},
"time": {
"description": "Time period to filter results (works best with sort=top)",
"enum": [
"hour",
"day",
"week",
"month",
"year",
"all"
],
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
}