Skip to main content
SlackTools enable an Agent to interact with the Slack API. 12 methods cover messaging, channels, file management, search, threads, and user lookup.

Prerequisites

Example

The following agent sends a message to a Slack channel, lists channels, and retrieves message history. The messaging, channel, and file tools are enabled by default, so SlackTools() needs no configuration.

Toolkit Params

When you do not pass instructions, SlackTools builds usage guidance from the enabled tools (when to reply in a thread, which search to use) and adds it to the agent’s system prompt automatically.

Toolkit Functions

search_messages supports Slack search modifiers: from:@user, in:#channel, has:link, before:2024-01-01, after:2024-01-01. Combine them to narrow results.
SlackTools also exposes download_file_bytes(file_id) for programmatic use. It returns raw bytes and is not registered as an agent tool.

Developer Resources

Examples

Tool configurations: all tools, a subset, and read-only.

Slack Interface

Streaming, sessions, file handling, and behavior details.

Source Code

View the SlackTools implementation on GitHub.