Usage #
// Import the typed helper
import { updateMessage } from "@hotglue/sdk/slack";
const result = await client.execute({
...updateMessage({
channel: string,
ts: string,
text: string,
// ...
}),
userId: "user_123",
});
// result is typed as UpdateMessageOutput
const result = await client.execute({
integration: "slack",
tool: "update_message",
userId: "user_123",
input: {
channel: string,
ts: string,
text: 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 Update Message tool");
Required Permissions #
chat:write
Input Schema #
channel
string
required
Channel containing the message
ts
string
required
Timestamp of the message to update
text
string
New text for the message
blocks
object[]
An array of Block Kit blocks
Output Schema #
ok
bool
required
channel
string
ts
string
This tool calls: #
POST
https://slack.com/api/chat.update