> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gesso.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Import your app

> Bring the real screens of your running product onto a Gesso canvas.

Your coding agent captures each page of your running app and sends it to Gesso
with `ingest_design`. The result is one canvas holding faithful copies of your
real screens, which you can then restyle, critique, or use as the ground for
new screens in the same brand. Importing is free.

## Start an import

Paste this into your agent:

```text theme={null}
Use the Gesso MCP to bring this app's screens onto a new Gesso canvas. Start
the dev server, capture each main route, and keep every screen in the same
Gesso project.
```

Open the project in a browser tab while it runs: frames arrive one by one.

## What makes a faithful capture

The agent captures the rendered page, not the source: the real DOM with its
stylesheets inlined, at the width you care about, with a screenshot attached.
A few things decide the quality:

* **Inline what the page needs.** Images are inlined at their displayed size
  and fonts are subset, so the screen still looks right away from your machine.
* **One project.** The first `ingest_design` call creates the project; later
  calls pass its `project_id`.
* **Existing screens are imported, not generated.** `generate_direction`
  designs from a brief and cannot see your product. For a screen that already
  exists, capture it.

A screen can be up to 800 KB of HTML, sent in chunks when it is larger than a
single tool call carries comfortably.

## Your design system comes with it

On a new project, the import brings your app's design system along with its
screens. Your agent sends a component sheet: the app's components and their
states, its fonts, its icon set, and optionally its UI philosophy and app
structure. The `gesso-mcp` skill carries the contract and templates, so the
agent knows what to send.

* **New screens are built from your parts.** In that project, a screen made
  by `generate_direction`, in the chat, as a flow or from a sketch uses your
  components, fonts and icons instead of a look Gesso picked.
* **You can see what arrived.** The Design System panel lists the components
  as live previews, with an Iconography section.
* **A screen that needs something your kit lacks stops first.** When a new
  screen calls for a component the sheet does not have, `generate_direction`
  stops before drawing, charges no credits, and tells your agent which
  components to add. Add them to the sheet, import it again, and re-run.

## Missing images

Your app's images may point at your machine: a `localhost` URL, a relative
path. Gesso's canvas is hosted, so those cannot load there. The import tells
your agent which images still point elsewhere, and on the canvas a missing
image shows as a calm neutral block instead of a broken icon.

To fix them, ask your agent to inline those images (at their displayed size)
and import the screen again into the same `project_id`.

## After the import

| You want to | Use |
| - | - |
| Restyle a real screen (dark mode, a rebrand) | `edit_direction` on the imported screen |
| See alternatives that keep your content | `explore_directions`, or `vary_component` for one component |
| Review a screen before shipping | `critique_design` |
| Design a new screen in the same brand | `pin_brand_system`, then `generate_direction` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.