Get Reactions

Gets reactions for a single message

Usage #

// Import the typed helper
import { getReactions } from "@hotglue/sdk/slack";
const result = await client.execute({
...getReactions({
channel: string,
timestamp: string,
full: bool,
}),
userId: "user_123",
});
// result is typed as GetReactionsOutput
const result = await client.execute({
integration: "slack",
tool: "get_reactions",
userId: "user_123",
input: {
channel: string,
timestamp: string,
full: bool,
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["slack"],
userId: "user_123",
}),
});
await agent.generate("run the Get Reactions tool");

Required Permissions #

reactions:read

Input Schema #

channel string required

Channel where the message is located

timestamp string required

Timestamp of the message

full bool

Get full reaction details

default: false

Output Schema #

ok bool required
message object

This tool calls: #

GET https://slack.com/api/reactions.get