visualize_branch_tree
Renders a design, preset, or feature branch tree as a Mermaid flowchart, showing branches, merges, cherry-picks, and undo history so you can inspect version lineage at a glance.
Instructions
Render a design / preset / feature branch tree as a Mermaid flowchart TD diagram.
Free door, tiered answer — Free: Branch · merge · cherry-pick · undo, on the designs you keep · Pro: Branch · merge · cherry-pick · undo, on every design · Business: ✓ · Enterprise: ✓.
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": {
"artifact_id": "<artifact_id>"
},
"name": "visualize_branch_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | ``"rich"`` (default) adds size, outcome and reference lines under each version's note. ``"simple"`` keeps the version and its note. ``"timeline"`` uses a horizontal ``flowchart LR`` layout — better for long single-branch histories. Default: "rich". | |
| artifact_id | Yes | The id of the artifact whose branch tree you want rendered. For designs: the design_id. For presets: the preset_id. For features: the feature_id. | |
| max_commits | No | Truncate to the newest N commits across all branches. Default 50 keeps diagrams readable inline. Pass 0 for no cap. Default: 50. | |
| artifact_type | No | One of ``"design"`` / ``"preset"`` / ``"feature"``. Selects which branch store to query. Default ``"design"``. Default: "design". |