treesitter_get_node_at_point
Get the AST node at a given line and column in a source file. Specify file, row, and column to retrieve the exact syntax tree node at that position.
Instructions
Return the AST node covering a specific point (row, column).
Args: file_path: Path to the source code file row: Row number (0-based) column: Column number (0-based) max_depth: Maximum depth of the AST to return. 0 for just the node. output_file: If provided, writes result to this file instead of returning. Useful for large outputs to prevent context overload.
Returns: AST node as dictionary OR if output_file is set: {"status": "written", "output_file": "...", "bytes_written": N}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| row | Yes | ||
| column | Yes | ||
| file_path | Yes | ||
| max_depth | No | ||
| output_file | No |