Workflows reference
Index of every Workflows reference page: definition language, sanity.workflow.ts, engine, reactive session, Studio plugin, UI components, CLI, MCP tools, and TypeDoc.
This page lists every Workflows reference: the definition language, configuration files, engine and runtime APIs, Studio and UI packages, the CLI, and the MCP tools. Each package's generated TypeScript API is on reference.sanity.io.
Author definitions
- Workflow authoring reference: every
define*helper, condition variables and sites, field types, operations, guards, and subworkflow spawns.
Configure and deploy
- sanity.workflow.ts configuration reference: deployments, partitions, resource aliases, reader-model acknowledgement, runtime blocks, and config validation errors.
- Workflow CLI command reference: every command with its arguments, flags, JSON payloads, and exit codes.
- Limits: product and engine limits.
Run and integrate
- Engine, effects, and insights reference: engine construction, verbs, evaluation, effects, insights, errors, history, and actor resolution.
- Reactive session and adapter reference: session states, previews, and the observer contract a custom adapter implements.
- Studio plugin configuration reference: plugin options, mapping rows, structure helpers, and embeddable tables.
- Reusable UI components reference: assignment, date, progress, member, and workflow-diagram controls.
- Workflows MCP tools reference: every agent tool with its inputs, results, and errors, and the embedding API.
Release history
- Workflows release notes: changes, migrations, and breaking changes per release.
Package API references
Workflows ships as four packages. @sanity/workflows holds the engine, Blueprints generation and the code generated Functions import, condition descriptions, and the agent operations. @sanity/workflows-ui holds the Studio plugin and every React surface, and has no root entry point. @sanity/workflows-cli holds the command line, and @sanity/workflows-test the test bench. This table lists the main entry point of each area with its API reference. Each reference also lists the subpaths under it, such as @sanity/workflows/define:
Package | Use it to |
|---|---|
Define workflows, evaluate their state, and commit engine operations. | |
Configure the Blueprint resource for your workflows. The | |
Explain and evaluate GROQ conditions. | |
Wrap typed workflow operations as tools in your own agent host. | |
Add workflow views and tools to Studio, or reuse their tables. | |
Connect custom Studio interfaces to Workflows. | |
Manage reactive workflow sessions and custom adapters. | |
Connect Workflows to the Sanity App SDK. | |
Render assignment, date, status, and progress controls. | |
Render a workflow’s stages and transitions. | |
Deploy and operate workflows from the command line. | |
Exercise workflows with an in-memory test bench. |
TypeDoc lists every export, including the lower-level helpers for condition rendering, actor resolution, diagnostics, semantics, and persisted-model checks.
Visiting agent?
Workflows has MCP tools that let an agent inspect, operate, author, validate, and deploy workflows. An agent host embeds these tools. Ask the person you work for whether your host includes the Workflows tools.
Was this page helpful?
Feedback submitted, thanks for helping us improve the docs. Have you tried these alternatives?