create_post
Create and publish a text or link post in a subreddit, with flair support and safe-mode protection to avoid rejection or spam detection.
Instructions
Create a new text or link post in a subreddit. Mutating and NOT idempotent — each call publishes a separate post. Requires REDDIT_USERNAME and REDDIT_PASSWORD; fails without them. Returns the new post's id and URL. Check get_subreddit_rules and get_post_flairs first, since many subreddits require a flair or reject certain content. WARNING: rapid posting or duplicate content may trigger Reddit's spam detection and account bans — enable REDDIT_SAFE_MODE=standard for rate limiting and duplicate detection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Post title (cannot be edited after creation). | |
| content | Yes | For a self post (is_self=true): the body text, Reddit markdown supported. For a link post (is_self=false): the destination URL. | |
| is_self | No | true = text/self post using `content` as the body (default); false = link post using `content` as the URL. | |
| flair_id | No | Link flair template id from get_post_flairs; many subreddits require one or the post is auto-removed. | |
| subreddit | Yes | Target subreddit, without the r/ prefix (e.g. 'test'). | |
| flair_text | No | Custom flair text, allowed only for flairs whose template is text-editable. |