Update image alt text

ps_update_image_legends

Write · preview + approveBlock 1 · Content & SEODaily connector

Writes descriptions (alt texts) for product photos.

Ask Claude

„Add alt texts to all images in Sofas that don't have one. Describe colour and angle.”

Example preview

64 images, language en, only_missing=true.
Product 112 image 1: "" -> "Sofa Oslo 3-seat, grey fabric, front view"
... 63 more. 3 images skipped (already have alt).

Technical details

Sets alt texts (legends) of product images in one language. only_missing=true changes only empty ones. An alt describes the image, for example "Black Bartek sandals, side view".

Parameters

NameTypeRequiredDescription
itemsarray of objectyesImages: image_id, or product + position (1 = first image); legend (required, 1-128 characters).
only_missingbooleannoChange only images without alt (default false).
langstringwhen: shop has more than one active languageISO code of the language you write in. Required when the shop has more than one active language. Claude writes the content in this language.
shop_idintegernoShop ID in a multistore installation. Defaults to the shop in the connector address. IDs are listed by ps_get_shop_info.
confirmbooleannofalse (default) returns a preview and saves nothing. true executes, only after the user approved the preview, together with change_token.
change_tokenstringwhen: confirm=trueToken from the preview. Required with confirm=true. Valid 30 minutes, single use, bound to the previewed arguments and data state.

Limits

Max 100 images per call. Alt max 128 characters.

What you see before anything is saved

Claude first calls the tool without confirming it. The module returns a preview (current and new values) and a single-use token valid for 30 minutes. Claude shows you the preview and saves the change only after your yes.

Related tools

Last updated: 2026-10-03