list_send_as
Retrieve all send-as aliases configured for your Gmail account to view alternative email addresses you can send from.
Instructions
Lists the send-as aliases for the specified account
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1171-1180 (registration)Tool registration via server.tool() - registers 'list_send_as' with no parameters, lists send-as aliases for the account
server.tool("list_send_as", "Lists the send-as aliases for the specified account", {}, async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.sendAs.list({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:1174-1179 (handler)Handler function - calls gmail.users.settings.sendAs.list({ userId: 'me' }) and returns formatted response
async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.sendAs.list({ userId: 'me' }) return formatResponse(data) }) } - src/index.ts:1173-1173 (schema)Empty schema object - no input parameters required for this tool
{},