Angular: find usages
ng_find_usagesFind all usages of Angular components, directives, pipes, or services in your workspace by supplying a file path or selector. Returns elements, attribute selectors, pipes, and class references.
Instructions
Usages of a component, directive, pipe or service across the workspace: elements, attribute selectors, pipes and class references. Accepts a file path or a selector.
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": {
"selectorOrFile": "<selectorOrFile>"
},
"name": "ng_find_usages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Scope the search to this folder (a file means its folder); default is the whole workspace | |
| input | No | Only tag usages binding this input/output; entries then point at the binding | |
| limit | No | How many usages to return, 100 by default | |
| selectorOrFile | Yes | Path to the declaring .ts, or the selector itself: app-user-card, [appDrag], money |