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