Render (layout spec)
codetopo_renderRender a code graph from an index database using a deterministic layered or force layout, with optional structure-only scope for focused diagrams.
Instructions
The graph's layout specification: 'layered' (layout spec v1, the default) or 'force' (Fruchterman-Reingold, layout spec v2 - deterministic, fixed parameters recorded in the spec). Above the force ceilings the answer is a stated decline naming the ceiling, not a partial drawing. The same spec objects serve the CLI's render command and the HTTP render route.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"db_path": "<db_path>"
},
"name": "codetopo_render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Which node universe to lay out: 'full' (default, every node) or 'structure' (structural kinds only — package/file/module/class/interface/doc — with symbols rolled up to their nearest structural ancestor; layered layout only). A structure answer records scope and the full graph's node count in the object. | |
| layout | No | Which layout to compute. Default: layered. | |
| db_path | Yes | Path to the index database. |