hermosodocs

edit_x_post

Edit a post on X destructive

Area: X / TWITTER · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool 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

ParameterTypeDescription
brandstringWHICH 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.
postIdrequiredstringthe 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.
textrequiredstringthe 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.
accountstringwhich 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.

All 728 Publishing & scheduling tools · tools.json