Usage #
// Import the typed helper
import { listTemplates } from "@hotglue/sdk/sendgrid";
const result = await client.execute({
...listTemplates({
generations: string,
page_size: int,
}),
userId: "user_123",
});
// result is typed as ListTemplatesOutput
const result = await client.execute({
integration: "sendgrid",
tool: "list_templates",
userId: "user_123",
input: {
generations: string,
page_size: int,
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["sendgrid"],
userId: "user_123",
}),
});
await agent.generate("run the List Templates tool");
Required Permissions #
templates.read
Input Schema #
generations
string
default:
dynamic
values: legacy, dynamic
page_size
int
default:
50
This tool calls: #
GET
https://api.sendgrid.com/v3/templates