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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"componentName": "<componentName>"
},
"name": "get_component_props"
}
}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) | . |