Usage #
// Import the typed helper
import { getConversation } from "@hotglue/sdk/slack";
const result = await client.execute({
...getConversation({
channel: string,
include_num_members: bool,
}),
userId: "user_123",
});
// result is typed as GetConversationOutput
const result = await client.execute({
integration: "slack",
tool: "get_conversation",
userId: "user_123",
input: {
channel: string,
include_num_members: 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 Conversation Info tool");
Required Permissions #
channels:read
Input Schema #
channel
string
required
Channel ID to get info for
include_num_members
bool
Include the number of members in the channel
default:
false
Output Schema #
ok
bool
required
channel
object
This tool calls: #
GET
https://slack.com/api/conversations.info