get_send_as
Retrieve a specific send-as alias from your Gmail account. Requires the alias email address.
Instructions
Gets the specified send-as alias
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sendAsEmail | Yes | The send-as alias to be retrieved |
Implementation Reference
- src/index.ts:1158-1169 (registration)Registration of the 'get_send_as' tool via server.tool(), including its schema (sendAsEmail parameter) and the handler that calls gmail.users.settings.sendAs.get()
server.tool("get_send_as", "Gets the specified send-as alias", { sendAsEmail: z.string().describe("The send-as alias to be retrieved") }, async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.sendAs.get({ userId: 'me', sendAsEmail: params.sendAsEmail }) return formatResponse(data) }) } )