# Hermoso: edit_x_post: Edit a post on X · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/edit_x_post/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / edit_x_post

# `edit_x_post`

Edit a post on X destructive

Area: X / TWITTER · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

EDIT the text of one of the connected account’s own posts on X. Three things about X’s edit model change how you must use this and none is guessable: (1) X REPLACES THE WHOLE TEXT — there is no partial patch, so pass the complete new post; (2) an edit MINTS A NEW POST ID, and the old id keeps resolving and keeps showing the OLD text, so always hand the user the NEW url afterwards or they will circulate a link to the version they just corrected; (3) X’s window is ONE HOUR from the ORIGINAL post and DOES NOT RESTART when a post is edited, and each post has a limited number of edits. Pass whichever id the user has — Hermoso reads X’s edit chain and aims at the newest id, which is the only one X accepts (an edit aimed at the id the user was originally given is refused by X once the post has been edited once). A published ARTICLE can never be edited whatever the subscription, and this says so rather than trying. Editing needs X Premium on the POSTING account; Hermoso attempts it and reports X’s own refusal rather than pre-refusing on a guess about the plan. Everything knowable for free — window closed, edits used up, post ineligible — is refused before anything is billed. Costs credits. Needs X connected.

## Parameters

Parameter Type Description

`brand` `string` WHICH PROFILE the post lives in, for THIS CALL ONLY: an id or exact name from list_brands, needed when it was published in a profile this connection is not pinned to. A name that matches no profile, or two, is REFUSED and nothing is done.

`postId` required `string` the numeric X post id — the last part of the post URL. Any id in the post’s edit chain works; Hermoso resolves the newest one.

`text` required `string` the FULL new text of the post. It replaces the old text entirely. Same length rule as a new post: 280 characters, or up to 25,000 on an X Premium account.

`account` `string` which connected account: its @handle or id from list_connector_accounts; needed only when several are connected

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/edit_x_post`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"edit_x_post","arguments":{"postId":"<string>","text":"<string>"}}}`
**CLI**

`hermoso call edit_x_post --json '{"postId":"<string>","text":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [post_x_article](https://hermoso.ai/docs/reference/publish/post_x_article/) Publish a long-form Article to X
- [delete_x_post](https://hermoso.ai/docs/reference/publish/delete_x_post/) Delete a post on X
- [post_to_x](https://hermoso.ai/docs/reference/publish/post_to_x/) Publish a post to X (Twitter)
- [x_post_metrics](https://hermoso.ai/docs/reference/publish/x_post_metrics/) Read performance of a post on X
- [x_post_insights](https://hermoso.ai/docs/reference/publish/x_post_insights/) Advertiser analytics for your own posts on X
- [x_post_insights_historical](https://hermoso.ai/docs/reference/publish/x_post_insights_historical/) Advertiser analytics for your own X posts, over any date range
- [x_mentions](https://hermoso.ai/docs/reference/publish/x_mentions/) Read who is mentioning you on X

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
