Overview
Slack tool allows you to send messages, read channels, and interact with Slack workspaces. The user asks to post or read messages; the agent calls Slack and returns the outcome.Installation
Environment Variables
Quick Start
1
Simple Usage
2
With Configuration
Use the same tool with an agent — see Usage with Agent below, or pass env vars and options from the sections above.
Usage with Agent
Available Methods
send_message(channel, text)
Send a message to a channel.get_channels()
List available channels.get_history(channel, limit=10)
Get channel message history.Common Errors
How It Works
Best Practices
Store the bot token securely
Store the bot token securely
Read the Slack token from the environment, never hard-code it.
Scope bot permissions
Scope bot permissions
Grant only the channel and message scopes the task requires.
Handle rate limits
Handle rate limits
Slack returns HTTP 429 under load. Retry with backoff so the agent stays responsive.
Related Tools
Discord
Discord messaging
Telegram
Telegram bot
Email notifications

