Slack
28 actions for messaging, channels, reactions, search, and user management.
Messages
send_message
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | yes | Channel ID or name |
text | string | yes | Message text |
blocks | array | no | Block Kit blocks |
exec("slack.send_message", {
channel: "#engineering",
text: "Deploy v2.1 complete ✅"
})reply_thread
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | yes | Channel containing the thread |
thread_ts | string | yes | Timestamp of parent message |
text | string | yes | Reply text |
update_message
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
ts | string | yes |
text | string | yes |
blocks | array | no |
delete_message
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
ts | string | yes |
schedule_message
Schedule a message up to 120 days in the future.
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | yes | Channel to post in |
text | string | yes | Message text |
post_at | number | yes | Unix timestamp for delivery |
get_permalink
Get a permanent URL for a message.
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
message_ts | string | yes |
Reading
get_channel_history
Get recent messages from a channel.
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | yes | Channel ID |
limit | number | no | Max messages to return |
oldest | string | no | Start timestamp (Unix) |
latest | string | no | End timestamp (Unix) |
get_thread_replies
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | yes | Channel containing the thread |
ts | string | yes | Parent message timestamp |
limit | number | no | Max replies to return |
search_messages
Search messages with Slack query syntax.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | yes | Slack search query (supports in:#channel, from:@user, etc.) |
count | number | no | Max results |
sort | string | no | "score" or "timestamp" |
exec("slack.search_messages", {
query: "deploy failed in:#engineering",
sort: "timestamp"
})Reactions
add_reaction
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | yes | Channel |
timestamp | string | yes | Message timestamp |
name | string | yes | Emoji name (e.g. "thumbsup", "white_check_mark") |
remove_reaction
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
timestamp | string | yes |
name | string | yes |
get_reactions
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
timestamp | string | yes |
Channels
get_channel
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
list_channels
No parameters. Returns all public and private channels.
create_channel
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | Channel name |
is_private | boolean | no | Private channel? |
archive_channel
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
invite_to_channel
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | yes | Channel ID |
users | string | yes | Comma-separated user IDs |
kick_from_channel
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
user | string | yes |
list_channel_members
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
set_topic
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
topic | string | yes |
Direct Messages
open_conversation
Open a DM or group DM. Returns the channel ID for sending messages.
| Parameter | Type | Required | Description |
|---|---|---|---|
users | string | yes | Comma-separated user IDs |
Users
get_user_info
| Parameter | Type | Required |
|---|---|---|
user | string | yes |
list_users
No parameters. Returns all workspace users.
Pins
pin_message
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
timestamp | string | yes |
unpin_message
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |
timestamp | string | yes |
list_pins
| Parameter | Type | Required |
|---|---|---|
channel | string | yes |