unarchive_channel
Restore archived Slack channels to active status for continued team communication and collaboration.
Instructions
Unarchive a Slack channel.
Args: channel: Channel ID to unarchive
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes |
Implementation Reference
- slack_mcp/server.py:490-503 (handler)MCP tool handler for unarchive_channel. Decorated with @mcp.tool(), creates SlackClient instance and calls its unarchive_channel method to unarchive the specified channel, returning JSON result.@mcp.tool() async def unarchive_channel(channel: str) -> str: """ Unarchive a Slack channel. Args: channel: Channel ID to unarchive """ try: client = SlackClient() result = await client.unarchive_channel(channel) return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
- slack_mcp/server.py:201-204 (helper)SlackClient helper method that performs the Slack API call to unarchive the channel using conversations.unarchive endpoint.async def unarchive_channel(self, channel: str) -> Dict[str, Any]: """Unarchive a channel.""" data = {"channel": channel} return await self._make_request("POST", "conversations.unarchive", json_data=data)