Skip to content

docs(mcp): document batched component edits - #622

Open
Thimorrow wants to merge 3 commits into
doop-design:mainfrom
Thimorrow:docs/component-batch-guide
Open

Thimorrow wants to merge 3 commits into
doop-design:mainfrom
Thimorrow:docs/component-batch-guide

Conversation

@Thimorrow

Copy link
Copy Markdown

Closes #535.

  • Use one URL-bound image for large icon sets. Doop parses the entire component template each time it renders an instance.
  • Use update_instances for prop changes. The guide explains how each agent finds instance IDs and how to batch changes per frame.
  • Test that both agents can read the IDs and that one call updates two instances in a single frame write while reporting a missing ID.

Local verification: 90 focused tests passed, along with typecheck, lint, formatting, and docs checks. A separate test exercised finding and editing a visible nested instance with the built-in agent.

The component guide and the update_instances description now say how both
agents find instance ids (get_frame for MCP agents, get_frame_html for the
built-in agent), to batch prop changes in one call per frame, and to bind one
image prop instead of a conditional template per icon.

A test covers a two-instance batch, the frame being written once, and the ids
in the compact read.
@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

Documents how both agents find instance IDs and batch prop changes by frame.

  • Agents can find instance IDs and change several props together.

Reviews (1) · Last reviewed commit: "docs(mcp): clarify instance ID lookup" · Reviewed by Greptile

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent guide: warn against one-branch-per-option components and explain update_instances

1 participant