get_subreddit_posts
Fetch posts from any Reddit subreddit with sorting options like hot, new, or top. Specify the subreddit name to retrieve formatted results including title, author, score, comments, date, and link.
Instructions
📖 Get posts from a subreddit 🎯 What it does: Fetches posts from any Reddit subreddit with sorting options 📝 Required: subreddit name (e.g., 'programming', 'AskReddit', 'MachineLearning') ⚙️ Optional: sort ('hot', 'new', 'top') 💡 Examples: • Get hot posts: {"subreddit": "programming"} • Get new posts: {"subreddit": "AskReddit", "sort": "new"} • Get top posts: {"subreddit": "MachineLearning", "sort": "top"} 🔍 Output: Formatted list with title, author, score, comments, date, and Reddit link
Input Schema
Name | Required | Description | Default |
---|---|---|---|
sort | No | Sort order (default: hot) | hot |
subreddit | Yes | Subreddit name (e.g., 'programming', 'AskReddit') |