Usage #
// Import the typed helper
import { quickAddEvent } from "@hotglue/sdk/google_calendar";
const result = await client.execute({
...quickAddEvent({
calendar_id: string,
text: string,
send_updates: string,
}),
userId: "user_123",
});
// result is typed as QuickAddEventOutput
const result = await client.execute({
integration: "google_calendar",
tool: "quick_add_event",
userId: "user_123",
input: {
calendar_id: string,
text: string,
send_updates: 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 Quick Add Event tool");
Required Permissions #
https://www.googleapis.com/auth/calendar.events
Input Schema #
calendar_id
string
required
Calendar identifier
text
string
required
The text describing the event to be created
send_updates
string
Whether to send notifications
values:
all, externalOnly, none
This tool calls: #
POST
https://www.googleapis.com/calendar/v3/calendars/{calendar_id}/events/quickAdd