get_doc
Retrieve JSDoc/TSDoc comments for any TypeScript symbol, including methods via Class.method syntax, to understand code without reading source.
Instructions
Extracts JSDoc/TSDoc comments for a symbol (function, type, class, variable). Supports Class.method syntax.
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": {
"path": "<path>",
"name": "<name>"
},
"name": "get_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Symbol name (e.g., 'Config', 'MyClass.method', 'DEFAULT_VALUE') | |
| path | Yes | Absolute path to the TS/JS file |