Usage #
// Import the typed helper
import { getBotUser } from "@hotglue/sdk/notion";
const result = await client.execute({
...getBotUser(),
userId: "user_123",
});
// result is typed as GetBotUserOutput
const result = await client.execute({
integration: "notion",
tool: "get_bot_user",
userId: "user_123",
input: {},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["notion"],
userId: "user_123",
}),
});
await agent.generate("run the Get Bot User tool");
Required Permissions #
read_users
Output Schema #
id
string
required
object
string
required
type
string
name
string
avatar_url
string
This tool calls: #
GET
https://api.notion.com/v1/users/me