Usage #
// Import the typed helper
import { kickFromConversation } from "@hotglue/sdk/slack";
const result = await client.execute({
...kickFromConversation({
channel: string,
user: string,
}),
userId: "user_123",
});
// result is typed as KickFromConversationOutput
const result = await client.execute({
integration: "slack",
tool: "kick_from_conversation",
userId: "user_123",
input: {
channel: string,
user: 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 Kick from Conversation tool");
Required Permissions #
channels:manage
Input Schema #
channel
string
required
Channel ID
user
string
required
User ID to remove
Output Schema #
ok
bool
required
This tool calls: #
POST
https://slack.com/api/conversations.kick