tpmjs/packages/tools/official/slack
Thomas Davis cc69d98b6f feat: add Slack + Discord tool packages and fix 50 skipped sync packages
Add @tpmjs/tools-slack (10 tools) and @tpmjs/tools-discord (15 tools)
with full API coverage, typed outputs, and domain-validated blocks.

Add 7 missing business categories (finance, legal, hr, marketing, cx,
edu, sales) to TPMJS_CATEGORIES so 50 previously skipped packages
can sync to tpmjs.com.

Fix lefthook secrets hook to skip gracefully when git-secrets is not
installed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 20:41:51 +10:00
..
src feat: add Slack + Discord tool packages and fix 50 skipped sync packages 2026-02-09 20:41:51 +10:00
package.json feat: add Slack + Discord tool packages and fix 50 skipped sync packages 2026-02-09 20:41:51 +10:00
README.md feat: add Slack + Discord tool packages and fix 50 skipped sync packages 2026-02-09 20:41:51 +10:00
tsconfig.json feat: add Slack + Discord tool packages and fix 50 skipped sync packages 2026-02-09 20:41:51 +10:00
tsup.config.ts feat: add Slack + Discord tool packages and fix 50 skipped sync packages 2026-02-09 20:41:51 +10:00

@tpmjs/tools-slack

Slack API tools for AI agents. Send messages, manage channels, list users, search messages, upload files, and more.

Installation

npm install @tpmjs/tools-slack

Setup

Set the SLACK_BOT_TOKEN environment variable. Get your token from Slack API Apps.

Required bot scopes: chat:write, channels:read, channels:history, users:read, reactions:write, files:write, search:read.

Usage

import { sendMessage, listChannels } from '@tpmjs/tools-slack';

const result = await sendMessage.execute({ channel: '#general', text: 'Hello from AI!' });
const channels = await listChannels.execute({});

Tools

Tool Description
sendMessage Send a message to a channel or thread
listChannels List workspace channels by type
getChannel Get channel details
listUsers List workspace users
getUser Get user profile details
addReaction Add emoji reaction to a message
uploadFile Upload a text file or snippet
setChannelTopic Set a channel's topic
listMessages Get recent messages from a channel
searchMessages Search messages across the workspace

License

MIT