Edit sent fmsg message
edit_messageEdit the body of a message you sent to fix typos, rephrase text, or revert to the original. Provide the complete new body; only your own sent messages and bodies can be changed.
Instructions
Change the body of a message you sent, for example to fix a typo or rephrase it, or revert it to what you first sent. Give the complete new body, not a diff. Participants whose client supports edits see the new text marked as edited; the original stays stored and visible to them, so this does not retract anything. Only your own sent messages can be edited, and only the body: not the topic, recipients or attachments. Fails on drafts (change those before sending) and terminal messages.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"text": "<text>"
},
"name": "edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | fmsg message id | |
| text | Yes | the complete new body; null reverts to the original |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| time | Yes | ||
| changed | Yes | false when the body already read that way and nothing was sent | |
| edit_id | Yes | the edit now in force; null when the message has none | |
| reverted | Yes |