Skip to main content

Add reaction

Action ID: tools.slack.add_reaction Add a reaction to a message in a Slack channel. Reference: https://api.slack.com/methods/reactions.add

Input fields

channel
string
required
ID of the channel to add the reaction to.
name
string
required
Name of the reaction to add.
timestamp
string
required
Timestamp of the message to add the reaction to.

Archive channel

Action ID: tools.slack.archive_channel Archive a Slack channel. Reference: https://api.slack.com/methods/conversations.archive

Input fields

channel
string
required
ID of the channel to archive.

Create channel

Action ID: tools.slack.create_channel Create a new Slack channel. Reference: https://api.slack.com/methods/conversations.create

Input fields

name
string
required
Name of the channel to create.
is_private
boolean
Whether the channel is private.Default: false.

Delete message

Action ID: tools.slack.delete_message Delete a message from a Slack channel. Reference: https://api.slack.com/methods/chat.delete

Input fields

channel
string
required
ID of the channel to delete the message from.
ts
string
required
Timestamp of the message to delete.

Get reactions

Action ID: tools.slack.get_reactions Get reactions to a message. Reference: https://api.slack.com/methods/reactions.get

Input fields

channel
string
required
The channel to get reactions from.
timestamp
string
required
The timestamp of the message to get reactions from.

Get user profile

Action ID: tools.slack.get_profile Get a user’s profile. Reference: https://api.slack.com/methods/users.profile.get

Input fields

user
string
required
ID of the user to get the profile of.

Invite members to channel

Action ID: tools.slack.invite_members Invite members to a Slack channel. Reference: https://api.slack.com/methods/conversations.invite

Input fields

channel
string
required
ID of the channel to invite members to.
users
array[string]
required
List of user IDs to invite to the channel.

Kick member

Action ID: tools.slack.kick_member Kick a member from a Slack channel. Reference: https://api.slack.com/methods/conversations.kick

Input fields

channel
string
required
ID of the channel to kick members from.
user
string
required
ID of the user to kick from the channel.

List channels

Action ID: tools.slack.list_channels List all channels. Reference: https://api.slack.com/methods/conversations.list

Input fields

exclude_archived
boolean
Whether to exclude archived channels from the list.Default: false.
limit
integer
Maximum number of channels to return.Default: 100.
types
array[string]
Types of channels to return.Default: [ "public_channel", "private_channel" ].

List conversation replies

Action ID: tools.slack.list_replies List replies to a conversation in a Slack channel. Reference: https://api.slack.com/methods/conversations.replies

Input fields

channel
string
required
ID of the channel to list replies from.
ts
string
required
Timestamp of the thread’s parent message or message in the thread to list replies from. Also known as thread_ts in some Slack responses.

List members

Action ID: tools.slack.list_members List members of a Slack channel. Reference: https://api.slack.com/methods/conversations.members

Input fields

channel
string
required
ID of the channel to list members of.
limit
integer
Maximum number of members to return.Default: 100.

List messages

Action ID: tools.slack.list_messages List messages from a Slack channel. Reference: https://api.slack.com/methods/conversations.history

Input fields

channel
string
required
ID of the channel to list messages from.
latest
string | null
Unix timestamp of the latest message to return.Default: null.
limit
integer
Maximum number of messages to return.Default: 100.
oldest
string | null
Unix timestamp of the oldest message to return.Default: null.

List users

Action ID: tools.slack.list_users List users in a Slack workspace. Reference: https://api.slack.com/methods/users.list

Input fields

include_locale
boolean
Whether to include the locale in the response.Default: false.
limit
integer
The maximum number of users to return.Default: 100.

Lookup many users by email

Action ID: tools.slack.lookup_users_by_email Lookup users by emails. Returns a list of users found and a list of users not found. Reference: https://api.slack.com/methods/users.lookupByEmail

Secrets

Required secrets:
  • slack: required values SLACK_BOT_TOKEN.

Input fields

emails
array[string]
required
List of user emails.

Lookup user by email

Action ID: tools.slack.lookup_user_by_email Get a Slack user by email. Reference: https://api.slack.com/methods/users.lookupByEmail

Input fields

email
string
required
Email of an existing user.

Open view

Action ID: tools.slack.open_view Open a view. Used to create a pop up modal. Reference: https://api.slack.com/methods/views.open

Input fields

trigger_id
string
required
Trigger ID from a Slack interaction payload. See: https://docs.slack.dev/reference/interaction-payloads/block_actions-payload
view
object
required
View payload for the modal to open. See: https://docs.slack.dev/reference/views/modal-views

Post message

Action ID: tools.slack.post_message Post a message to a Slack channel. Reference: https://api.slack.com/methods/chat.postMessage

Input fields

channel
string
required
The channel to post the message to.
blocks
array[object] | null
List of JSON-based blocks.Default: null.
markdown_text
string | null
The text to post to Slack, in Markdown format.Default: null.
text
string | null
The message to post to Slack.Default: null.
thread_ts
string | null
The timestamp of the thread to reply to.Default: null.
Whether to unfurl links in the message.Default: true.
unfurl_media
boolean
Whether to unfurl media in the message.Default: false.

Remove reaction

Action ID: tools.slack.remove_reaction Remove a reaction from a message in a Slack channel. Reference: https://api.slack.com/methods/reactions.remove

Input fields

channel
string
required
ID of the channel to remove the reaction from.
name
string
required
Name of the reaction to remove.
timestamp
string
required
Timestamp of the message to remove the reaction from.

Revoke sessions

Action ID: tools.slack.revoke_sessions Revoke all sessions on all devices for a Slack user. Reference: https://api.slack.com/methods/admin.users.session.reset

Input fields

user_id
string
required
ID of an existing user.

Search messages

Action ID: tools.slack.search_messages Search for messages matching a query in a Slack workspace. Reference: https://api.slack.com/methods/search.messages

Secrets

Required secrets:
  • slack_oauth: OAuth token SLACK_USER_TOKEN.

Input fields

query
string
required
Search query. To search within a channel / specific user, add in:channel_name / from:<@user_id> to the query.
count
integer
Number of messages to return.Default: 20.
cursor
string | null
For the first call send ’*’, for subsequent calls send the value of next_cursor from the previous call.Default: null.
sort
string
Sort by score or timestamp.Default: "score".Allowed values: score, timestamp.

Set channel description

Action ID: tools.slack.set_channel_description Set the description of a Slack channel. Reference: https://api.slack.com/methods/conversations.setPurpose

Input fields

channel
string
required
The ID of the channel to set the description for.
description
string
required
The description to set for the channel.

Set channel topic

Action ID: tools.slack.set_channel_topic Set the topic of a Slack channel. Reference: https://api.slack.com/methods/conversations.setTopic

Input fields

channel
string
required
The ID of the channel to set the topic for.
topic
string
required
The topic to set for the channel.

Update message

Action ID: tools.slack.update_message Update a message in a Slack channel. Reference: https://api.slack.com/methods/chat.update

Input fields

channel
string
required
ID of the channel to update the message in.
ts
string
required
Timestamp of the message to update.
blocks
array[object] | null
List of JSON-based blocks.Default: null.
markdown_text
string | null
The text to update the message with, in Markdown format.Default: null.
text
string | null
New text for the message.Default: null.

Update view

Action ID: tools.slack.update_view Update a view. Used to update a pop up modal. Reference: https://api.slack.com/methods/views.update

Input fields

view
object
required
Updated view payload for the modal. See: https://docs.slack.dev/reference/views/modal-views
view_id
string
required
ID of the view to update.