chat_unfurl
Replace default URL previews in Slack messages with custom attachments or Block Kit layouts. Supports optional user authentication for secure unfurls.
Instructions
Provide custom unfurl behavior for URLs in 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": {
"channel": "<channel>",
"ts": "<ts>",
"unfurls": "<unfurls>"
},
"name": "chat_unfurl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | Yes | Timestamp of the message containing the URLs (e.g. ``1700000000.000100``). | |
| channel | Yes | ID of the channel containing the message with URLs to unfurl (e.g. ``C0123``). | |
| unfurls | Yes | Map of URLs to their unfurl attachment or Block Kit objects (e.g. ``{"https://example.com": {...}}``). | |
| user_auth_url | No | URL to redirect the user to for authentication when ``user_auth_required`` is True. | |
| user_auth_blocks | No | Block Kit blocks shown to the user in an auth prompt when ``user_auth_required`` is True. | |
| user_auth_message | No | Plain-text message shown to the user in an auth prompt when ``user_auth_required`` is True. | |
| user_auth_required | No | Prompt the user to authenticate before unfurling the URL. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||