Sanity
Read and write a Sanity dataset - query documents with GROQ, create and patch them as drafts, then publish, unpublish or discard.
Connect a Sanity project with an API token to work its content lake end to end: query anything with GROQ, fetch a document in either its draft or published form, create and patch documents, and control what is live with publish, unpublish and discard. Writes land on the draft by default, so nothing the site serves changes until an explicit publish.
How you connect it
Credentials
Paste the credentials Sanity gives you, such as an API key or token, into the connection form. They are stored encrypted and never shown again.
The setup guide in the manual covers every step, and each tool in full.
What agents can do with it
9 tools for your agents to use.
Reads 3
Read-only: these look things up.
- Query documents (GROQ)
- Get document
- List datasets
Changes 6
These can create, update, send or delete.
- Create document
- Patch document
- Delete document
- Publish document
- Unpublish document
- Discard draft
Any of these can be set to wait for a person’s approval before it runs.
Put it to work
See what an agent could do in Sanity for you.
Bring the job, the systems it touches, and the decisions that need a person.