Canvas
A canvas holds apps: live React code that Inspect writes and renders. Each app shows as one or more frames on the canvas map. An app with declared states (for example form, review, confirmed) gets one frame per state, all sharing the same code, so you can click through a whole flow. Use a canvas to try a UI before implementing it in a repository, to map how an existing screen behaves, or to build a small data-backed tool on top of data sources.
Requirements
- Canvas must be enabled for your organization. When it isn't,
/canvasredirects to Home and the agent's canvas tools fail withCanvas tools are not enabled for this session. - Read-only users can open canvases they have access to but can't edit, publish, or comment.
- Apps render with your organization's design systems when one is set up, or with plain React and CSS otherwise.
Where canvases come from
Every session has at most one active canvas. Inspect creates it the first time the session's canvas is opened or used, titles it after the session, and gives it the session's visibility. Everyone participating in the session at that point becomes an editor.
/sessions/<session-id>/canvasopens the session's canvas map, next to the conversation./sessions/<session-id>/canvas/<app-id>opens one app inside the session./canvas/<canvas-id>opens the canvas on its own, in edit mode or view only depending on how it is shared with you./canvas/<canvas-id>/presentopens present mode: the canvas's prototypes at full width, with no canvas chrome.https://app.inspect.com/canvasopens the canvas library: every canvas you can see that has at least one app.
The library filters by Scope (All apps, My apps, Starred) and Author, and sorts by Newest, Oldest, or Title (A–Z). Search matches canvas titles and app names. Starring is per person.
Working on one canvas from several sessions
A session can attach to an existing canvas instead of its own. Paste a /canvas/<canvas-id> link and ask the agent to work on it, or ask it to find one by name. Attaching replaces the session's active canvas without deleting either one. Both you and the session's owner need edit access to the target canvas first; attaching never grants access. Another session can't attach a canvas that has never been published (This canvas is a draft. Someone with access has to publish it before another session can attach it.).
While an agent edits an app, the frame shows a working indicator for that session. It clears when the agent finishes or 40 seconds after its last canvas call.
What the agent can do
The agent builds and edits apps directly: create, edit by exact text replacement, replace, resize, move, archive, delete, and rename. It can:
- Render an app in a headless browser and screenshot it to check its own work.
- Open the canvas in the session's browser and use the same editing controls you do.
- Read and resolve comments.
- Save a named version before a large change.
- Switch the canvas between light and dark color modes and pick a theme per app.
- Start from a published template, or save the canvas as a new template.
- Attach and query data sources.
Agents can't publish a canvas; a person has to. A read-only session can't attach a canvas or change apps.
Editing apps yourself
You can change an app without a prompt:
- Double-click text to edit the literal in the source. Dynamic values (
label={row.name}) stay read-only; editing a literal inside a loop changes it for every item. - Select an element to change its props and styles in the props panel. Design-system components and HTML elements have controls for supported props; apps can expose extra controls (knobs) for things like animation timing.
- Use Show code to edit the source.
- Check an app at Native, Mobile (390×844), Tablet (768×1024), and Desktop (1440×900) sizes.
- Export a frame as PNG (with a scale), SVG, or a Figma snapshot.
Edits save automatically and go through the same undo history as agent edits.
Design directions
When the agent creates or substantially changes an app, it attaches about five suggested directions. Choosing one from Explore design directions starts a background agent in the session that builds the direction as a draft next to the source app. Nothing reaches the canvas until you keep the draft. Drafts you neither keep nor discard are dropped after an hour. If the source app changes while a direction is generating, the request fails with This frame changed. Try generating it again. Apps over 200,000 characters of code can't generate directions.
Versions
Inspect snapshots an app's previous state each time it changes, including reorders and restores. Version history lists those snapshots. You can name a version (up to 80 characters), restore any version, and restore an app you deleted. Restoring writes a new version, so you can undo it. Archive app takes an app off the map without deleting it; Restore to the map brings it back.
Comments
Comments pin to an app, an element, a region, or a specific app state. Anyone who can edit the canvas can comment, resolve, and reopen. Only a comment's author can delete it. The agent can read every comment, with its anchor, and resolve comments after addressing them, so "address the open comments" is a complete prompt.
Comments left on a walkthrough are also tied to a moment in that recording.
Sharing and access
Open the canvas's sharing settings to control access.
- General access is Restricted or Anyone in the organization. Restricted limits the canvas to its owner and the people listed.
- Organization role is Can view or Can edit: what everyone gets when general access is Anyone in the organization.
- People get Can view or Can edit per person. Add them by email; each person must be a member of your organization.
Only the canvas owner (the person whose session created it) can change access. The owner always has edit access. Changing access disconnects other open tabs so they reconnect with the new permissions.
A canvas created from a private session follows that session instead: only the session's owner and participants can open it, and the sharing settings show Access follows the private session. Manage collaborators in that session. Making a session private also makes canvases it created private.
Modes
- Edit mode: people who can edit a canvas always see its latest state, with the editing tools, and it updates live as edits land.
- View only: people who can only view a canvas open it at its latest state and keep seeing it as it was then. When it changes, New changes are available appears with See latest.
- Present mode:
/canvas/<canvas-id>/presentshows the canvas's prototypes at full width. It updates live for people who can edit and shows the same See latest prompt for everyone else. Open it with Present; Copy present link copies its address.
A canvas needs at least one app to be shared (Add an app before publishing the canvas).
Your sharing role decides between edit mode and view only; there is nothing to switch. On phones, canvases open view only whatever your role; if you can edit, they still update live.
Links
Links to apps and frames open for people signed in to Inspect who have access. In Slack, links to a canvas or walkthrough unfurl with a preview only when the canvas is shared with the organization and didn't come from a private session; up to five canvas links unfurl per message. Other links fall back to the regular session unfurl.
Templates
When templates are enabled for your organization, Templates at https://app.inspect.com/canvas/templates lists canvases that people and agents start from.
- In a canvas's options menu, choose Save as template. This copies the apps into a new, unpublished template canvas you own.
- Edit the template like any canvas.
- Publish it with When to use it (required, up to 2,000 characters). Agents read this text to choose a template. Turn on Anyone in the organization can use it to let everyone view and start from it; only editors can change it.
Add from a template copies a template's published apps onto your canvas. Publishing a template again doesn't change canvases already made from it. Read-only users can't publish templates.
Older single-app templates also appear on this page for people with the Manage design systems role, who can edit their name and description, set Available to to Personal (the creator and agents in their sessions) or Everyone (any canvas agent in a matching workspace), and delete them.
Troubleshooting
The canvas doesn't exist or you don't have access. Ask the owner to share it, or ask a participant of its private session to add you there.
Only the person whose session created the canvas can change sharing.
Change the session's participants or visibility instead.
Sharing works only with people already in your Inspect organization.
Your account is read-only. An admin can change your role in Users and roles.
You can view the canvas but can't publish it.
Start a writable session to work on the canvas.