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

NameTypeDescription
as_userbooleanPass true to post the message as the authed user. Defaults to true if the…
attachmentsstringA JSON-based array of structured attachments, presented as a URL-encoded string.
blocksstringA JSON-based array of structured blocks, presented as a URL-encoded string.
channel requiredstringChannel, private group, or IM channel to send message to. Can be an encoded…
icon_emojistringEmoji to use as the icon for this message. Overrides icon_url. Must be used in…
icon_urlstringURL to an image to use as the icon for this message. Must be used in…
link_namesbooleanFind and link channel names and usernames.
parsestringChange how messages are treated. Defaults to none. See below.
textstringHow this field works and whether it is required depends on other fields you…
thread_tsstringProvide another message's ts value to post this message in a thread. Avoid…
user requiredstringid of the user who will receive the ephemeral message. The user should be in…
usernamestringSet 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:

call_tool arguments
{
  "name": "slack_api__chat_post_ephemeral",
  "arguments": {
    "channel": "…",
    "user": "…"
  }
}

Or connect the Slack API server directly, which lists 174 tools including this one:

Run in your terminal
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