List Settings

Returns all user settings for the authenticated user

Usage #

// Import the typed helper
import { listSettings } from "@hotglue/sdk/google_calendar";
const result = await client.execute({
...listSettings({
max_results: int,
page_token: string,
}),
userId: "user_123",
});
// result is typed as ListSettingsOutput
const result = await client.execute({
integration: "google_calendar",
tool: "list_settings",
userId: "user_123",
input: {
max_results: int,
page_token: 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 List Settings tool");

Required Permissions #

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

Input Schema #

max_results int

Maximum number of entries returned

page_token string

Token for pagination

This tool calls: #

GET https://www.googleapis.com/calendar/v3/users/me/settings