mcp-server-tree-sitter

by wrale
MIT License
33
  • Apple
  • Linux

get_node_at_position

Locate the Abstract Syntax Tree (AST) node at a specific line and column in a file for precise code analysis and context retrieval.

Instructions

Find the AST node at a specific position.

Args: project: Project name path: File path relative to project root row: Line number (0-based) column: Column number (0-based) Returns: Node information or None if not found

Input Schema

NameRequiredDescriptionDefault
columnYes
pathYes
projectYes
rowYes

Input Schema (JSON Schema)

{ "properties": { "column": { "title": "Column", "type": "integer" }, "path": { "title": "Path", "type": "string" }, "project": { "title": "Project", "type": "string" }, "row": { "title": "Row", "type": "integer" } }, "required": [ "project", "path", "row", "column" ], "title": "get_node_at_positionArguments", "type": "object" }
ID: k35mqkr8j9