Edit post
Tool ID: x_post_edit
Summary
Replaces the text of a post you own, when X still allows an edit. You confirm first. The tool checks eligibility and will not send the edit when the window is closed.
When to use it
- You spot a typo in a post from the last few minutes.
- You need the updated link id after an edit.
What you need
| Requirement | Required? |
|---|---|
| Metraclick connection | Yes |
| Tool enabled for your account | Yes |
| X account connected by an administrator | Yes |
| A post you own that is still editable | Yes |
Parameters
| Parameter | Required? | Description |
|---|---|---|
text |
Yes | The replacement text. |
post_id |
One of these | Numeric id of the current version. |
url |
One of these | The x.com or twitter.com status link. |
confirm |
Yes to edit | Must be true. |
What you get back
A new post id and URL. X keeps the public conversation, but later tools should use this new id. Also the list of ids in the edit history.
Example prompts
Edit my last X post so the time says 4pm, not 3pm. Confirm with me first.
Can this post still be edited? https://x.com/example/status/123
Tips
- Edits are allowed for 30 minutes and at most 5 times.
- Replies to someone else, polls, ads, and community posts cannot be edited.
- Deleting any version deletes the whole chain. See Delete post.
- To see
edits_remainingbefore you edit, use Get post.