npm @sanity/client 7.6.0
v7.6.0

latest releases: 7.11.0-cors-check.1, 7.11.0-cors-check.0, 7.11.0-live-cors...
2 months ago

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',
      },
    },
  ],
})

Don't miss a new client release

NewReleases is sending notifications on new releases.