Remove Pin

Removes a pinned item from a channel

Usage #

// Import the typed helper
import { removePin } from "@hotglue/sdk/slack";
const result = await client.execute({
...removePin({
channel: string,
timestamp: string,
}),
userId: "user_123",
});
// result is typed as RemovePinOutput
const result = await client.execute({
integration: "slack",
tool: "remove_pin",
userId: "user_123",
input: {
channel: string,
timestamp: 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 Pin tool");

Required Permissions #

pins:write

Input Schema #

channel string required

Channel ID

timestamp string required

Timestamp of the message to unpin

Output Schema #

ok bool required

This tool calls: #

POST https://slack.com/api/pins.remove