Read and respond to Slack messages as the authenticated user. Supports: channels, message history, threads, search, send, reply, DMs. Use when the user wants to check Slack, read messages, or respond to conversations.
Read and respond to Slack messages using slack-api — a shell wrapper around the Slack Web API using your personal user token.
Verify the tool works:
slack-api channels public_channel
If this fails with a token error, follow the setup in README.md.
| Command | Purpose |
|---|---|
slack-api channels | List all channels, DMs, groups |
slack-api channels public_channel | List only public channels |
slack-api history <channel_id> [limit] | Read recent messages (default: 20) |
slack-api thread <channel_id> <ts>| Read thread replies |
slack-api search "<query>" [count] | Search messages workspace-wide |
slack-api send <channel_id> "<text>" | Send a message |
slack-api reply <channel_id> <ts> "<text>" | Reply in a thread |
slack-api users | List workspace members |
slack-api userinfo <user_id> | Get a user's profile |
slack-api dm-open <user_id> | Open a DM channel with someone |
slack-api channelsslack-api history <channel_id>reply_count > 0, read the thread: slack-api thread <channel_id> <ts>slack-api userinfo <user_id>slack-api send <channel_id> "<text>" or slack-api reply <channel_id> <ts> "<text>"slack-api search "deployment issue" 5
Returns matches with channel, user, text, and permalink.
All commands return JSON. Message timestamps (ts) serve as unique message IDs — use them for threading and replies.