Usage #
// Import the typed helper
import { testAuth } from "@hotglue/sdk/slack";
const result = await client.execute({
...testAuth(),
userId: "user_123",
});
// result is typed as TestAuthOutput
const result = await client.execute({
integration: "slack",
tool: "test_auth",
userId: "user_123",
input: {},
});
// 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 Test Auth tool");
Output Schema #
ok
bool
required
url
string
team
string
user
string
team_id
string
user_id
string
bot_id
string
This tool calls: #
POST
https://slack.com/api/auth.test