Rename Conversation

Renames a conversation

Usage #

// Import the typed helper
import { renameConversation } from "@hotglue/sdk/slack";
const result = await client.execute({
...renameConversation({
channel: string,
name: string,
}),
userId: "user_123",
});
// result is typed as RenameConversationOutput
const result = await client.execute({
integration: "slack",
tool: "rename_conversation",
userId: "user_123",
input: {
channel: string,
name: 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 Rename Conversation tool");

Required Permissions #

channels:manage

Input Schema #

channel string required

Channel ID

name string required

New channel name

Output Schema #

ok bool required
channel object

This tool calls: #

POST https://slack.com/api/conversations.rename