get_component_props
Retrieve TypeScript prop interface for a UI component, including prop names, types, required status, default values, and JSDoc descriptions. Specify by component name or file path.
Instructions
Get TypeScript prop interface for a specific component. Returns prop names, types, required status, default values, and JSDoc descriptions. Supports both interface and type alias prop definitions. Provide either name (catalog lookup) or componentPath (file path). If the result is ambiguous, re-call with file to disambiguate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional path substring to disambiguate when `name` matches multiple files | |
| name | No | Catalog component name (e.g., "Button"). Alternative to componentPath. | |
| componentPath | No | Relative path to component file from workspace root (e.g., "src/components/ui/button.tsx") |