diff_design_versions
Compare two design versions to produce a unified diff of changes and, when both have slicer estimates, show the resulting print-time change.
Instructions
Compute a unified diff between two design versions.
Version IDs are interpreted as ``<design_id>:<version_number>``
(e.g. ``my-coaster:2``). If no colon is present the string is
treated as a plain version number and the tool will attempt to
locate a design that contains that version.
Args:
version_id_a: The "from" version in ``design_id:N`` format.
version_id_b: The "to" version in ``design_id:N`` format.
Returns:
A unified diff string showing changes from version A to B,
and ``print_time_change`` when both versions keep the
slicer's estimate ("At the sliced speed, the slicer's estimate
went from about 2h 50m to about 3h 1m, 11m longer.").
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": {
"version_id_a": "<version_id_a>",
"version_id_b": "<version_id_b>"
},
"name": "diff_design_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version_id_a | Yes | The "from" version in ``design_id:N`` format. | |
| version_id_b | Yes | The "to" version in ``design_id:N`` format. |