Usage #
// Import the typed helper
import { createCalendar } from "@hotglue/sdk/google_calendar";
const result = await client.execute({
...createCalendar({
summary: string,
description: string,
location: string,
// ...
}),
userId: "user_123",
});
// result is typed as CreateCalendarOutput
const result = await client.execute({
integration: "google_calendar",
tool: "create_calendar",
userId: "user_123",
input: {
summary: string,
description: string,
location: 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 Create Calendar tool");
Required Permissions #
https://www.googleapis.com/auth/calendar
Input Schema #
summary
string
required
Title of the calendar
description
string
Description of the calendar
location
string
Geographic location of the calendar
time_zone
string
The time zone of the calendar (e.g., America/Los_Angeles)
This tool calls: #
POST
https://www.googleapis.com/calendar/v3/calendars