set_image_alts
Update alt text for multiple image elements across pages and global sources in one batch. Groups by source to save each once and auto-detects alt path.
Instructions
Batch-write alt text for image elements across pages + global sources. Groups updates by source so each source is fetched + saved exactly once. Workflow: list_image_elements → read_image (per src) → describe → set_image_alts(items). If alt_path is omitted, it is auto-detected via the same probe used by list_image_elements (config.image.alt → config.alt → specials.alt).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of alt updates | |
| dry_run | No | Preview the diff without saving |