> For AI agents: the complete Sanity documentation index is available at [https://www.sanity.io/docs/llms.txt](https://www.sanity.io/docs/llms.txt).

# Studio tools reference

A Studio tool is a top-level view that you can access through the menu bar.

[Studio tools](https://www.sanity.io/docs/studio/studio-tools)

[Tools common patterns](https://www.sanity.io/docs/studio/tools-cheat-sheet)

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

#### Properties

**name** (string, required)

Unique identifier for the tool. Used as part of the tool’s URL.

**title** (string, required)

Title for the tool. Shown in the navigation menu.

**component** (React.ComponentType, required)

The root component for your tool. It renders in the main work area of your studio and receives the tool object as its tool prop.

**icon** (React.ComponentType)

React component for the icon representing the tool. Shown in the navigation menu together with the title.

**controlsDocumentTitle** (boolean)

Set to true if the tool sets document.title itself. 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.

#### Properties

**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 null if the user isn’t authenticated.

**getClient** (function)

Function that returns a configured Sanity client. Pass an options object with the required apiVersion, for example getClient({apiVersion: "2026-03-01"}).

### Example

```tsx
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,
})
```

```typescript
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
})
```



## Related changelog entries

Entries are listed newest first; each link points to the full entry as markdown. Follow one when you need to know what changed, when, or why — for example, to summarize recent updates, explain behavior that differs from older documentation, or check whether a fix has shipped.

- [Sanity Studio v3.23.0: Upgraded and refreshed Studio UI](https://www.sanity.io/docs/changelog/f75445eb-3c3e-4d1e-986d-71a61223aa83.md) — December 19, 2023