gp_recall
Find a symbol definition by name — returns kind, file:line, and signature. Pre-indexed search avoids false positives from comments or strings.
Instructions
Find a symbol definition by name — returns kind, file:line, and signature. ALWAYS use instead of grep -rn "function X" or reading files to locate a definition: pre-indexed, no false positives from comments or strings, sub-millisecond. Pass substring:true for partial-name searches. Do NOT use for "who calls X?" — use gp_callers for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Symbol name to look up. | |
| limit | No | Max results (default 10). | |
| substring | No | Enable substring match (default false). | |
| path | No | Repo root with a GraphPilot index. Optional: when omitted, resolves via GRAPHPILOT_ROOT, MCP workspace roots, parent walk, or a single ~/.graphpilot index. |