Add Pin

Pins a message to a channel

Usage #

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

Required Permissions #

pins:write

Input Schema #

channel string required

Channel ID

timestamp string required

Timestamp of the message to pin

Output Schema #

ok bool required

This tool calls: #

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