---
title: "Edit an artifact with the agent"
description: "Open an artifact in Build Mode, ask the agent for changes, variations or controls, and set its size."
url: https://help.modeinspect.com/en/articles/52-edit-an-artifact-with-the-agent
collection: "Build mode"
updated: 2026-11-27
language: en
---

# Edit an artifact with the agent

Open an artifact in Build Mode, ask the agent for changes, variations or controls, and set its size.

Change an artifact by talking to the agent, then compare versions side by side before you build one. Nothing you do here changes your codebase.

**Before you start**

-   An artifact on the canvas, see [Create an artifact](https://help.modeinspect.com/en/articles/53-create-an-artifact.md).
    

## Steps

1.  Select the artifact on the canvas and click **Open Build Mode** in the design panel. The artifact fills the stage, and a new agent's chat reads "Select an element in the artifact or describe a change to edit it."
    
2.  Describe a change, or select an element in the artifact first and say what to do with it. The agent edits the artifact and the stage reloads.
    
    ![Build Mode on the IssueRow artifact. The agent's answer is on the left, and the row on the stage now has a bold title and an amber background](https://staticfiles.gleap.io/p6a1872808f187689a3937fa3/fpbbs7FoQj1VtWfhQfK1Nj5wgclGI9mXTmnBLFLHCK1h4qpkl3sSJRPtbCK6ZtGYSm1MLMAAaXm.png)
3.  To compare directions, ask for variations: "three variations of this row's layout". A bar at the bottom of the stage lists **Original** and the new variants. Click one to show it.
    
4.  To tune a design, ask for controls: "controls for the row's padding and accent color". Click the sliders icon under the message field (tooltip **Controls**). The panel takes the chat's place, with a field per control. The artifact updates as you change a value, and the arrow next to a changed group resets it.
    
    ![The Controls panel on the left with Padding and Colors fields, and the variants bar at the bottom of the stage with Original selected](https://staticfiles.gleap.io/p6a1872808f187689a3937fa3/YLUhm3iTg6dolkxnzXMO9IQ3Nn5tBOPGYEoURVctt67hXzCJ9B6HM9p0zgg7EmcLgzLMte2Ui5L.png)

Once a version looks right, build it into your app, see [Build an artifact into your codebase](https://help.modeinspect.com/en/articles/51-build-an-artifact-in-your-codebase.md).

## Set the size

Select the artifact on the canvas. Its **Size** group in the design panel has the same widths as a Portal's preview resolution, plus **W** and **H** fields. In Build Mode the same menu is labelled **Size**.

## If it does not work

-   **"Importing interactions from the product"** in the chat: the artifact is still being made. You can send a message once it finishes.
    
-   **"Artifact failed to load"** above the stage: ask the agent to fix the artifact.
    

## Related

-   [What is an artifact](https://help.modeinspect.com/en/articles/54-what-is-an-artifact.md)
    
-   [Chat with the agent](https://help.modeinspect.com/en/articles/50-chat-with-the-agent.md)
    
-   [Share an artifact](https://help.modeinspect.com/en/articles/55-share-an-artifact.md)

## Related

- [What is Build Mode](https://help.modeinspect.com/en/articles/30-what-is-build-mode.md)
- [Open Build Mode and move around your app](https://help.modeinspect.com/en/articles/29-open-build-mode-and-move-around-your-app.md)
- [Preview your app at different screen sizes](https://help.modeinspect.com/en/articles/27-preview-your-app-at-different-screen-sizes.md)
- [From a captured frame to code](https://help.modeinspect.com/en/articles/25-from-a-captured-frame-to-code.md)
- [Attach a frame to the build chat](https://help.modeinspect.com/en/articles/22-attach-a-frame-to-the-build-chat.md)
