edit_x_post
Edit a post on X destructive
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. |
postIdrequired | 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. |
textrequired | 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.
Related tools
post_x_articlePublish a long-form Article to Xdelete_x_postDelete a post on Xpost_to_xPublish a post to X (Twitter)x_post_metricsRead performance of a post on Xx_post_insightsAdvertiser analytics for your own posts on Xx_post_insights_historicalAdvertiser analytics for your own X posts, over any date rangex_mentionsRead who is mentioning you on X