Usage #
// Import the typed helper
import { listScheduledMessages } from "@hotglue/sdk/slack";
const result = await client.execute({
...listScheduledMessages({
channel: string,
oldest: string,
latest: string,
// ...
}),
userId: "user_123",
});
// result is typed as ListScheduledMessagesOutput
const result = await client.execute({
integration: "slack",
tool: "list_scheduled_messages",
userId: "user_123",
input: {
channel: string,
oldest: string,
latest: 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 List Scheduled Messages tool");
Required Permissions #
chat:write
Input Schema #
channel
string
Filter by channel ID
oldest
string
Minimum scheduled time (Unix timestamp)
latest
string
Maximum scheduled time (Unix timestamp)
limit
int
Maximum number of messages to return
default:
100
cursor
string
Pagination cursor
Output Schema #
ok
bool
required
scheduled_messages
object[]
response_metadata
object
This tool calls: #
POST
https://slack.com/api/chat.scheduledMessages.list