Studio and AI
Your AI agent can build directly on a Shavin Studio canvas while you watch. What it places are real, editable layers, and Studio exports them as the same TSX you would write in code.
Connect your agent
- Open Studio, sign in, and choose Connect AI. Studio shows a 6-character pairing code, valid for 30 minutes.
- In an agent that has the Shavin MCP server, ask it to connect with that code.
- Describe what you want. The agent builds it on the canvas.

The Connect AI panel in Studio. Give the code to your agent; it expires after 30 minutes.
Connect to my Studio with code 7BKGHM. Build a pricing page for
"Flowstate" with three plans: Starter (free), Pro ($29) and Team
(contact us). Highlight Pro. Use dark mode.While the agent works

A pricing page an agent built from the pricing and FAQ blocks. The layers it created are on the left, and Studio shows the agent as connected.
- The canvas locks while a change is applied, so your edits and the agent's don't collide.
- Each change is one undo step. Press ⌘Z to take it back.
- The agent sees your edits too. Ask it to "look at the canvas" and it reads the current state before its next change.
- If the agent goes quiet for about two and a half minutes, Studio ends the session. Start a new code to reconnect.
The Studio tools
| Tool | What it does |
|---|---|
connect_studio | Joins your canvas with the pairing code. Every other Studio tool needs this first. |
compose_to_canvas | Builds a multi-section layout from a written description and places it in a new frame. |
inject_blocks | Places exact content: either a block tree, or a TSX module that Studio turns into editable layers. |
get_studio_state | Reads the frames, layers and theme on your canvas, including your own edits. |
set_studio_theme | Changes brand, gray, radius, scaling, panel style or dark mode. |
clear_studio_canvas | Empties the canvas. |
duplicate_frame | Copies a frame (new ids) next to the original. |
export_frame | Renders a frame to PNG, JPG or WebP (1x to 3x) and saves it to a local path. Local MCP only. |
disconnect_studio | Ends the session. |
Use compose_to_canvas to explore from a description, and inject_blocks when you already know the structure or have the code.
Limits today
- The agent needs the Shavin MCP server. Browser-only chat assistants cannot connect yet.
- Studio needs you to be signed in to create a pairing code.
- Code that Studio cannot model as layers stays as a locked code block on the canvas; it still exports unchanged.