7.6.0 (2025-06-13)
Features
- transform: adds support for optional imageUrl param in for target.operation image-description (#1105) (c47214f)
Agent Action: Transform – Image descriptions
Targeting images outside the document (URL)
If the source image is available on a https URL outside the target document, it is possible to get a description for it using 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',
},
},
],
})