Find emails with attachments
gmail_find_attachmentsSearch Gmail for messages matching a query and list attachment name, type, and size for a GitHub commit. Optionally disable requireAttachment to find body-only messages.
Instructions
Search the authorized Gmail mailbox (read-only) and list matching messages with their attachments (name, type, size), so a photo or document someone emailed can be committed to GitHub with github_commit_attachment. Gmail search syntax: from:, subject:, newer_than:7d, filename:jpg. By default only messages with an attachment are returned; set requireAttachment=false to find a message whose text is in the body itself and read it with gmail_get_message. Only a ~200-character snippet is shown here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Most messages to return. | |
| query | No | Gmail search query, e.g. 'from:alba newer_than:14d'. | newer_than:30d |
| requireAttachment | No | Keep the implicit 'has:attachment' filter. false searches every message, including ones whose content is in the email body (read it with gmail_get_message). |