Usage #
// Import the typed helper
import { listPins } from "@hotglue/sdk/slack";
const result = await client.execute({
...listPins({
channel: string,
}),
userId: "user_123",
});
// result is typed as ListPinsOutput
const result = await client.execute({
integration: "slack",
tool: "list_pins",
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 List Pins tool");
Required Permissions #
pins:read
Input Schema #
channel
string
required
Channel ID
Output Schema #
ok
bool
required
items
object[]
This tool calls: #
GET
https://slack.com/api/pins.list