Angular: template errors
ng_template_diagnosticsGet Angular compiler errors for template files after edits. Accepts .html/.ts files singly or in batches, returning diagnostics grouped per file.
Instructions
Angular compiler errors for a template after an edit. Accepts .html or .ts; files checks a batch. An entry anchored in the companion file names it in file. An empty list means "no errors" only when the server is healthy.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ng_template_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path to the template or to the component | |
| files | No | Batch of up to 20 templates; the answer groups diagnostics per file |