Clearer validation results and Media Library errors

Published: November 13, 2026

v2.46.1

Improvements

  • media_library_* tools: Failed calls now include a stable error code in _meta["io.sanity/errorCode"], including each failed item in bulk calls, so clients can identify failures without parsing error messages.
  • Server information: MCP clients now receive a description, website, and Sanity icon when they connect.
  • documents_validate tool: Results now explain why a document has complete: false, listing the checks that did not run.

Fixes

  • run_sanity_cli tool: Manage Context knowledge bases again with sanity context commands, including commands for sources, documents, instructions, and MCP endpoints.
  • Schema validation: When enabled, document creation and patching now reject references to existing documents whose types are not allowed by the deployed schema.
Sanity logosanity.ioAll Systems Operational© Sanity 2026
Change site theme