Skip to main content

Sanity

Draft, edit, and publish Sanity content, schemas included.

Tools

55 available tools

Search the tool definitions captured from the MCP server. The live list can vary with version, deployment, and credentials.

55 tools found.

  • Get UI context

    Tool name: _get_ui_context

    Returns UI enrichment data for widgets.

  • Add cors origin

    Tool name: add_cors_origin

    Adds CORS origin(s) to allow client-side requests to a Sanity project

  • Assets upload status

    Tool name: assets_upload_status

    Retrieve the status and result of your asset upload by operationId.

  • Delete cors origins

    Tool name: cors_origins_delete

    Deletes a CORS origin from a Sanity project

  • List cors origins

    Tool name: cors_origins_list

    Lists all CORS origins configured for a Sanity project

  • Create dataset

    Tool name: create_dataset

    Creates a new dataset with specified name and access settings

  • Create documents

    Tool name: create_documents

    Create one or more draft documents by directly providing structured content.

  • Create project

    Tool name: create_project

    Creates a new Sanity project and initializes it with a dataset and API tokens

  • Create release

    Tool name: create_release

    Create a new release for grouping content changes.

  • Create version

    Tool name: create_version

    Create a version document (versions.{releaseId}.

  • Dataset assets upload

    Tool name: dataset_assets_upload

    Provide local Sanity CLI guidance for uploading an image or file asset to a Content Lake dataset.

  • Dataset assets upload from file

    Tool name: dataset_assets_upload_from_file

    Prepare a one-use URL for uploading an image or file up to 50 MiB to a Content Lake dataset.

  • Dataset assets upload from URL

    Tool name: dataset_assets_upload_from_url

    Start an image or file upload from a public HTTPS URL to a Content Lake dataset.

  • Dataset assets upload from web chatgpt

    Tool name: dataset_assets_upload_from_web_chatgpt

    Upload a ChatGPT web attachment or generated file to a Content Lake dataset.

  • Deploy schema

    Tool name: deploy_schema

    Only use deploy_schema when no local Sanity Studio project exists.

  • Deploy studio

    Tool name: deploy_studio

    Deploy a managed Sanity Studio bound to an MCP-managed schema.

  • Discard drafts

    Tool name: discard_drafts

    Discard one or more draft documents.

  • Generate image

    Tool name: generate_image

    Generate a new image in a document using AI.

  • Get document

    Tool name: get_document

    Fetch a single document by its exact ID.

  • Get project studios

    Tool name: get_project_studios

    Retrieves all studio applications linked to a specific Sanity project

  • Get Sanity rules

    Tool name: get_sanity_rules

    Load Sanity development rules.

  • Get schema

    Tool name: get_schema

    Fetch a deployed schema.

  • Give Sanity feedback

    Tool name: give_sanity_feedback

    A Sanity MCP tool returned an unexpected error or confusing result

  • List datasets

    Tool name: list_datasets

    Lists all datasets in your Sanity project

  • List embeddings indices

    Tool name: list_embeddings_indices

    List all available embeddings indices for a dataset

  • List organizations

    Tool name: list_organizations

    Lists all organizations the user has access to in Sanity

  • List projects

    Tool name: list_projects

    Lists all Sanity projects associated with your account

  • List releases

    Tool name: list_releases

    List releases in a dataset.

  • List Sanity rules

    Tool name: list_sanity_rules

    Returns available best practice rules for schemas, queries, frameworks, and visual editing.

  • List workspace schemas

    Tool name: list_workspace_schemas

    List every deployed schema for a project and dataset, grouped by source (MCP-managed, Studio-deployed, or legacy).

  • Media assets upload from URL

    Tool name: media_assets_upload_from_url

    Start an image, video, or file upload from a public HTTPS URL to a Media Library.

  • Media library create documents

    Tool name: media_library_create_documents

    Create documents in a Media Library.

  • Media library discard drafts

    Tool name: media_library_discard_drafts

    Discard asset drafts, throwing away unpublished metadata edits and leaving the published asset intact.

  • Media library get document

    Tool name: media_library_get_document

    Fetch a single Media Library document by its exact ID.

  • Media library get schema

    Tool name: media_library_get_schema

    Get the document types of a Media Library, or the full field definitions for one type.

  • Media library link assets

    Tool name: media_library_link_assets

    Make one or more Media Library assets usable in project documents.

  • List media library

    Tool name: media_library_list

    Lists the Sanity Media Libraries in an organization.

  • Media library list asset references

    Tool name: media_library_list_asset_references

    Lists documents (across project datasets) that reference a Media Library asset.

  • Media library patch documents

    Tool name: media_library_patch_documents

    Edit Media Library documents.

  • Media library publish documents

    Tool name: media_library_publish_documents

    Publish asset drafts to make unpublished metadata edits (title, aspects.) live, preserving published-only and system-managed fields.

  • Media library query documents

    Tool name: media_library_query_documents

    Query a Media Library using GROQ.

  • Media library upload from file

    Tool name: media_library_upload_from_file

    Prepare a one-use URL to upload a local or private image, video, or file up to 50 MiB to a Media Library, or add a version to an existing asset.

  • Media library upload from URL

    Tool name: media_library_upload_from_url

    Start an image, video, or file upload from a public HTTPS URL to a Media Library.

  • Patch documents

    Tool name: patch_documents

    Update or edit one or more existing documents by applying precise modifications using @sanity/client patch() operations.

  • Publish documents

    Tool name: publish_documents

    Publish one or more drafts.

  • Query documents

    Tool name: query_documents

    Query documents from Sanity using GROQ.

  • Read docs

    Tool name: read_docs

    Read a specific Sanity documentation article

  • Run Sanity CLI

    Tool name: run_sanity_cli

    Run a limited subset of Sanity CLI commands and return their output.

  • Search docs

    Tool name: search_docs

    Search Sanity docs

  • Semantic search

    Tool name: semantic_search

    Perform a semantic search on an embeddings index

  • Transform image

    Tool name: transform_image

    Transform an existing image in a document using AI.

  • Unpublish documents

    Tool name: unpublish_documents

    Unpublish one or more published documents (moves them back to drafts), or provide releaseId to mark them for unpublishing when that release runs.

  • Update dataset

    Tool name: update_dataset

    Modifies a dataset's name or access control settings

  • Version discard

    Tool name: version_discard

    Discard one or more document versions from a release

  • Whoami

    Tool name: whoami

    Returns the currently authenticated Sanity account.

Compatibility

Connect Sanity to the clients your teams already use

27 AI clients can connect to Sanity through Runlayer. Pick one for its setup steps and controls.

Why Runlayer

Why connect Sanity through Runlayer?

One approved path

Approve Sanity once and everyone gets it in the AI clients they already use. Runlayer holds the credentials, so nothing sits in client configuration.

Fine-grained policy

Control who can use each server, tool, and resource, and under which runtime conditions.

Runtime security

Scan tool inputs and outputs for prompt injection, credential exposure, PII, and data exfiltration, then alert, mask, or block.

Audit and observability

Trace every request across users, clients, tools, policies, scanner decisions, and downstream systems.

Frequently asked questions