Usage #
// Import the typed helper
import { removeBookmark } from "@hotglue/sdk/slack";
const result = await client.execute({
...removeBookmark({
channel_id: string,
bookmark_id: string,
}),
userId: "user_123",
});
// result is typed as RemoveBookmarkOutput
const result = await client.execute({
integration: "slack",
tool: "remove_bookmark",
userId: "user_123",
input: {
channel_id: string,
bookmark_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 Remove Bookmark tool");
Required Permissions #
bookmarks:write
Input Schema #
channel_id
string
required
Channel ID
bookmark_id
string
required
Bookmark ID to remove
Output Schema #
ok
bool
required
This tool calls: #
POST
https://slack.com/api/bookmarks.remove