get_node_at_position
Retrieve AST node details at a specific cursor position to debug syntax errors, analyze code structure, assist refactoring, and support IDE integration. Input line and column to locate nodes precisely.
Instructions
Get detailed AST node information at a specific cursor position. Perfect for debugging and precise analysis.
Examples: • Debug syntax errors: get_node_at_position(15, 23) to understand what's at error location • Understand code structure: get_node_at_position(line, col) to see AST node type at cursor • Refactoring assistance: get_node_at_position(line, col) to identify exact node before transformation • IDE integration: get_node_at_position(line, col) for hover information • Pattern development: get_node_at_position(line, col) to understand node structure for pattern writing
Input Schema
Name | Required | Description | Default |
---|---|---|---|
column | Yes | Column number (0-based) - the character position within the line | |
line | Yes | Line number (1-based) - the line where cursor is positioned |