Usage #
// Import the typed helper
import { removeReaction } from "@hotglue/sdk/slack";
const result = await client.execute({
...removeReaction({
channel: string,
timestamp: string,
name: string,
}),
userId: "user_123",
});
// result is typed as RemoveReactionOutput
const result = await client.execute({
integration: "slack",
tool: "remove_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 Remove Reaction tool");
Required Permissions #
reactions:write
Input Schema #
channel
string
required
Channel where the message is located
timestamp
string
required
Timestamp of the message
name
string
required
Emoji name to remove
Output Schema #
ok
bool
required
This tool calls: #
POST
https://slack.com/api/reactions.remove