What problem does it solve?
Install and configure react-grab to capture React component context (file path, component name,
HTML markup) from any browser UI element for AI coding agents. Use when you want to point at a
UI element in the browser and instantly copy its React component name, source file path, and HTML
to clipboard for Claude Code, Cursor, Copilot, Gemini, or Codex. Triggers on: react-grab, grab,
grab element context, copy component to ai, point and copy to claude, ui context clipboard,
element to ai, click component copy, grab ui component, react component inspector,
browser element context, component source file, copy element context, feed element to ai,
element picker, grab react component, inspect element ai, component to clipboard, react devtools ai.
Core Features & Use Cases
- Capture element context (componentName, filePath, stack) and clipboard-ready HTML
- Work with multiple AI agents (Claude Code, Cursor, Copilot, Gemini, Codex) and MCP
- Provide programmatic access via primitives API and MCP tool; supports plugin system
- Use in development to attach precise UI context to AI prompts for automated code changes
Quick Start
Install react-grab in development mode and connect it to an AI agent using the provided scripts.