Skip to main content
Glama

RepoMap

by pdavis68

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

NameRequiredDescriptionDefault
context_linesNo
include_definitionsNo
include_referencesNo
max_resultsNo
project_rootYes
queryYes

Input Schema (JSON Schema)

{ "properties": { "context_lines": { "default": 2, "title": "Context Lines", "type": "integer" }, "include_definitions": { "default": true, "title": "Include Definitions", "type": "boolean" }, "include_references": { "default": true, "title": "Include References", "type": "boolean" }, "max_results": { "default": 50, "title": "Max Results", "type": "integer" }, "project_root": { "title": "Project Root", "type": "string" }, "query": { "title": "Query", "type": "string" } }, "required": [ "project_root", "query" ], "type": "object" }

Other Tools from RepoMap

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/pdavis68/RepoMapper'

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