conversations_preview_message
Preview a Slack message as a draft in your own DM and get a preview_hash required to send those exact bytes with conversations_add_message.
Instructions
Post a DRAFT of a message to your own DM, exactly as it would render, and return its preview_hash. Sending it is conversations_add_message with the same channel_id, text, thread_ts and content_type plus preview_hash, which refuses anything but those exact bytes. Previews live until the server restarts.
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": {
"channel_id": "<channel_id>",
"text": "<text>"
},
"name": "conversations_preview_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| thread_ts | No | ||
| channel_id | Yes | ||
| content_type | No | text/markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |