Usage #
// Import the typed helper
import { listCalendars } from "@hotglue/sdk/google_calendar";
const result = await client.execute({
...listCalendars({
max_results: int,
page_token: string,
show_deleted: bool,
// ...
}),
userId: "user_123",
});
// result is typed as ListCalendarsOutput
const result = await client.execute({
integration: "google_calendar",
tool: "list_calendars",
userId: "user_123",
input: {
max_results: int,
page_token: string,
show_deleted: bool,
// ...
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["google_calendar"],
userId: "user_123",
}),
});
await agent.generate("run the List Calendars tool");
Required Permissions #
https://www.googleapis.com/auth/calendar.readonly
Input Schema #
max_results
int
Maximum number of entries returned (max 250)
default:
100
page_token
string
Token for pagination to retrieve the next page
show_deleted
bool
Whether to include deleted calendar list entries
show_hidden
bool
Whether to show hidden entries
This tool calls: #
GET
https://www.googleapis.com/calendar/v3/users/me/calendarList