JavaScript Client v7.6.0: Agent Action Transform can now write image descriptions for external URLs

New features

Targeting images outside the document

Transform can now describe remote images. If the source image is available on an HTTPS URL outside of the target document, it is possible to get a description for it using the image-description operation type with imageUrl.

Example:

client.agent.action.transform({
schemaId,
documentId,
instruction: 'describe the image in great detail',
target: [
{
path: ['imageDescription'],
operation: {
type: 'image-description',
imageUrl: 'https://www.sanity.io/static/images/favicons/android-icon-192x192.png?v=2',
},
},
],
})

Learn more about targets, paths, and target operations.