Communication
Slack CLI
Messages, channels, files and users via Slack Web API
✓ 18 tests passed
Install
$ pip install cli-anything-slack
About
Post messages, upload files, list channels, manage reactions and search messages across your Slack workspace. Uses the official Slack SDK for Python with full Bot token support.
Requirements
SLACK_BOT_TOKEN (xoxb-...)
Command Reference
| Command | Arguments | Description |
|---|---|---|
detect |
Verify Slack Bot token | |
schema |
Output full capability schema (no token needed) | |
channel list |
--limit N |
List all channels |
channel create |
NAME --private |
Create channel |
message send |
CHANNEL TEXT --thread-ts TS |
Send message |
message history |
CHANNEL --limit N |
Get message history |
message search |
QUERY --count N |
Search messages globally |
message react |
CHANNEL TS EMOJI |
React to message |
file upload |
FILEPATH --channel C --title T |
Upload file |
user list |
--limit N |
List workspace members |
user lookup |
EMAIL |
Find user by email |
Usage Examples
# Install
$ pip install cli-anything-slack
# Health check
$ slack-cli detect
# Get capabilities schema (Agent-ready, no token needed)
$ slack-cli schema
# Run with JSON output (for AI Agent integration)
$ slack-cli --json detect
# Example JSON response:
{"ts":"1710000000.000001","channel":"C0ABC123","status":"sent"}
Agent Integration
# Python — call from AI Agent
import subprocess, json
result = subprocess.run(
["slack-cli", "--json", "detect"],
capture_output=True, text=True
)
data = json.loads(result.stdout)
print(data)
# Discover all commands without credentials:
schema = subprocess.run(
["slack-cli", "schema"],
capture_output=True, text=True
)
capabilities = json.loads(schema.stdout)