compare_trees
Compare two LTpowerPlanner power trees to identify added, removed, or changed parts, tabs, and net connections, with optional solved-value and layout differences.
Instructions
Structural diff of two open trees (a = before, b = after): parts added, removed or
changed (by id), tabs added or removed, and connections compared as nets. Layout
(positions, colours) is hidden unless include_layout=true. With include_solve=true,
per-part solved numbers (watts) are compared too (kind 'result') and solve_delta gives
b minus a in watts for pin_w, pout_w and ploss_w. Give tab_a/tab_b to restrict the
comparison to one tab of each.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "compare_trees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| tab_a | No | ||
| tab_b | No | ||
| include_solve | No | ||
| include_layout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||