@kazuph/mcp-gmail-gas

gmail_download_attachment

指定したmessageIdとattachmentIdで添付ファイルを取得します。 ファイルはDownloadsフォルダに保存されます。 attachmentIdはattachmentsの各attachmentのnameでありファイル名となることが多いです(invoice.pdfなど)。 引数: - messageId: メッセージID(必須) - attachmentId: 添付ファイルID(必須) - outputFilename: 保存時のファイル名(オプション)

Input Schema

NameRequiredDescriptionDefault
attachmentIdYes
messageIdYes
outputFilenameNo

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "attachmentId": { "minLength": 1, "type": "string" }, "messageId": { "minLength": 1, "type": "string" }, "outputFilename": { "type": "string" } }, "required": [ "messageId", "attachmentId" ], "type": "object" }