MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / listLine

Method listLine

src/mcp/tools.ts:8322–8322  ·  view source on GitHub ↗
(n: Node)

Source from the content-addressed store, hash-verified

8320 ...definitionCapOrder(nodes.filter((n) => isGenerated(n.filePath))),
8321 ];
8322 const listLine = (n: Node) => `- \`${n.name}\` (${n.kind}) — ${n.filePath}:${n.startLine}`;
8323 const omittedLine = (omitted: Node[]) => `- … +${omitted.length} more: ${describeOmittedDefinitions(omitted)}`;
8324 if (!includeCode) {
8325 const prefix = [header, '', 'Re-query with `includeCode: true` to get every body in one call — no need to pick one first.', ''];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected