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_validatetool: Results now explain why a document hascomplete: false, listing the checks that did not run.
Fixes
run_sanity_clitool: Manage Context knowledge bases again withsanity contextcommands, 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.