Studio tools reference
A Studio tool is a top-level view that you can access through the menu bar.
The most familiar tool is the Structure Tool (formerly called "Desk tool"), which lets you browse and edit documents. You can install tools with plugins or create your own. Tools also control your studio’s top-level routing.
The tools config property accepts an array of appropriately shaped objects (Tool) or a callback function returning the same. The callback function receives an array of existing tools and a context object as arguments.
Tool properties
Requiredname
string
Unique identifier for the tool. Used as part of the tool’s URL.
Requiredtitle
string
Title for the tool. Shown in the navigation menu.
Requiredcomponent
React.ComponentType
The root component for your tool. It renders in the main work area of your studio and receives the tool object as its
toolprop.icon
React.ComponentType
React component for the icon representing the tool. Shown in the navigation menu together with the title.
controlsDocumentTitle
boolean
Set to
trueif the tool setsdocument.titleitself. When unset, the studio sets the browser tab title to the tool title and workspace title.router
object | Router
Router for the tool. See Router in the API explorer.
options
object | any
Optional configuration for the tool. Passed through to the tool’s component, which reads it from
props.tool.options.getIntentState
function
Gets the state for the given intent.
canHandleIntent
function
Determines whether the tool can handle the given intent. Receives the intent, its parameters, and a payload; returns a boolean or an object whose keys indicate which parameters can be handled.
Tool context properties
These are the properties received in the second argument of the callback function.
dataset
string
Name of the current dataset.
projectId
string
Unique ID for the project.
schema
object | Schema
The schema registry of your project. Use
schema.get("schemaTypeName")to retrieve any schema by name.currentUser
object | CurrentUser
An object with info about the currently logged-in user, or
nullif the user isn’t authenticated.getClient
function
Function that returns a configured Sanity client. Pass an options object with the required
apiVersion, for examplegetClient({apiVersion: "2026-03-01"}).
Example
import {Card, Text} from '@sanity/ui'
import type {Tool} from 'sanity'
function MyCoolComponent(props: {tool: Tool}) {
return (
<Card padding={4} tone="positive">
<Text>I am a very useful tool.</Text>
</Card>
)
}
export const devTool = (config?: Partial<Tool>): Tool => ({
name: 'dev-tool',
title: 'Dev Tool',
component: MyCoolComponent,
...config,
})import {defineConfig} from 'sanity'
import {devTool} from './dev-tool'
export default defineConfig({
projectId: '<your-project-id>',
dataset: '<your-dataset>',
tools: [
// Overrides the default tool title
devTool({title: 'My better title'}),
],
// ...other config
})Was this page helpful?
Feedback submitted, thanks for helping us improve the docs. Have you tried these alternatives?