Find component relations
find_component_relationsRetrieve all child/parent components, hooks, stores, endpoints, and file imports for a given component or route name to avoid manual grepping.
Instructions
Given a component or route name, return everything related: child components it renders, parents that render it, hooks/stores used, endpoints it calls, and file import relationships. Use instead of grepping for usages.
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_relations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | component or route name, e.g. LoginPage or /login | |
| detail | No | compact (default) = terse line output; full = expanded lists | |
| max_tokens | No | response token budget (default 2000) |