search_posts
Find Reddit posts matching a query in specified subreddits, with optional sorting and comment limits, to gather Q&A content for Notion.
Instructions
Search for posts in specified subreddits.
Args:
subreddits (str): Subreddit name(s) separated by '+' (e.g., "redditdev+learnpython")
query (str): Search query
limit (int): Number of posts to retrieve (default: 5)
comment_limit (int): Number of comments to retrieve for each post (default: 5)
sort (str): One of: "relevance", "hot", "top", "new", "comments" (default: "relevance")
Returns:
List[Dict[str, Any]]: List of dictionaries containing post information
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": {
"subreddits": "<subreddits>",
"query": "<query>"
},
"name": "search_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | relevance | |
| limit | No | ||
| query | Yes | ||
| subreddits | Yes | ||
| comment_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |