Agent Action Transform can now write image descriptions for external URLs
Published: June 13, 2025
v7.6.0
JavaScript Client
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.