Edit a chat message
chat_editEdit your own sent chat message within 15 minutes by replacing its text; mentions are recalculated from the new content and the updated message is returned.
Instructions
Replaces the text of a message you sent yourself, within 15 minutes of sending; the message is then marked as edited and its mentions are recalculated from the new text. Other members' messages, deleted messages and older messages give 403 edit_not_allowed, an unknown id gives message_not_found, and a message deleted in the meantime gives 409 message_deleted. To post a new message use chat_send, to remove one use chat_delete. Returns the updated message.
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>",
"body": "<body>"
},
"name": "chat_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of your own message to edit, from chat_messages or chat_send. | |
| body | Yes | New message text that fully replaces the old one, trimmed, up to 4000 characters. | |
| wgCode | No | Share code of the flat (code from wg_list). Leave it out when the account belongs to one flat. |