Skip to main content

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

Read the Slack token from the environment, never hard-code it.
Grant only the channel and message scopes the task requires.
Slack returns HTTP 429 under load. Retry with backoff so the agent stays responsive.

Discord

Discord messaging

Telegram

Telegram bot

Email

Email notifications