Usage #
// Import the typed helper
import { listEmoji } from "@hotglue/sdk/slack";
const result = await client.execute({
...listEmoji({
include_categories: bool,
}),
userId: "user_123",
});
// result is typed as ListEmojiOutput
const result = await client.execute({
integration: "slack",
tool: "list_emoji",
userId: "user_123",
input: {
include_categories: bool,
},
});
// 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 Emoji tool");
Required Permissions #
emoji:read
Input Schema #
include_categories
bool
Include emoji categories
default:
false
Output Schema #
ok
bool
required
emoji
object
cache_ts
string
This tool calls: #
GET
https://slack.com/api/emoji.list