reddit-automation
通过Rube MCP(Composio)自动化Reddit任务:搜索子版块、创建帖子、管理评论以及浏览热门内容。始终优先使用工具搜索当前架构。
Reddit Automation via Rube MCP
Automate Reddit operations through Composio's Reddit toolkit via Rube MCP.
Prerequisites
RUBE_MANAGE_CONNECTIONS with toolkit redditRUBE_SEARCH_TOOLS first to get current tool schemasSetup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
RUBE_SEARCH_TOOLS respondsRUBE_MANAGE_CONNECTIONS with toolkit redditCore Workflows
1. Search Reddit
When to use: User wants to find posts across subreddits
Tool sequence:
REDDIT_SEARCH_ACROSS_SUBREDDITS - Search for posts matching a query [Required]Key parameters:
query: Search termssubreddit: Limit search to a specific subreddit (optional)sort: Sort results by 'relevance', 'hot', 'top', 'new', 'comments'time_filter: Time range ('hour', 'day', 'week', 'month', 'year', 'all')limit: Number of results to returnPitfalls:
time_filter parameter only works with certain sort options2. Create Posts
When to use: User wants to submit a new post to a subreddit
Tool sequence:
REDDIT_LIST_SUBREDDIT_POST_FLAIRS - Get available post flairs [Optional]REDDIT_CREATE_REDDIT_POST - Submit the post [Required]Key parameters:
subreddit: Target subreddit name (without 'r/' prefix)title: Post titletext: Post body text (for text posts)url: Link URL (for link posts)flair_id: Flair ID from the subreddit's flair listPitfalls:
3. Manage Comments
When to use: User wants to comment on posts or manage existing comments
Tool sequence:
REDDIT_RETRIEVE_POST_COMMENTS - Get comments on a post [Optional]REDDIT_POST_REDDIT_COMMENT - Add a comment to a post or reply to a comment [Required]REDDIT_EDIT_REDDIT_COMMENT_OR_POST - Edit an existing comment [Optional]REDDIT_DELETE_REDDIT_COMMENT - Delete a comment [Optional]Key parameters:
post_id: ID of the post (for retrieving or commenting on)parent_id: Full name of the parent (e.g., 't3_abc123' for post, 't1_xyz789' for comment)body: Comment text contentthing_id: Full name of the item to edit or deletePitfalls:
4. Browse Subreddit Content
When to use: User wants to view top or trending content from a subreddit
Tool sequence:
REDDIT_GET_R_TOP - Get top posts from a subreddit [Required]REDDIT_GET - Get posts from a subreddit endpoint [Alternative]REDDIT_RETRIEVE_REDDIT_POST - Get full details for a specific post [Optional]Key parameters:
subreddit: Subreddit nametime_filter: Time range for top posts ('hour', 'day', 'week', 'month', 'year', 'all')limit: Number of posts to retrievepost_id: Specific post ID for full detailsPitfalls:
5. Manage Posts
When to use: User wants to edit or delete their own posts
Tool sequence:
REDDIT_EDIT_REDDIT_COMMENT_OR_POST - Edit a post's text content [Optional]REDDIT_DELETE_REDDIT_POST - Delete a post [Optional]REDDIT_GET_USER_FLAIR - Get user's flair in a subreddit [Optional]Key parameters:
thing_id: Full name of the post (e.g., 't3_abc123')body: New text content (for editing)subreddit: Subreddit name (for flair)Pitfalls:
Common Patterns
Reddit Fullname Format
Prefixes:
t1_ = Comment (e.g., 't1_abc123')
t2_ = Account (e.g., 't2_xyz789')
t3_ = Post/Link (e.g., 't3_def456')
t4_ = Message
t5_ = SubredditUsage:
1. Retrieve a post to get its fullname (t3_XXXXX)
Use fullname as parent_id when commenting
Use fullname as thing_id when editing/deleting Pagination
limit for items per page (max 100)after tokenafter value in subsequent requests to get next pageFlair Resolution
1. Call REDDIT_LIST_SUBREDDIT_POST_FLAIRS with subreddit name
Find matching flair by text or category
Extract flair_id
Include flair_id when creating the post Known Pitfalls
Rate Limits:
Content Rules:
ID Formats:
Text Formatting:
text formatu/username, subreddits with r/subredditQuick Reference
| Task | Tool Slug | Key Params |
|---|---|---|
| Search Reddit | REDDIT_SEARCH_ACROSS_SUBREDDITS | query, subreddit, sort, time_filter |
| Create post | REDDIT_CREATE_REDDIT_POST | subreddit, title, text/url |
| Get post comments | REDDIT_RETRIEVE_POST_COMMENTS | post_id |
| Add comment | REDDIT_POST_REDDIT_COMMENT | parent_id, body |
| Edit comment/post | REDDIT_EDIT_REDDIT_COMMENT_OR_POST | thing_id, body |
| Delete comment | REDDIT_DELETE_REDDIT_COMMENT | thing_id |
| Delete post | REDDIT_DELETE_REDDIT_POST | thing_id |
| Get top posts | REDDIT_GET_R_TOP | subreddit, time_filter, limit |
| Browse subreddit | REDDIT_GET | subreddit |
| Get post details | REDDIT_RETRIEVE_REDDIT_POST | post_id |
| Get specific comment | REDDIT_RETRIEVE_SPECIFIC_COMMENT | comment_id |
| List post flairs | REDDIT_LIST_SUBREDDIT_POST_FLAIRS | subreddit |
| Get user flair | REDDIT_GET_USER_FLAIR | subreddit |