Usage #
// Import the typed helper
import { addReaction } from "@hotglue/sdk/slack";
const result = await client.execute({
...addReaction({
channel: string,
timestamp: string,
name: string,
}),
userId: "user_123",
});
// result is typed as AddReactionOutput
const result = await client.execute({
integration: "slack",
tool: "add_reaction",
userId: "user_123",
input: {
channel: string,
timestamp: string,
name: string,
},
});
// 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 Add Reaction tool");
Required Permissions #
reactions:write
Input Schema #
channel
string
required
Channel where the message is located
timestamp
string
required
Timestamp of the message to react to
name
string
required
Emoji name without colons (e.g., thumbsup, heart)
Output Schema #
ok
bool
required
This tool calls: #
POST
https://slack.com/api/reactions.add