List Bookmarks

Lists bookmarks in a channel

Usage #

// Import the typed helper
import { listBookmarks } from "@hotglue/sdk/slack";
const result = await client.execute({
...listBookmarks({
channel_id: string,
}),
userId: "user_123",
});
// result is typed as ListBookmarksOutput
const result = await client.execute({
integration: "slack",
tool: "list_bookmarks",
userId: "user_123",
input: {
channel_id: 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 Bookmarks tool");

Required Permissions #

bookmarks:read

Input Schema #

channel_id string required

Channel ID

Output Schema #

ok bool required
bookmarks object[]

This tool calls: #

GET https://slack.com/api/bookmarks.list