get_top_posts
Fetch top posts from any Reddit subreddit by specifying a time period and number of results to retrieve.
Instructions
Get top posts from a subreddit
Input Schema
Name | Required | Description | Default |
---|---|---|---|
limit | No | Number of posts to fetch | |
subreddit | Yes | Name of the subreddit | |
time_filter | No | Time period to filter posts (e.g. 'day', 'week', 'month', 'year', 'all') | week |
Input Schema (JSON Schema)
{
"properties": {
"limit": {
"default": 10,
"description": "Number of posts to fetch",
"type": "integer"
},
"subreddit": {
"description": "Name of the subreddit",
"type": "string"
},
"time_filter": {
"default": "week",
"description": "Time period to filter posts (e.g. 'day', 'week', 'month', 'year', 'all')",
"enum": [
"day",
"week",
"month",
"year",
"all"
],
"type": "string"
}
},
"required": [
"subreddit"
],
"type": "object"
}