find_node_at_position
Locate the AST node at a given line and column in TypeScript or JavaScript files, enabling precise code analysis and navigation.
Instructions
Identifies the AST node at a given cursor position (line and column) in a TypeScript/JavaScript file
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>",
"line": "<line>",
"column": "<column>"
},
"name": "find_node_at_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number (1-based) | |
| path | Yes | Absolute path to the TS/JS file | |
| column | Yes | Column number (1-based) |