Edit a Slack message
edit_messageReplace the content of a Slack message the bot posted, identified by channel and timestamp. New text, blocks, and context fully overwrite the old content, so resend any details you want to keep.
Instructions
Replace the content of a message the bot posted, identified by channel and ts (as returned by send_message). Slack only lets a bot edit its own messages. The new text, context and blocks fully replace the old content, so resend any context you want to keep.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | Yes | Timestamp of the bot's message to edit | |
| text | Yes | New message content. When `blocks` is set, this is only the notification/fallback text | |
| blocks | No | Custom Slack Block Kit blocks (https://docs.slack.dev/reference/block-kit/blocks), e.g. header, section with fields, image, markdown, context, divider. Replaces the rendered `text`; `context` is still appended. Do not use interactive elements (buttons, menus): this server does not handle clicks. | |
| format | No | markdown: standard Markdown rendered by Slack. plain: sent as-is | markdown |
| channel | Yes | Channel ID, #channel-name, or user (ID, @handle, email) for a DM | |
| context | No | Small grey details shown under a divider at the bottom of the message, joined with ·. Example: [{label:"Jira", value:"VEC-123", url:"https://…"}, {label:"Comment", value:"#4521", url:"https://…"}] |