Commit an email attachment to GitHub
github_commit_attachmentCommit a Gmail attachment to a GitHub branch, optionally converting or resizing images server-side; use dryRun to preview dimensions and bytes.
Instructions
Take an attachment from a Gmail message (found with gmail_find_attachments), optionally convert/resize it on the server when it is an image (webp by default, cover-crop, variants), and commit the result to a branch. Nothing passes through the client. dryRun reports the attachment and the resulting dimensions and bytes without committing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination path in the repo, e.g. 'public/assets/img/blog/cover.webp'. | |
| repo | Yes | Repository as 'owner/name'. | |
| focus | No | Crop anchor: 'attention' keeps the visually busiest region, 'centre' crops symmetrically. | attention |
| width | No | Target width. With height too, the image is cover-cropped to exactly that size; alone, height follows the aspect ratio. Never upscaled. | |
| branch | Yes | Branch to commit to, e.g. 'main'. | |
| dryRun | No | ||
| format | No | webp | |
| height | No | ||
| convert | No | Images: convert/resize on the server with the options below; false commits the original bytes unchanged. | |
| message | Yes | Commit message in the repository's conventions. | |
| quality | No | ||
| filename | No | Attachment file name as listed; omit when the message has exactly one attachment. | |
| variants | No | Extra outputs from the same source (same format/quality/focus), e.g. a 1000×562 card version. | |
| messageId | Yes | Gmail message id from gmail_find_attachments. | |
| createBranch | No |