Edit Message
edit_messageEdit the text and optional attachments of a previously sent bot message. Uses the message ID to update content or replace inline keyboard buttons.
Instructions
Edit the text of an existing message sent by the bot. Optionally update attachments (inline keyboard buttons). Requires the message_id.
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": {
"message_id": "<message_id>",
"text": "<text>"
},
"name": "edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | The ID of the message to edit (from send_message or get_messages) | |
| text | Yes | New message text | |
| format | No | Text formatting for new text | |
| attachments | No | Optional new attachments (replaces existing) |