get_component_detail
Retrieve detailed metadata for any frontend item by name, including props, hooks, and data flow. Resolves ambiguous names by suggesting file paths.
Instructions
Get detailed information about a specific component, page, hook, service, adapter, or store by name. Returns full metadata including props, hooks, state, child components, event handlers, data fetching pattern, test ids, form-field selectors, accessibility, API endpoints, and architecture layer. If the name matches multiple items, returns ambiguous with candidates — re-call with file.
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": {
"name": "<name>"
},
"name": "get_component_detail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional file path to disambiguate if multiple items have the same name | |
| name | Yes | Item name (e.g., "Button", "PatientDetail", "useHandoffState", "patientAdapter") |