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_contextReturns UI enrichment data for widgets.
Add cors origin
Tool name:
add_cors_originAdds CORS origin(s) to allow client-side requests to a Sanity project
Assets upload status
Tool name:
assets_upload_statusRetrieve the status and result of your asset upload by operationId.
Delete cors origins
Tool name:
cors_origins_deleteDeletes a CORS origin from a Sanity project
List cors origins
Tool name:
cors_origins_listLists all CORS origins configured for a Sanity project
Create dataset
Tool name:
create_datasetCreates a new dataset with specified name and access settings
Create documents
Tool name:
create_documentsCreate one or more draft documents by directly providing structured content.
Create project
Tool name:
create_projectCreates a new Sanity project and initializes it with a dataset and API tokens
Create release
Tool name:
create_releaseCreate a new release for grouping content changes.
Create version
Tool name:
create_versionCreate a version document (versions.{releaseId}.
Dataset assets upload
Tool name:
dataset_assets_uploadProvide 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_filePrepare 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_urlStart 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_chatgptUpload a ChatGPT web attachment or generated file to a Content Lake dataset.
Deploy schema
Tool name:
deploy_schemaOnly use deploy_schema when no local Sanity Studio project exists.
Deploy studio
Tool name:
deploy_studioDeploy a managed Sanity Studio bound to an MCP-managed schema.
Discard drafts
Tool name:
discard_draftsDiscard one or more draft documents.
Generate image
Tool name:
generate_imageGenerate a new image in a document using AI.
Get document
Tool name:
get_documentFetch a single document by its exact ID.
Get project studios
Tool name:
get_project_studiosRetrieves all studio applications linked to a specific Sanity project
Get Sanity rules
Tool name:
get_sanity_rulesLoad Sanity development rules.
Get schema
Tool name:
get_schemaFetch a deployed schema.
Give Sanity feedback
Tool name:
give_sanity_feedbackA Sanity MCP tool returned an unexpected error or confusing result
List datasets
Tool name:
list_datasetsLists all datasets in your Sanity project
List embeddings indices
Tool name:
list_embeddings_indicesList all available embeddings indices for a dataset
List organizations
Tool name:
list_organizationsLists all organizations the user has access to in Sanity
List projects
Tool name:
list_projectsLists all Sanity projects associated with your account
List releases
Tool name:
list_releasesList releases in a dataset.
List Sanity rules
Tool name:
list_sanity_rulesReturns available best practice rules for schemas, queries, frameworks, and visual editing.
List workspace schemas
Tool name:
list_workspace_schemasList 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_urlStart an image, video, or file upload from a public HTTPS URL to a Media Library.
Media library create documents
Tool name:
media_library_create_documentsCreate documents in a Media Library.
Media library discard drafts
Tool name:
media_library_discard_draftsDiscard asset drafts, throwing away unpublished metadata edits and leaving the published asset intact.
Media library get document
Tool name:
media_library_get_documentFetch a single Media Library document by its exact ID.
Media library get schema
Tool name:
media_library_get_schemaGet the document types of a Media Library, or the full field definitions for one type.
Media library link assets
Tool name:
media_library_link_assetsMake one or more Media Library assets usable in project documents.
List media library
Tool name:
media_library_listLists the Sanity Media Libraries in an organization.
Media library list asset references
Tool name:
media_library_list_asset_referencesLists documents (across project datasets) that reference a Media Library asset.
Media library patch documents
Tool name:
media_library_patch_documentsEdit Media Library documents.
Media library publish documents
Tool name:
media_library_publish_documentsPublish 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_documentsQuery a Media Library using GROQ.
Media library upload from file
Tool name:
media_library_upload_from_filePrepare 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_urlStart an image, video, or file upload from a public HTTPS URL to a Media Library.
Patch documents
Tool name:
patch_documentsUpdate or edit one or more existing documents by applying precise modifications using @sanity/client patch() operations.
Publish documents
Tool name:
publish_documentsPublish one or more drafts.
Query documents
Tool name:
query_documentsQuery documents from Sanity using GROQ.
Read docs
Tool name:
read_docsRead a specific Sanity documentation article
Run Sanity CLI
Tool name:
run_sanity_cliRun a limited subset of Sanity CLI commands and return their output.
Search docs
Tool name:
search_docsSearch Sanity docs
Semantic search
Tool name:
semantic_searchPerform a semantic search on an embeddings index
Transform image
Tool name:
transform_imageTransform an existing image in a document using AI.
Unpublish documents
Tool name:
unpublish_documentsUnpublish 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_datasetModifies a dataset's name or access control settings
Version discard
Tool name:
version_discardDiscard one or more document versions from a release
Whoami
Tool name:
whoamiReturns 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.