Skip to content

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

  1. Open Studio, sign in, and choose Connect AI. Studio shows a 6-character pairing code, valid for 30 minutes.
  2. In an agent that has the Shavin MCP server, ask it to connect with that code.
  3. Describe what you want. The agent builds it on the canvas.
Studio's Connect AI panel showing the pairing code 7BKGHM, a Copy as prompt button, a waiting indicator, the time left, and three steps for connecting an agent.

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

Shavin Studio with a connected agent: the layers panel lists the generated sections, the canvas shows a pricing page with two plans and an FAQ, and the header reads Connected.

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

ToolWhat it does
connect_studioJoins your canvas with the pairing code. Every other Studio tool needs this first.
compose_to_canvasBuilds a multi-section layout from a written description and places it in a new frame.
inject_blocksPlaces exact content: either a block tree, or a TSX module that Studio turns into editable layers.
get_studio_stateReads the frames, layers and theme on your canvas, including your own edits.
set_studio_themeChanges brand, gray, radius, scaling, panel style or dark mode.
clear_studio_canvasEmpties the canvas.
duplicate_frameCopies a frame (new ids) next to the original.
export_frameRenders a frame to PNG, JPG or WebP (1x to 3x) and saves it to a local path. Local MCP only.
disconnect_studioEnds 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.
Configure Theme
Theme
Brand Color
Custom
Gray Family
Appearance
Radius
Scaling
Panel Style
Heading Font
Body Font