Usage #
// Import the typed helper
import { listUsers } from "@hotglue/sdk/notion";
const result = await client.execute({
...listUsers({
start_cursor: string,
page_size: int,
}),
userId: "user_123",
});
// result is typed as ListUsersOutput
const result = await client.execute({
integration: "notion",
tool: "list_users",
userId: "user_123",
input: {
start_cursor: string,
page_size: int,
},
});
// 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 List Users tool");
Required Permissions #
read_users
Input Schema #
start_cursor
string
Pagination cursor from previous response
page_size
int
Number of results per page (max 100)
default:
100
This tool calls: #
GET
https://api.notion.com/v1/users