get_component_props
Retrieve all props used by a specific React component, including types and default values, to document component APIs and verify prop usage.
Instructions
Get detailed information about all props used by a specific component.
Use this tool when you need to:
Understand what props a component accepts and uses
Document component APIs
Check if a component has certain props before using it
Analyze component interfaces
EXAMPLES:
Get all props for Button component in current directory: { "componentName": "Button" }
Check Modal component props in specific directory: { "componentName": "Modal", "directory": "src/components" }
Document Card component API in UI directory: { "componentName": "Card", "directory": "src/ui" }
Analyze Input component interface in current directory: { "componentName": "Input" }
Returns:
All props used by the component
Prop types and default values
Usage statistics across the codebase
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentName | Yes | Name of the component to analyze (e.g., "Button", "Modal", "Card") | |
| directory | No | Directory to search in (defaults to current directory) | . |