Use the Sanity connector safely
Sets the project, dataset and auth mode before any work, picks read, draft or publish tools in order of risk, and asks for explicit approval before every change to content, schema or configuration.
Use it when
- You have just connected Sanity and want to know what the agent can safely do.
- An agent is about to query or edit a dataset and you need it to confirm which project and dataset.
- A Sanity request failed with a permission or CORS error and you need to know why.
Tools it uses
list_organizationslist_projectslist_datasetsget_schemalist_workspace_schemasget_documentquery_documentscreate_documents_from_jsoncreate_documents_from_markdownpatch_document_from_jsonpatch_document_from_markdownpublish_documentsdiscard_draftsdeploy_schemacreate_versionlist_embeddings_indiceslist_sanity_rulesadd_cors_origin
Connect to my Sanity project and tell me which dataset I'm working in before you change anything.
I'm connected as you via OAuth to the project Acme Website, dataset production. I'll read the schema and count the draft documents first. Nothing will be published or changed until you approve each step.