Usage #
// Import the typed helper
import { listConversationMembers } from "@hotglue/sdk/slack";
const result = await client.execute({
...listConversationMembers({
channel: string,
limit: int,
cursor: string,
}),
userId: "user_123",
});
// result is typed as ListConversationMembersOutput
const result = await client.execute({
integration: "slack",
tool: "list_conversation_members",
userId: "user_123",
input: {
channel: string,
limit: int,
cursor: 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 List Conversation Members tool");
Required Permissions #
channels:read
Input Schema #
channel
string
required
Channel ID
limit
int
Maximum number of members to return
default:
100
cursor
string
Pagination cursor
Output Schema #
ok
bool
required
members
string[]
response_metadata
object
This tool calls: #
GET
https://slack.com/api/conversations.members