set_image_filename
Repoint an existing image layer at a different uploaded asset — keeps the layer's id, position, size, animations, and styles; only the bitmap changes. The asset must already exist at users//assets// (uploaded via the editor's drag-drop, or POST /api/upload-asset/ with the raw bytes and an X-Filename header). Use this to swap a layer's image WITHOUT losing its keyframes — remove_layer + add_image_layer would mint a new id and drop the animations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Asset filename in the project's assets bucket, e.g. drake.png. | |
| elementId | Yes | Image layer id, image.<id>. | |
| projectId | Yes | Opaque project id (a v4 UUID, from list_projects/create_project). Selects which existing project this call mutates. |