find_component_usages
Search across the codebase to locate all usages of a component, hook, or service, including imports and JSX/template references, for impact analysis.
Instructions
Find where a component, hook, or service is used (imported and rendered in templates/JSX) across the entire codebase. Searches components, pages, hooks, services, etc. Returns files, parent items, and line numbers with usage type (template, jsx, or import). Useful for impact analysis.
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": "find_component_usages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name to search for (e.g., "Button", "useHandoffState", "patientService") |