Usage #
// Import the typed helper
import { getCalendar } from "@hotglue/sdk/google_calendar";
const result = await client.execute({
...getCalendar({
calendar_id: string,
}),
userId: "user_123",
});
// result is typed as GetCalendarOutput
const result = await client.execute({
integration: "google_calendar",
tool: "get_calendar",
userId: "user_123",
input: {
calendar_id: string,
},
});
// 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 Get Calendar tool");
Required Permissions #
https://www.googleapis.com/auth/calendar.readonly
Input Schema #
calendar_id
string
required
Calendar identifier. Use "primary" for the primary calendar
This tool calls: #
GET
https://www.googleapis.com/calendar/v3/calendars/{calendar_id}