Usage #
// Import the typed helper
import { getThreadReplies } from "@hotglue/sdk/slack";
const result = await client.execute({
...getThreadReplies({
channel: string,
ts: string,
oldest: string,
// ...
}),
userId: "user_123",
});
// result is typed as GetThreadRepliesOutput
const result = await client.execute({
integration: "slack",
tool: "get_thread_replies",
userId: "user_123",
input: {
channel: string,
ts: string,
oldest: 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 Get Thread Replies tool");
Required Permissions #
channels:history
Input Schema #
channel
string
required
Channel ID containing the thread
ts
string
required
Timestamp of the parent message
oldest
string
Start of time range
latest
string
End of time range
limit
int
Maximum number of replies to return
default:
100
cursor
string
Pagination cursor
Output Schema #
ok
bool
required
messages
object[]
has_more
bool
This tool calls: #
GET
https://slack.com/api/conversations.replies