Home / Servers / Slack API / chat_post_ephemeral
Sends an ephemeral message to a user in a channel.
An MCP tool from the Slack API server, hosted on mcp.hjlabs.in.
Sends an ephemeral message to a user in a channel. [POST /chat.postEphemeral]
Name on the gateway: slack_api__chat_post_ephemeral · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
as_user | boolean | Pass true to post the message as the authed user. Defaults to true if the… |
attachments | string | A JSON-based array of structured attachments, presented as a URL-encoded string. |
blocks | string | A JSON-based array of structured blocks, presented as a URL-encoded string. |
channel required | string | Channel, private group, or IM channel to send message to. Can be an encoded… |
icon_emoji | string | Emoji to use as the icon for this message. Overrides icon_url. Must be used in… |
icon_url | string | URL to an image to use as the icon for this message. Must be used in… |
link_names | boolean | Find and link channel names and usernames. |
parse | string | Change how messages are treated. Defaults to none. See below. |
text | string | How this field works and whether it is required depends on other fields you… |
thread_ts | string | Provide another message's ts value to post this message in a thread. Avoid… |
user required | string | id of the user who will receive the ephemeral message. The user should be in… |
username | string | Set your bot's user name. Must be used in conjunction with as_user set to… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "slack_api__chat_post_ephemeral",
"arguments": {
"channel": "…",
"user": "…"
}
}Or connect the Slack API server directly, which lists 174 tools including this one:
claude mcp add --transport http hj-slack-api https://mcp.hjlabs.in/mcp/slack-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the sends an ephemeral message to a user in a channel. tool with as_user set to ….
More from Slack API
- Approve an app for installation on a workspace.
- List approved apps for an org or workspace.
- List app requests for a team/workspace.
- Restrict an app for installation on a workspace.
- List restricted apps for an org or workspace.
- Archive a public or private channel.
- Convert a public channel to a private channel.
- Create a public or private channel-based conversation.
- All 174