Skip to content

feat: add React getTree agent tool#304

Merged
V3RON merged 3 commits into
mainfrom
feat/react-agent-get-tree
Jun 12, 2026
Merged

feat: add React getTree agent tool#304
V3RON merged 3 commits into
mainfrom
feat/react-agent-get-tree

Conversation

@V3RON

@V3RON V3RON commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

What is this?

This PR adds a getTree tool to the built-in React agent domain so agents can fetch the current React component hierarchy in one call. It fills the gap between broad searchNodes queries and node-by-node traversal with getChildren.

How does it work?

The React tree store now exposes a paginated tree traversal that can start from all current roots or from a specific root node. Callers can limit traversal depth, page through larger trees with the existing cursor format, and receive each item with its node summary, child IDs, and depth. The tool is registered in the middleware React domain, added to the SDK static tool list, and documented in the Rozenite agent skill reference.

Why is this useful?

Agents can quickly understand the shape of a running app before inspecting props, state, hooks, or children. The new tool reduces the number of calls needed for common React debugging workflows while keeping the existing granular tools unchanged.

Expose a paginated React tree tool with depth and subtree scoping for agent workflows.
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
rozenite Skipped Skipped Jun 10, 2026 1:26pm

Request Review

@V3RON V3RON merged commit 58c98ec into main Jun 12, 2026
4 checks passed
@V3RON V3RON deleted the feat/react-agent-get-tree branch June 12, 2026 13:56
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.

1 participant