get_language
Retrieve the current language settings of your Gmail account.
Instructions
Gets language settings
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:853-862 (registration)Registration of the 'get_language' tool via server.tool(), which defines the tool name, description, schema (no params), and the handler function.
server.tool("get_language", "Gets language settings", {}, async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.getLanguage({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:856-862 (handler)The handler (async callback) that executes the tool logic: calls gmail.users.settings.getLanguage({ userId: 'me' }) and formats the response.
async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.getLanguage({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:853-855 (schema)The input schema for get_language: an empty object (no parameters) as defined by the third argument to server.tool().
server.tool("get_language", "Gets language settings", {},