# Edit Reddit comment

Automatically edit Reddit comment on reddit.com. Edit your own Reddit comment (at any depth) by its permalink, replacing its text entirely. Returns edited and commentId. Only works on your own comments. Runs only via the browser extension, not the hosted cloud browser.

- Site: reddit.com
- Address: `reduck/reddit.com/edit_comment`
- Updated: 2026-10-22 (v10)
- Author: Reduck AI (reduck)

## Run it

Ask an AI agent connected to Reduck over MCP (`https://mcp.reduck.ai/mcp`) to run `reduck/reddit.com/edit_comment`, or run it from a terminal:

```bash
npx @reduck-ai/cli@latest run --script reduck/reddit.com/edit_comment
```

## Input

- `text` (string, required): New comment body (replaces the existing text entirely)
- `permalink` (string, required): Comment permalink (full or path), e.g. /r/sub/comments/<postid>/comment/<commentid>/

## Output

- `text` (string, required)
- `edited` (boolean, required): False when the comment's text already matched exactly (idempotent no-op, no mutation)
- `commentId` (string, required)
- `account_used` (string, required): The real logged-in Reddit handle that performed the action, read from the page's own account drawer (not assumed from args)
- `already_present` (boolean, required): True when the comment's text was already exactly the requested text before this call
- `verified_on_page` (boolean, required): Whether the script reloaded the page afterward and confirmed the new text is actually visible there

## FAQ

### What does "Edit Reddit comment" do?

Edit your own Reddit comment (at any depth) by its permalink, replacing its text entirely. Returns edited and commentId. Only works on your own comments. Runs only via the browser extension, not the hosted cloud browser.

### How do I automatically edit Reddit comment on reddit.com?

Ask an AI agent connected to Reduck to run reduck/reddit.com/edit_comment, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/reddit.com/edit_comment

### Is there a reddit.com API to edit Reddit comment?

You do not need one. "Edit Reddit comment" drives the real reddit.com pages in a browser, so it works whether or not reddit.com offers an API for this.

### What information do I need to provide?

Required: permalink, text.

### What does it return?

It returns text, edited, commentId, account_used, already_present, verified_on_page.

### Do I need to be logged in to reddit.com?

Yes. It acts as you on reddit.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the reddit.com cookies saved by the Reduck extension.

### Does it change anything on reddit.com, or only read data?

It makes changes on reddit.com, like sending, posting, booking or buying something.

### How do I run it?

Ask an AI agent connected to Reduck to run reduck/reddit.com/edit_comment, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/reddit.com/edit_comment

### Who maintains it?

It is part of Reduck's official curated catalogue.

Source: https://reduck.ai/explore/scripts/reduck/reddit.com/edit_comment
