Angular: declaration of a template symbol
ng_template_definitionMaps a position in an Angular template to its TypeScript declaration using 0-based line/character coordinates, linking template usage to the underlying component code.
Instructions
From a position in an Angular template (.html or inline in .ts) to its TypeScript declaration. line and character are 0-based, as in LSP.
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": {
"file": "<file>",
"line": "<line>",
"character": "<character>"
},
"name": "ng_template_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the template: .html, or .ts with an inline template | |
| line | Yes | ||
| character | Yes |