Get Colors

Returns the color definitions for calendars and events

Usage #

// Import the typed helper
import { getColors } from "@hotglue/sdk/google_calendar";
const result = await client.execute({
...getColors(),
userId: "user_123",
});
// result is typed as GetColorsOutput
const result = await client.execute({
integration: "google_calendar",
tool: "get_colors",
userId: "user_123",
input: {},
});
// 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 Colors tool");

Required Permissions #

https://www.googleapis.com/auth/calendar.readonly

This tool calls: #

GET https://www.googleapis.com/calendar/v3/colors