search_identifiers
Search code files for specific identifiers to find their locations with file paths, line numbers, and surrounding context for better code navigation and understanding.
Instructions
Search for identifiers in code files. Get back a list of matching identifiers with their file, line number, and context. When searching, just use the identifier name without any special characters, prefixes or suffixes. The search is case-insensitive.
Args: project_root: Root directory of the project to search. (must be an absolute path!) query: Search query (identifier name) max_results: Maximum number of results to return context_lines: Number of lines of context to show include_definitions: Whether to include definition occurrences include_references: Whether to include reference occurrences
Returns: Dictionary containing search results or error message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context_lines | No | ||
include_definitions | No | ||
include_references | No | ||
max_results | No | ||
project_root | Yes | ||
query | Yes |