Sanity logosanity.ioAll Systems Operational© Sanity 2026
Change Site Theme

Changelog

Track new features, improvements, and fixes across all Sanity products.

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

On this page

Back to Changelog
  1. Changelog
  2. JavaScript Client

Enhancements to agent action handling and stega URL filtering

Published: August 4, 2025

v7.8.2
JavaScript Client

Highlights

Agent Actions

Agent Actions that take support groq instruction parameters now accept a perspective. For example:

await client.agent.action.generate({
  // ...
  instruction: "Develop a new movie. Use these details to generate the concept: $background ",
  instructionParams: {
    background: {
      type: "groq",
      perspective: 'draft',
      query: "*[_id=$id]",
      params: {
        id: "123456"
      }
    }
  }
})

Bugfixes

  • Agent Action prompt now correctly uses format: 'string' typing instead of 'text'.
  • Updates to the supported URL patterns for stega should now prevent issues with disappearing overlays in presentation.

Related documentation

  • Creating instructions

  • Prompt quick start

On this page

  • Highlights
  • Agent Actions
  • Bugfixes

Related documentation

  • Creating instructions

  • Prompt quick start

Sanity logo

Documentation

    • Overview
    • Platform introduction
    • Next.js quickstart
    • Nuxt.js quickstart
    • Astro quickstart
    • React Router quickstart
    • Studio quickstart
    • Build with AI
    • Content Lake
    • Functions
    • APIs and SDKs
    • Agent Actions
    • Visual Editing
    • Blueprints
    • Platform management
    • Dashboard
    • Studio
    • Canvas
    • Media Library
    • App SDK
    • Content Agent
    • HTTP API
    • CLI
    • Libraries
    • Specifications
    • Changelog
    • User guides
    • Developer guides
    • Courses and certifications
    • Join the community
    • Templates
await client.agent.action.generate({
  // ...
  instruction: "Develop a new movie. Use these details to generate the concept: $background ",
  instructionParams: {
    background: {
      type: "groq",
      perspective: 'draft',
      query: "*[_id=$id]",
      params: {
        id: "123456"
      }
    }
  }
})