find_node
Resolve 1-10 symbols to filePath + line bounds + signature. selectors: array keyed by symbol (bare name) / symbolPath / filePath / nodeId; a flat query/name/single field also works. includeSource=true adds the excerpt, includeSummaries=true AI summaries. A node from a SCIP-indexed package also carries scip_package_name (and scip_package_version / scip_manager when known). For a class/interface/struct/protocol it carries a compact heritage field (<=5 ancestors, <=20 descendants, omitted when empty); includeHeritage:false skips it, includeCrossRepo:true walks cross-repo heritage. {resolved:false, candidates} = no confident match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 5, max 20). | |
| feedback | No | Optional: report how a previous answer worked out; piggybacks on any call. | |
| commitSha | No | Pin reads to one indexed revision (7-40 hex). Graph tools error with revision_not_indexed when it is not an indexed revision of the scoped repository, or revision_not_servable when that revision's graph was superseded by a later reindex, and echo the revision served back as commitSha; source ops read git objects, so any commit works there. Exception: a kept revision (revisions rows flagged architectureSnapshot) still serves map view:"architecture" as a preserved snapshot. | |
| projectId | No | Project id from init/list_projects. Omit for the active project. | |
| selectors | Yes | Symbols to resolve (1-10), each by nodeId, symbol, symbolPath, or filePath. | |
| repository | No | Repository full name, e.g. "owner/repo". Omit when the project has one repository. | |
| sourceMode | No | With includeSource: "signature" returns the declaration only. | |
| includeSource | No | Attach source for resolved nodes. | |
| expansionLimit | No | Cap on expanded related nodes (default 15, max 100). | |
| includeHeritage | No | Default true. Include a compact heritage field for a class/interface/struct/protocol. false skips it on bulk scans. | |
| includeCommunity | No | Attach the symbol's Louvain module (community name). Off by default (extra edge lookup). | |
| includeCrossRepo | No | With includeHeritage on, walk cross-repo heritage edges. No-op when includeHeritage is off. | |
| includeSummaries | No | Attach generated summaries when available. |