Skip to main content
Glama

Tree-Hugger-JS MCP Server

by qckfx

get_node_at_position

Retrieve detailed AST node information at a specific cursor position for debugging, refactoring, and code analysis. Use line and column inputs to identify node type, debug syntax errors, or assist IDE integration.

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

NameRequiredDescriptionDefault
columnYesColumn number (0-based) - the character position within the line
lineYesLine number (1-based) - the line where cursor is positioned

Input Schema (JSON Schema)

{ "properties": { "column": { "description": "Column number (0-based) - the character position within the line", "type": "number" }, "line": { "description": "Line number (1-based) - the line where cursor is positioned", "type": "number" } }, "required": [ "line", "column" ], "type": "object" }

Other Tools from Tree-Hugger-JS MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/qckfx/tree-hugger-js-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server