Leave Conversation

Leaves a conversation

Usage #

// Import the typed helper
import { leaveConversation } from "@hotglue/sdk/slack";
const result = await client.execute({
...leaveConversation({
channel: string,
}),
userId: "user_123",
});
// result is typed as LeaveConversationOutput
const result = await client.execute({
integration: "slack",
tool: "leave_conversation",
userId: "user_123",
input: {
channel: 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 Leave Conversation tool");

Required Permissions #

channels:manage

Input Schema #

channel string required

Channel ID to leave

Output Schema #

ok bool required

This tool calls: #

POST https://slack.com/api/conversations.leave