mcp-server-tree-sitter

by wrale
MIT License
33
  • Apple
  • Linux

find_usage

Locate all instances of a symbol in a codebase by specifying project, symbol, file, and language. Returns precise usage locations.

Instructions

Find usage of a symbol.

Args: project: Project name symbol: Symbol name to find file_path: Optional file to look in (for local symbols) language: Language to search in Returns: List of usage locations

Input Schema

NameRequiredDescriptionDefault
file_pathNo
languageNo
projectYes
symbolYes

Input Schema (JSON Schema)

{ "properties": { "file_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "File Path" }, "language": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Language" }, "project": { "title": "Project", "type": "string" }, "symbol": { "title": "Symbol", "type": "string" } }, "required": [ "project", "symbol" ], "title": "find_usageArguments", "type": "object" }
ID: k35mqkr8j9