Skip to content

feat: add React getComponent agent tool#306

Merged
V3RON merged 4 commits into
mainfrom
feat/react-agent-get-component
Jun 15, 2026
Merged

feat: add React getComponent agent tool#306
V3RON merged 4 commits into
mainfrom
feat/react-agent-get-component

Conversation

@V3RON

@V3RON V3RON commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

What is this?

This PR adds a getComponent tool to the built-in React agent domain. The tool gives agents one call for a component summary plus inspected props, state, and hooks, instead of requiring separate calls for each section.

How does it work?

The React tree store reuses the existing full inspection request path and returns the requested sections from the inspected snapshot. Callers can choose which sections to include and can bound nested serialization depth. The response includes node details, selected inspection data, and partial-result metadata when React DevTools does not provide every requested section.

Why is this useful?

Agents can inspect a component faster and with less orchestration. The existing paginated props, state, and hooks tools remain available for larger data, while getComponent covers the common case where a compact component-level snapshot is enough to decide the next debugging step.

Add combined React component inspection for selected props, state, and hooks.
@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:35pm

Request Review

@V3RON V3RON merged commit 7b41dad into main Jun 15, 2026
4 checks passed
@V3RON V3RON deleted the feat/react-agent-get-component branch June 15, 2026 07:26
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