whoami
verify the authenticated Sanity user
How to use it
whoami is exposed by the Agent Toolkit MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the whoami tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Agent Toolkit
npx sanity@latest mcp configureOther tools in Agent Toolkit (13)
create draft documents from structured content, or version documents when a release ID is provided
/ listreleases — create and inspect Content Releases
create version documents for releases
/ getschema — deploy MCP-managed schemas and inspect deployed schemas
deploy a hosted Studio bound to an MCP-managed schema
/ transformimage — AI image generation and editing
list Studio applications linked to a project
report MCP tool errors, missing capabilities, confusing output, or documentation issues
/ getsanityrules — load agent rules on demand
surgical edits to existing documents; published documents are edited by creating or updating drafts
/ unpublishdocuments — manage document lifecycle
run GROQ queries directly
/ readdocs — search and read Sanity documentation