Set Character Avatar
antix_set_character_avatarChange the saved AIGE character's avatar — the image that gets AUTO-ATTACHED as the img2img reference whenever this character's id is passed to antix_generate_image. Use this when the user wants future generations of an existing character to use a new face/look (e.g. 'use this image as Aurora's new face going forward', 'set this as her avatar', 'update Aurora's profile picture to this').
Why this matters: Claude.ai's MCP client doesn't currently forward chat-attached image bytes to tool args (Anthropic-side limit). So the most reliable way to get a chat-attached image into AIGE's img2img pipeline is the two-step pattern: (a) user uploads to https://aige.ws/r and pastes the short URL, OR provides any public image URL; (b) you call this tool to bake that URL into the character's saved avatar. After that, every generate_image call with that characterId implicitly uses the new image as the reference — no need to forward bytes again per generation.
Inputs:
• characterId — the character to update. Get it from antix_list_characters.
• image — either an HTTPS URL (recommended path: user uploads at https://aige.ws/r → pastes URL → you forward it here), OR a base64 data URL data:image/png;base64,... if your client surfaces the bytes.
Side effects: Overwrites users/<uid>/characters/<characterId>/avatar.jpg in Firebase Storage and updates the avatar field on the character doc. The previous avatar URL is returned as previousAvatarUrl for your reference but is not preserved. This change is visible in the AIGE web app at https://aige.ws/twin/<characterId> immediately.
Returns: characterId, characterName, avatarUrl (the new one), previousAvatarUrl, characterPageUrl (direct AIGE link), and a note confirming future img2img will use it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| characterId | Yes |