WhatsApp — Set group photo
Input
group requiredExact group name, as shown in the chat list
mime optionalOptional MIME type for the imageBase64 route. Default inferred from filename (image/png, image/gif, else image/jpeg).
dry_run optionalWhen true, everything runs — the group opens, the image is staged and WhatsApp's crop dialog accepts it — and then the run stops before the crop is submitted. The photo is not changed and the group is not notified: set comes back false and dry_run true. Reaching that point proves both that the image was accepted and that this account may edit the group, since the dialog opens for neither otherwise.
filename optionalOptional filename to present to WhatsApp for the imageBase64 route. Default group.png
attachment optionalThe group photo, bound through the platform's own file channel and handed straight to the group drawer's file input. Preferred over imageBase64: it carries the bytes outside the argument payload, so it is not subject to the ~96KB cap and a normal-sized photo needs no shrinking or localhost server. Provide this or imageBase64. WhatsApp requires at least 192x192 pixels.
imageBase64 optionalThe image bytes, base64-encoded (jpg/png/gif), as an alternative to the `attachment` input. Keep it well under ~96KB of base64 — the MCP transport caps the payload. Provide this or attachment. WhatsApp requires at least 192x192 pixels.
Output
set requiredFalse on a dry run, where the photo was not changed.
group requireddry_run optionalTrue when this run stopped before submitting the crop. The image was still staged and accepted by WhatsApp's crop dialog — only the submit was skipped.
photoUrl optionalThe URL of the group photo after the change. On a dry run this is the photo the group had BEFORE, since nothing was changed — null when it had none.
replacedExisting optionaltrue if the group already had a photo that was replaced. On a dry run, whether one WOULD have been replaced.
