List User Emails

Lists all email addresses for the authenticated user

Usage #

// Import the typed helper
import { listUserEmails } from "@hotglue/sdk/github";
const result = await client.execute({
...listUserEmails(),
userId: "user_123",
});
// result is typed as ListUserEmailsOutput
const result = await client.execute({
integration: "github",
tool: "list_user_emails",
userId: "user_123",
input: {},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["github"],
userId: "user_123",
}),
});
await agent.generate("run the List User Emails tool");

Required Permissions #

user:email

This tool calls: #

GET https://api.github.com/user/emails