get_avatar
Fetch a contact's or group's avatar image as base64 using their phone number or group ID. Returns the image data or fails if no avatar is stored.
Instructions
Return a contact's or group's avatar image as base64, from the copy signal-cli has stored. identifier (required): an E.164 phone number for a contact, or a group id from list_groups for a group (anything that is not a full E.164 number is treated as a group id). Returns identifier, base64 (decode to get the JPEG/PNG bytes) and has_avatar; fails with 'Could not find avatar' when none is stored. Use update_profile with avatar_path to set your own photo, update_group with avatar for a group's.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | Phone number (E.164) for a contact or group ID for a group |