collect_component_instances
Collect all instances of a React component with props and HTML mapping to compare usages, understand behavior, and extract patterns.
Instructions
Collect all instances of a React component type with props→HTML mapping. Useful for understanding component behavior, comparing different usages, or extracting component patterns. Returns props, rendered HTML, and minified source for each instance.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "collect_component_instances"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Component name to search for (case-insensitive). If omitted, collects all components. | |
| maxInstances | No | Maximum instances to collect per component type (default: 20) |