media_set_update_asset_titles
Update asset titles in a Voog media set without unlinking other assets. Safely merges title changes into the complete gallery, preventing accidental removal of images.
Instructions
Safely edit one or more asset titles in a media_set (gallery). Pass titles as an object mapping asset id -> new title, e.g. {"24898880": "New alt text"}.
WHY THIS TOOL: PUT /media_sets/{id} is replace-not-merge — any asset omitted from the request body is unlinked from the gallery (same destructive semantics as product variants). Hand-rolling a partial-assets PUT to change one title silently drops every other image (hit live 2026-05-20). This tool does the GET-then-PUT-full-array dance for you: it reads the current media_set, applies only the requested title changes, and PUTs the complete asset array back — preserving every other asset's id, order, title, and link settings.
Every key in titles must be an asset id already present in the media_set; an unknown id is rejected (no silent no-op). Titles may be empty strings (Voog allows clearing a title). Idempotent — re-running with the same titles is a no-op.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| titles | Yes | Map of asset id (string) -> new title (string). Each id must already be in the media_set. Empty string clears the title. | |
| media_set_id | Yes | Voog media_set (gallery) id |