The documents_validate tool now reports whether all applicable checks ran for each document and warns independently of the findings when validation is incomplete. It also skips custom callbacks unavailable in deployed schemas, noting results cover only built-in and declarative checks, and reports validator exceptions as tool errors.
Sanity Changelog
npx @buildinternet/releases get sanity-changelogThe MCP server adds a documents_validate tool, available to all users in beta, that checks documents against their deployed schema. The patch_documents tool now documents which revision to pass with ifRevisionId and how to recover from a revision mismatch.
Switching workspaces from the workspace menu no longer reloads the page, with Cmd-click, Ctrl-click or middle-click opening a workspace in a new tab, and Dashboard studios opened without project access now show an access request prompt. Publishing now runs pending validation immediately instead of waiting for idle time, and fixes cover a custom publish action that could cancel publishing, jumping expanded array lists, and the initial value stream ignoring documents created or deleted after a template resolved.
Organizations can set up to 10 spending alert amounts in whole US dollars under Manage Billing, triggering an email and Sanity Dashboard notification when estimated plan overage reaches each threshold. Alerts go to administrators, billing managers, and the billing details email, send at most once per calendar month, and never stop usage.
The dataset_assets_upload tool has been removed since it only returned Sanity CLI instructions; use dataset_assets_upload_from_file, dataset_assets_upload_from_url, or dataset_assets_upload_from_web_chatgpt instead. Also fixed Studio links opening the wrong workspace, with links omitted when the target workspace or URL can't be determined safely, and updated query_documents and read_docs tool descriptions.
Organizations can now deliver recorded management activity to a Google Cloud Storage bucket they control, configured in Manage's Activity feed export settings. Sanity generates hourly exports of the previous complete hour starting five minutes past each hour in UTC, with gzip-compressed newline-delimited JSON in OCSF 1.9.0 and a manifest listing files per completed window.
SDK hooks can now infer document, field, query, and projection types for each dataset read by an app, from types generated with typegen.resources in @sanity/cli 8.16.0. useQuery, useDocuments, and usePaginatedDocuments now throw a projectUserNotFoundError message naming the sign-in method, and createDocumentHandle returns projectId and dataset as required, which may require a type annotation for handles stored in state, variables, or context.
🐛 Notable bugfixes and improvements
@sanity/context now saves agent failures to your conversation transcripts, so they show up in Insights. Failed tool calls are saved with their error. On AI SDK v7, failed turns are saved too, along with the transcript up to the failure. AI SDK v6 has no hook for failed turns,…
Improvements
- Project permissions: Errors now identify the project and explain how to check the MCP connection’s account or API token, with a Sanity Manage link for reviewing membership and role permissions.
This release adds a list view for browsing assets, folders, and collections, adds sorting by modified date, and fixes issues with filter menus, signing key errors, and aspect previews.
Until this release, the document store reverted local edits whenever saving them failed, whatever the cause. An expired session, a server error, or a dropped connection discarded what the user had typed, and editors that don't handle the reverted event, such as…
This release adds a beta singletons API and live document count badges in structure lists, and collapses long arrays in the form. It also improves tool state persistence when switching between tools, fixes the studio navbar on narrow layouts, and keeps URLs and draft content in…
SanityApp and ResourceProvider no longer dispose their Sanity instance when they unmount. The instance, and the stores it created, now live until the page reloads. This fixes SDK apps crashing when React <Activity> hides and shows them, since React runs the same cleanup…
There was no changelog entry in August, so this entry covers two months of documentation updates. Highlights include a restructured Sanity Context section with new Knowledge Base and framework guides, upgrade guides for every Studio major version, new Functions and Presentation…
The @sanity/context package now works with both AI SDK v6 and v7. This fixes the build error (Export bindTelemetryIntegration doesn't exist in target module) when upgrading to ai@7.


