explain_rank
Break down a node's CodeRank score by showing its callers, importers, and inheritors, plus semantic relevance to a query when provided.
Instructions
Explain the CodeRank score components for a specific node.
Returns a Markdown report showing the node's structural position in the graph: how many nodes call it, import it, or inherit from / implement / extend it; its global CodeRank score; and, when a query is provided, its semantic relevance and proximity to the query seed set.
:param node_id: Stable node identifier, e.g.
meth:Sources/Networking/Client.swift:HTTPClient.send.
:param q: Optional query string. When provided, semantic score and
proximity to the query seed set are included in the report.
:return: Markdown-formatted explanation of the node's rank components.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | ||
| node_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |