remove_reaction
Eliminate a reaction emoji from a Slack message by specifying the channel ID, message timestamp, and emoji name.
Instructions
Remove a reaction emoji from a message.
Args: channel: Channel ID where the message exists timestamp: Timestamp of the message emoji_name: Name of the emoji (without colons)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | ||
| emoji_name | Yes | ||
| timestamp | Yes |
Implementation Reference
- slack_mcp/server.py:428-444 (handler)The primary handler function for the 'remove_reaction' MCP tool. It creates a SlackClient instance, calls the client's remove_reaction method with the provided parameters, and returns the JSON-serialized result or error.@mcp.tool() async def remove_reaction(channel: str, timestamp: str, emoji_name: str) -> str: """ Remove a reaction emoji from a message. Args: channel: Channel ID where the message exists timestamp: Timestamp of the message emoji_name: Name of the emoji (without colons) """ try: client = SlackClient() result = await client.remove_reaction(channel, timestamp, emoji_name) return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
- slack_mcp/server.py:182-185 (helper)Helper method in the SlackClient class that constructs the request data and calls the Slack API's reactions.remove endpoint to remove the specified reaction from a message.async def remove_reaction(self, channel: str, timestamp: str, name: str) -> Dict[str, Any]: """Remove a reaction from a message.""" data = {"channel": channel, "timestamp": timestamp, "name": name} return await self._make_request("POST", "reactions.remove", json_data=data)
- slack_mcp/server.py:428-428 (registration)The @mcp.tool() decorator registers the remove_reaction function as an MCP tool.@mcp.tool()
- slack_mcp/server.py:430-437 (schema)The docstring provides the input schema documentation for the tool, describing parameters channel, timestamp, and emoji_name.""" Remove a reaction emoji from a message. Args: channel: Channel ID where the message exists timestamp: Timestamp of the message emoji_name: Name of the emoji (without colons) """