Angular: component contract
ng_component_infoGet the public contract of an Angular component or directive directly from .ts or .html files—inputs, outputs, class members, and decorator metadata—without needing an ngserver.
Instructions
Public contract of a component or directive: inputs, outputs, class members, decorator metadata. Accepts .ts or .html. Reads the source; ngserver is not needed.
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>"
},
"name": "ng_component_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the component (.ts) or to its template (.html) |