surfcad-mcp 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,12 +2,29 @@
2
2
  "version": 1,
3
3
  "bridgeVersion": 1,
4
4
  "generatedBy": "npm run export:agent",
5
- "count": 178,
5
+ "count": 188,
6
6
  "$defs": {
7
7
  "status": {
8
8
  "type": "object",
9
9
  "additionalProperties": false,
10
10
  "properties": {
11
+ "partId": {
12
+ "type": "string"
13
+ },
14
+ "partName": {
15
+ "type": "string"
16
+ },
17
+ "script": {
18
+ "type": "string"
19
+ },
20
+ "runState": {
21
+ "type": "string",
22
+ "enum": [
23
+ "not_run_yet",
24
+ "ok",
25
+ "failed"
26
+ ]
27
+ },
11
28
  "volume": {
12
29
  "type": [
13
30
  "number",
@@ -43,11 +60,14 @@
43
60
  }
44
61
  ]
45
62
  },
46
- "partName": {
47
- "type": "string"
48
- },
49
63
  "featureCount": {
50
64
  "type": "integer"
65
+ },
66
+ "bodyCount": {
67
+ "type": [
68
+ "integer",
69
+ "null"
70
+ ]
51
71
  }
52
72
  }
53
73
  },
@@ -68,6 +88,23 @@
68
88
  "type": "object",
69
89
  "additionalProperties": false,
70
90
  "properties": {
91
+ "partId": {
92
+ "type": "string"
93
+ },
94
+ "partName": {
95
+ "type": "string"
96
+ },
97
+ "script": {
98
+ "type": "string"
99
+ },
100
+ "runState": {
101
+ "type": "string",
102
+ "enum": [
103
+ "not_run_yet",
104
+ "ok",
105
+ "failed"
106
+ ]
107
+ },
71
108
  "volume": {
72
109
  "type": [
73
110
  "number",
@@ -103,11 +140,14 @@
103
140
  }
104
141
  ]
105
142
  },
106
- "partName": {
107
- "type": "string"
108
- },
109
143
  "featureCount": {
110
144
  "type": "integer"
145
+ },
146
+ "bodyCount": {
147
+ "type": [
148
+ "integer",
149
+ "null"
150
+ ]
111
151
  }
112
152
  }
113
153
  },
@@ -152,14 +192,19 @@
152
192
  },
153
193
  {
154
194
  "name": "set_script",
155
- "description": "Write the editor, run the script, and record one undo step when the text changes.",
195
+ "description": "Freehand fallback after insert_* feature tools. part_id is required and must be the active part's opaque surf id (a vault path or display name is unknown_part; another id is part_mismatch). Writes that part, runs it, and records one undo step when the text changes. Working copy only: nothing reaches git without an explicit git_save. Preserves or re-injects `// @surf-id`. Do not declare a reserved SurfCAD helper name with const, let, class, or function — the runtime passes these as function parameters: addDraft, align, array3D, booleanBodies, boundaryEdges, cboreHole, center, chamferEdges, clearanceHole, concaveEdges, convexEdges, cskHole, cut, deleteFace, draftFaces, edge, edgesBetween, edgesByOrientation, externalBody, facesByNormal, fastenerClearanceDia, fastenerMajorDia, fastenerTapDrillDia, filletAlongPath, filletEdges, getDimensions, getScaleRatio, hexPrism, hole, holePattern, holeSpan, holesOnContour, hollow, listFastenerSizes, loft, makeCrossSection, makeExtrude, makeLoft, makeRevolve, makeSweepPath, mirror, move, moveFace, offsetPlaneFrame, placeInFrame, placeOnFace, planarFaceAt, polarArray, profileCircle, profilePolygon, profileRectangle, rectTube, resolveFastenerSize, rotateContour, roundedBox, sheetMetalSolid, shell, signedFeatureEdges, solveContour, sumSqDist, sweep, sweepPoints, tapDrillHole, transformByFrame, tube, vecAdd, vecCross, vecDot, vecMul, vecNorm, vecNormalize, vecSub, workplaneFromFace. A redeclaration fails; rename your variable (for example `const cut`).",
156
196
  "args": {
157
197
  "type": "object",
158
198
  "additionalProperties": false,
159
199
  "required": [
200
+ "part_id",
160
201
  "source"
161
202
  ],
162
203
  "properties": {
204
+ "part_id": {
205
+ "type": "string",
206
+ "description": "Part id to write. Must match the active part. Not a vault path."
207
+ },
163
208
  "source": {
164
209
  "type": "string",
165
210
  "description": "Script text written into the editor and run."
@@ -183,6 +228,23 @@
183
228
  "type": "object",
184
229
  "additionalProperties": false,
185
230
  "properties": {
231
+ "partId": {
232
+ "type": "string"
233
+ },
234
+ "partName": {
235
+ "type": "string"
236
+ },
237
+ "script": {
238
+ "type": "string"
239
+ },
240
+ "runState": {
241
+ "type": "string",
242
+ "enum": [
243
+ "not_run_yet",
244
+ "ok",
245
+ "failed"
246
+ ]
247
+ },
186
248
  "volume": {
187
249
  "type": [
188
250
  "number",
@@ -218,11 +280,14 @@
218
280
  }
219
281
  ]
220
282
  },
221
- "partName": {
222
- "type": "string"
223
- },
224
283
  "featureCount": {
225
284
  "type": "integer"
285
+ },
286
+ "bodyCount": {
287
+ "type": [
288
+ "integer",
289
+ "null"
290
+ ]
226
291
  }
227
292
  }
228
293
  },
@@ -233,6 +298,9 @@
233
298
  },
234
299
  "errors": [
235
300
  "bad_args",
301
+ "unknown_part",
302
+ "part_mismatch",
303
+ "no_assembly",
236
304
  "internal"
237
305
  ],
238
306
  "mutates": true,
@@ -241,12 +309,13 @@
241
309
  "immediate": false,
242
310
  "uiEntry": null,
243
311
  "example": {
312
+ "part_id": "2026-10-07-20-56-31-0423-a3f9",
244
313
  "source": "let part = Manifold.cube([20, 20, 20], true);\nreturn part;\n"
245
314
  }
246
315
  },
247
316
  {
248
317
  "name": "run",
249
- "description": "Run the current editor buffer; one undo step when it is not already the stack head.",
318
+ "description": "Run the current editor buffer; one undo step when it is not already the stack head. Do not declare a reserved SurfCAD helper name with const, let, class, or function — the runtime passes these as function parameters: addDraft, align, array3D, booleanBodies, boundaryEdges, cboreHole, center, chamferEdges, clearanceHole, concaveEdges, convexEdges, cskHole, cut, deleteFace, draftFaces, edge, edgesBetween, edgesByOrientation, externalBody, facesByNormal, fastenerClearanceDia, fastenerMajorDia, fastenerTapDrillDia, filletAlongPath, filletEdges, getDimensions, getScaleRatio, hexPrism, hole, holePattern, holeSpan, holesOnContour, hollow, listFastenerSizes, loft, makeCrossSection, makeExtrude, makeLoft, makeRevolve, makeSweepPath, mirror, move, moveFace, offsetPlaneFrame, placeInFrame, placeOnFace, planarFaceAt, polarArray, profileCircle, profilePolygon, profileRectangle, rectTube, resolveFastenerSize, rotateContour, roundedBox, sheetMetalSolid, shell, signedFeatureEdges, solveContour, sumSqDist, sweep, sweepPoints, tapDrillHole, transformByFrame, tube, vecAdd, vecCross, vecDot, vecMul, vecNorm, vecNormalize, vecSub, workplaneFromFace. A redeclaration fails; rename your variable (for example `const cut`).",
250
319
  "args": {
251
320
  "type": "object",
252
321
  "additionalProperties": false,
@@ -269,6 +338,23 @@
269
338
  "type": "object",
270
339
  "additionalProperties": false,
271
340
  "properties": {
341
+ "partId": {
342
+ "type": "string"
343
+ },
344
+ "partName": {
345
+ "type": "string"
346
+ },
347
+ "script": {
348
+ "type": "string"
349
+ },
350
+ "runState": {
351
+ "type": "string",
352
+ "enum": [
353
+ "not_run_yet",
354
+ "ok",
355
+ "failed"
356
+ ]
357
+ },
272
358
  "volume": {
273
359
  "type": [
274
360
  "number",
@@ -304,11 +390,14 @@
304
390
  }
305
391
  ]
306
392
  },
307
- "partName": {
308
- "type": "string"
309
- },
310
393
  "featureCount": {
311
394
  "type": "integer"
395
+ },
396
+ "bodyCount": {
397
+ "type": [
398
+ "integer",
399
+ "null"
400
+ ]
312
401
  }
313
402
  }
314
403
  },
@@ -329,7 +418,7 @@
329
418
  },
330
419
  {
331
420
  "name": "status",
332
- "description": "Status from the last finished set_script, run, or undo.",
421
+ "description": "Status for the active part: id, name, editor script, runState (not_run_yet | ok | failed), and the last run volume/bbox/bodyCount when available. Updates when the active part changes without requiring another run. featureCount counts insert_* feature blocks, so a freehand set_script is one feature. bodyCount is null until the first run; a finished run that produced no bodies reports 0.",
333
422
  "args": {
334
423
  "type": "object",
335
424
  "additionalProperties": false,
@@ -339,6 +428,23 @@
339
428
  "type": "object",
340
429
  "additionalProperties": false,
341
430
  "properties": {
431
+ "partId": {
432
+ "type": "string"
433
+ },
434
+ "partName": {
435
+ "type": "string"
436
+ },
437
+ "script": {
438
+ "type": "string"
439
+ },
440
+ "runState": {
441
+ "type": "string",
442
+ "enum": [
443
+ "not_run_yet",
444
+ "ok",
445
+ "failed"
446
+ ]
447
+ },
342
448
  "volume": {
343
449
  "type": [
344
450
  "number",
@@ -374,11 +480,14 @@
374
480
  }
375
481
  ]
376
482
  },
377
- "partName": {
378
- "type": "string"
379
- },
380
483
  "featureCount": {
381
484
  "type": "integer"
485
+ },
486
+ "bodyCount": {
487
+ "type": [
488
+ "integer",
489
+ "null"
490
+ ]
382
491
  }
383
492
  }
384
493
  },
@@ -394,7 +503,7 @@
394
503
  },
395
504
  {
396
505
  "name": "errors",
397
- "description": "Structured errors from the last finished geometry run.",
506
+ "description": "Structured errors from the last finished geometry run. message is the same text the viewport shows. featureType, featureLabel, and featureIndex identify the failed feature when known. detail is the exception name, a Manifold status, or the kernel message when that text is not already in message. Stack frames and URLs are omitted, and detail is absent when there is nothing further. Cleared on the next successful run. Feature and kernel failures use code feature_failed.",
398
507
  "args": {
399
508
  "type": "object",
400
509
  "additionalProperties": false,
@@ -418,6 +527,18 @@
418
527
  },
419
528
  "featureIndex": {
420
529
  "type": "integer"
530
+ },
531
+ "featureId": {
532
+ "type": "string"
533
+ },
534
+ "featureType": {
535
+ "type": "string"
536
+ },
537
+ "featureLabel": {
538
+ "type": "string"
539
+ },
540
+ "detail": {
541
+ "type": "string"
421
542
  }
422
543
  }
423
544
  }
@@ -436,7 +557,7 @@
436
557
  },
437
558
  {
438
559
  "name": "screenshot",
439
- "description": "Capture the viewport as a PNG data URL.",
560
+ "description": "Capture the viewport. The default is a full-size PNG data URL. Optional max_width and scale downscale in the browser before encoding. format is png or jpeg; quality (0 to 1) applies to jpeg only.",
440
561
  "args": {
441
562
  "type": "object",
442
563
  "additionalProperties": false,
@@ -444,9 +565,27 @@
444
565
  "format": {
445
566
  "type": "string",
446
567
  "enum": [
447
- "png"
568
+ "png",
569
+ "jpeg"
448
570
  ],
449
- "description": "Image format. Omit to use png."
571
+ "description": "Image format. Omit for png, the historical default. jpeg is smaller."
572
+ },
573
+ "quality": {
574
+ "type": "number",
575
+ "minimum": 0,
576
+ "maximum": 1,
577
+ "description": "jpeg quality from 0 to 1. Ignored for png. Default 0.8."
578
+ },
579
+ "max_width": {
580
+ "type": "integer",
581
+ "minimum": 1,
582
+ "description": "Downscale in the browser so the width is at most this many pixels. Does not upscale."
583
+ },
584
+ "scale": {
585
+ "type": "number",
586
+ "exclusiveMinimum": 0,
587
+ "maximum": 1,
588
+ "description": "Multiply width and height by this factor (0 exclusive to 1). Applied before max_width. Does not upscale."
450
589
  }
451
590
  }
452
591
  },
@@ -456,10 +595,24 @@
456
595
  "properties": {
457
596
  "dataUrl": {
458
597
  "type": "string"
598
+ },
599
+ "width": {
600
+ "type": "integer"
601
+ },
602
+ "height": {
603
+ "type": "integer"
604
+ },
605
+ "format": {
606
+ "type": "string",
607
+ "enum": [
608
+ "png",
609
+ "jpeg"
610
+ ]
459
611
  }
460
612
  }
461
613
  },
462
614
  "errors": [
615
+ "bad_args",
463
616
  "unsupported_format",
464
617
  "screenshot_failed",
465
618
  "internal"
@@ -508,6 +661,23 @@
508
661
  "type": "object",
509
662
  "additionalProperties": false,
510
663
  "properties": {
664
+ "partId": {
665
+ "type": "string"
666
+ },
667
+ "partName": {
668
+ "type": "string"
669
+ },
670
+ "script": {
671
+ "type": "string"
672
+ },
673
+ "runState": {
674
+ "type": "string",
675
+ "enum": [
676
+ "not_run_yet",
677
+ "ok",
678
+ "failed"
679
+ ]
680
+ },
511
681
  "volume": {
512
682
  "type": [
513
683
  "number",
@@ -543,11 +713,14 @@
543
713
  }
544
714
  ]
545
715
  },
546
- "partName": {
547
- "type": "string"
548
- },
549
716
  "featureCount": {
550
717
  "type": "integer"
718
+ },
719
+ "bodyCount": {
720
+ "type": [
721
+ "integer",
722
+ "null"
723
+ ]
551
724
  }
552
725
  }
553
726
  },
@@ -612,6 +785,23 @@
612
785
  "type": "object",
613
786
  "additionalProperties": false,
614
787
  "properties": {
788
+ "partId": {
789
+ "type": "string"
790
+ },
791
+ "partName": {
792
+ "type": "string"
793
+ },
794
+ "script": {
795
+ "type": "string"
796
+ },
797
+ "runState": {
798
+ "type": "string",
799
+ "enum": [
800
+ "not_run_yet",
801
+ "ok",
802
+ "failed"
803
+ ]
804
+ },
615
805
  "volume": {
616
806
  "type": [
617
807
  "number",
@@ -647,11 +837,14 @@
647
837
  }
648
838
  ]
649
839
  },
650
- "partName": {
651
- "type": "string"
652
- },
653
840
  "featureCount": {
654
841
  "type": "integer"
842
+ },
843
+ "bodyCount": {
844
+ "type": [
845
+ "integer",
846
+ "null"
847
+ ]
655
848
  }
656
849
  }
657
850
  },
@@ -742,7 +935,7 @@
742
935
  },
743
936
  {
744
937
  "name": "list_commands",
745
- "description": "List every bridge command with args schema and example.",
938
+ "description": "List every bridge command with args schema and example. Same names as GET /tools and the MCP bridge tools.",
746
939
  "args": {
747
940
  "type": "object",
748
941
  "additionalProperties": false,
@@ -905,7 +1098,7 @@
905
1098
  },
906
1099
  {
907
1100
  "name": "dirty",
908
- "description": "Workspace and per-part dirty flags.",
1101
+ "description": "Working-copy dirty flags. unsaved is true when the WC differs from the last AssemblyCommit (survives reload; covers rename, hide, and remove). pendingSave is an offline planned write waiting for a second Save. Changing activeId does not set assemblyDirty.",
909
1102
  "args": {
910
1103
  "type": "object",
911
1104
  "additionalProperties": false,
@@ -949,7 +1142,7 @@
949
1142
  },
950
1143
  {
951
1144
  "name": "parts",
952
- "description": "Assembly parts list and active editor part.",
1145
+ "description": "Open assembly: assemblyId, assemblyName, vaultLayout, activeId, and parts [{ id, name, visible, missing?, group? }]. Part and assembly ids are opaque surf ids, never a path or display name. No path field. featureCount and bodyCount are on status, not here. featureCount counts insert_* feature blocks, so a freehand set_script is one feature. bodyCount is null until the first run; a finished run that produced no bodies reports 0.",
953
1146
  "args": {
954
1147
  "type": "object",
955
1148
  "additionalProperties": false,
@@ -993,7 +1186,7 @@
993
1186
  },
994
1187
  {
995
1188
  "name": "list_faces",
996
- "description": "Face fingerprints for the active or named part mesh.",
1189
+ "description": "Every pickable face on the active part, or on part_id when set (an opaque surf id, never a path or display name). One row per face a viewport click selects, all bodies: id (f0, f1, …), type (planar, cylindrical, curved), center, normal, axis and radius for cylinders, area, and key. The id is the patch index on this mesh and is only valid until the next remesh; a rerun of the same script keeps every id. Pass the key with the id to joint_pick so a stale id cannot silently pick another face.",
997
1190
  "args": {
998
1191
  "type": "object",
999
1192
  "additionalProperties": false,
@@ -1087,7 +1280,7 @@
1087
1280
  },
1088
1281
  {
1089
1282
  "name": "invoke_helper",
1090
- "description": "Insert a helper palette item through the same compose path as the UI.",
1283
+ "description": "Prefer this or insert_* over freehand set_script. Insert a helper palette item on the active part, the same compose path as the UI. Working copy only; git_save commits.",
1091
1284
  "args": {
1092
1285
  "type": "object",
1093
1286
  "additionalProperties": false,
@@ -1130,6 +1323,23 @@
1130
1323
  "type": "object",
1131
1324
  "additionalProperties": false,
1132
1325
  "properties": {
1326
+ "partId": {
1327
+ "type": "string"
1328
+ },
1329
+ "partName": {
1330
+ "type": "string"
1331
+ },
1332
+ "script": {
1333
+ "type": "string"
1334
+ },
1335
+ "runState": {
1336
+ "type": "string",
1337
+ "enum": [
1338
+ "not_run_yet",
1339
+ "ok",
1340
+ "failed"
1341
+ ]
1342
+ },
1133
1343
  "volume": {
1134
1344
  "type": [
1135
1345
  "number",
@@ -1165,11 +1375,14 @@
1165
1375
  }
1166
1376
  ]
1167
1377
  },
1168
- "partName": {
1169
- "type": "string"
1170
- },
1171
1378
  "featureCount": {
1172
1379
  "type": "integer"
1380
+ },
1381
+ "bodyCount": {
1382
+ "type": [
1383
+ "integer",
1384
+ "null"
1385
+ ]
1173
1386
  }
1174
1387
  }
1175
1388
  }
@@ -1193,7 +1406,7 @@
1193
1406
  },
1194
1407
  {
1195
1408
  "name": "insert_cube",
1196
- "description": "Insert this helper through composeHelperInsert and mutate.",
1409
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
1197
1410
  "args": {
1198
1411
  "type": "object",
1199
1412
  "additionalProperties": false,
@@ -1275,6 +1488,23 @@
1275
1488
  "type": "object",
1276
1489
  "additionalProperties": false,
1277
1490
  "properties": {
1491
+ "partId": {
1492
+ "type": "string"
1493
+ },
1494
+ "partName": {
1495
+ "type": "string"
1496
+ },
1497
+ "script": {
1498
+ "type": "string"
1499
+ },
1500
+ "runState": {
1501
+ "type": "string",
1502
+ "enum": [
1503
+ "not_run_yet",
1504
+ "ok",
1505
+ "failed"
1506
+ ]
1507
+ },
1278
1508
  "volume": {
1279
1509
  "type": [
1280
1510
  "number",
@@ -1310,11 +1540,14 @@
1310
1540
  }
1311
1541
  ]
1312
1542
  },
1313
- "partName": {
1314
- "type": "string"
1315
- },
1316
1543
  "featureCount": {
1317
1544
  "type": "integer"
1545
+ },
1546
+ "bodyCount": {
1547
+ "type": [
1548
+ "integer",
1549
+ "null"
1550
+ ]
1318
1551
  }
1319
1552
  }
1320
1553
  }
@@ -1347,7 +1580,7 @@
1347
1580
  },
1348
1581
  {
1349
1582
  "name": "insert_rounded_box",
1350
- "description": "Insert this helper through composeHelperInsert and mutate.",
1583
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
1351
1584
  "args": {
1352
1585
  "type": "object",
1353
1586
  "additionalProperties": false,
@@ -1434,6 +1667,23 @@
1434
1667
  "type": "object",
1435
1668
  "additionalProperties": false,
1436
1669
  "properties": {
1670
+ "partId": {
1671
+ "type": "string"
1672
+ },
1673
+ "partName": {
1674
+ "type": "string"
1675
+ },
1676
+ "script": {
1677
+ "type": "string"
1678
+ },
1679
+ "runState": {
1680
+ "type": "string",
1681
+ "enum": [
1682
+ "not_run_yet",
1683
+ "ok",
1684
+ "failed"
1685
+ ]
1686
+ },
1437
1687
  "volume": {
1438
1688
  "type": [
1439
1689
  "number",
@@ -1469,11 +1719,14 @@
1469
1719
  }
1470
1720
  ]
1471
1721
  },
1472
- "partName": {
1473
- "type": "string"
1474
- },
1475
1722
  "featureCount": {
1476
1723
  "type": "integer"
1724
+ },
1725
+ "bodyCount": {
1726
+ "type": [
1727
+ "integer",
1728
+ "null"
1729
+ ]
1477
1730
  }
1478
1731
  }
1479
1732
  }
@@ -1507,7 +1760,7 @@
1507
1760
  },
1508
1761
  {
1509
1762
  "name": "insert_cylinder",
1510
- "description": "Insert this helper through composeHelperInsert and mutate.",
1763
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
1511
1764
  "args": {
1512
1765
  "type": "object",
1513
1766
  "additionalProperties": false,
@@ -1586,6 +1839,23 @@
1586
1839
  "type": "object",
1587
1840
  "additionalProperties": false,
1588
1841
  "properties": {
1842
+ "partId": {
1843
+ "type": "string"
1844
+ },
1845
+ "partName": {
1846
+ "type": "string"
1847
+ },
1848
+ "script": {
1849
+ "type": "string"
1850
+ },
1851
+ "runState": {
1852
+ "type": "string",
1853
+ "enum": [
1854
+ "not_run_yet",
1855
+ "ok",
1856
+ "failed"
1857
+ ]
1858
+ },
1589
1859
  "volume": {
1590
1860
  "type": [
1591
1861
  "number",
@@ -1621,11 +1891,14 @@
1621
1891
  }
1622
1892
  ]
1623
1893
  },
1624
- "partName": {
1625
- "type": "string"
1626
- },
1627
1894
  "featureCount": {
1628
1895
  "type": "integer"
1896
+ },
1897
+ "bodyCount": {
1898
+ "type": [
1899
+ "integer",
1900
+ "null"
1901
+ ]
1629
1902
  }
1630
1903
  }
1631
1904
  }
@@ -1657,7 +1930,7 @@
1657
1930
  },
1658
1931
  {
1659
1932
  "name": "insert_sphere",
1660
- "description": "Insert this helper through composeHelperInsert and mutate.",
1933
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
1661
1934
  "args": {
1662
1935
  "type": "object",
1663
1936
  "additionalProperties": false,
@@ -1733,6 +2006,23 @@
1733
2006
  "type": "object",
1734
2007
  "additionalProperties": false,
1735
2008
  "properties": {
2009
+ "partId": {
2010
+ "type": "string"
2011
+ },
2012
+ "partName": {
2013
+ "type": "string"
2014
+ },
2015
+ "script": {
2016
+ "type": "string"
2017
+ },
2018
+ "runState": {
2019
+ "type": "string",
2020
+ "enum": [
2021
+ "not_run_yet",
2022
+ "ok",
2023
+ "failed"
2024
+ ]
2025
+ },
1736
2026
  "volume": {
1737
2027
  "type": [
1738
2028
  "number",
@@ -1768,14 +2058,17 @@
1768
2058
  }
1769
2059
  ]
1770
2060
  },
1771
- "partName": {
1772
- "type": "string"
1773
- },
1774
2061
  "featureCount": {
1775
2062
  "type": "integer"
1776
- }
1777
- }
1778
- }
2063
+ },
2064
+ "bodyCount": {
2065
+ "type": [
2066
+ "integer",
2067
+ "null"
2068
+ ]
2069
+ }
2070
+ }
2071
+ }
1779
2072
  }
1780
2073
  },
1781
2074
  "errors": [
@@ -1803,7 +2096,7 @@
1803
2096
  },
1804
2097
  {
1805
2098
  "name": "insert_tube",
1806
- "description": "Insert this helper through composeHelperInsert and mutate.",
2099
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
1807
2100
  "args": {
1808
2101
  "type": "object",
1809
2102
  "additionalProperties": false,
@@ -1910,6 +2203,23 @@
1910
2203
  "type": "object",
1911
2204
  "additionalProperties": false,
1912
2205
  "properties": {
2206
+ "partId": {
2207
+ "type": "string"
2208
+ },
2209
+ "partName": {
2210
+ "type": "string"
2211
+ },
2212
+ "script": {
2213
+ "type": "string"
2214
+ },
2215
+ "runState": {
2216
+ "type": "string",
2217
+ "enum": [
2218
+ "not_run_yet",
2219
+ "ok",
2220
+ "failed"
2221
+ ]
2222
+ },
1913
2223
  "volume": {
1914
2224
  "type": [
1915
2225
  "number",
@@ -1945,11 +2255,14 @@
1945
2255
  }
1946
2256
  ]
1947
2257
  },
1948
- "partName": {
1949
- "type": "string"
1950
- },
1951
2258
  "featureCount": {
1952
2259
  "type": "integer"
2260
+ },
2261
+ "bodyCount": {
2262
+ "type": [
2263
+ "integer",
2264
+ "null"
2265
+ ]
1953
2266
  }
1954
2267
  }
1955
2268
  }
@@ -1987,7 +2300,7 @@
1987
2300
  },
1988
2301
  {
1989
2302
  "name": "insert_hex_prism",
1990
- "description": "Insert this helper through composeHelperInsert and mutate.",
2303
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
1991
2304
  "args": {
1992
2305
  "type": "object",
1993
2306
  "additionalProperties": false,
@@ -2062,6 +2375,23 @@
2062
2375
  "type": "object",
2063
2376
  "additionalProperties": false,
2064
2377
  "properties": {
2378
+ "partId": {
2379
+ "type": "string"
2380
+ },
2381
+ "partName": {
2382
+ "type": "string"
2383
+ },
2384
+ "script": {
2385
+ "type": "string"
2386
+ },
2387
+ "runState": {
2388
+ "type": "string",
2389
+ "enum": [
2390
+ "not_run_yet",
2391
+ "ok",
2392
+ "failed"
2393
+ ]
2394
+ },
2065
2395
  "volume": {
2066
2396
  "type": [
2067
2397
  "number",
@@ -2097,11 +2427,14 @@
2097
2427
  }
2098
2428
  ]
2099
2429
  },
2100
- "partName": {
2101
- "type": "string"
2102
- },
2103
2430
  "featureCount": {
2104
2431
  "type": "integer"
2432
+ },
2433
+ "bodyCount": {
2434
+ "type": [
2435
+ "integer",
2436
+ "null"
2437
+ ]
2105
2438
  }
2106
2439
  }
2107
2440
  }
@@ -2132,7 +2465,7 @@
2132
2465
  },
2133
2466
  {
2134
2467
  "name": "insert_fillet_edges",
2135
- "description": "Insert this helper through composeHelperInsert and mutate.",
2468
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
2136
2469
  "args": {
2137
2470
  "type": "object",
2138
2471
  "additionalProperties": false,
@@ -2188,6 +2521,23 @@
2188
2521
  "type": "object",
2189
2522
  "additionalProperties": false,
2190
2523
  "properties": {
2524
+ "partId": {
2525
+ "type": "string"
2526
+ },
2527
+ "partName": {
2528
+ "type": "string"
2529
+ },
2530
+ "script": {
2531
+ "type": "string"
2532
+ },
2533
+ "runState": {
2534
+ "type": "string",
2535
+ "enum": [
2536
+ "not_run_yet",
2537
+ "ok",
2538
+ "failed"
2539
+ ]
2540
+ },
2191
2541
  "volume": {
2192
2542
  "type": [
2193
2543
  "number",
@@ -2223,11 +2573,14 @@
2223
2573
  }
2224
2574
  ]
2225
2575
  },
2226
- "partName": {
2227
- "type": "string"
2228
- },
2229
2576
  "featureCount": {
2230
2577
  "type": "integer"
2578
+ },
2579
+ "bodyCount": {
2580
+ "type": [
2581
+ "integer",
2582
+ "null"
2583
+ ]
2231
2584
  }
2232
2585
  }
2233
2586
  }
@@ -2254,7 +2607,7 @@
2254
2607
  },
2255
2608
  {
2256
2609
  "name": "insert_chamfer_edges",
2257
- "description": "Insert this helper through composeHelperInsert and mutate.",
2610
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
2258
2611
  "args": {
2259
2612
  "type": "object",
2260
2613
  "additionalProperties": false,
@@ -2289,6 +2642,23 @@
2289
2642
  "type": "object",
2290
2643
  "additionalProperties": false,
2291
2644
  "properties": {
2645
+ "partId": {
2646
+ "type": "string"
2647
+ },
2648
+ "partName": {
2649
+ "type": "string"
2650
+ },
2651
+ "script": {
2652
+ "type": "string"
2653
+ },
2654
+ "runState": {
2655
+ "type": "string",
2656
+ "enum": [
2657
+ "not_run_yet",
2658
+ "ok",
2659
+ "failed"
2660
+ ]
2661
+ },
2292
2662
  "volume": {
2293
2663
  "type": [
2294
2664
  "number",
@@ -2324,11 +2694,14 @@
2324
2694
  }
2325
2695
  ]
2326
2696
  },
2327
- "partName": {
2328
- "type": "string"
2329
- },
2330
2697
  "featureCount": {
2331
2698
  "type": "integer"
2699
+ },
2700
+ "bodyCount": {
2701
+ "type": [
2702
+ "integer",
2703
+ "null"
2704
+ ]
2332
2705
  }
2333
2706
  }
2334
2707
  }
@@ -2351,7 +2724,7 @@
2351
2724
  },
2352
2725
  {
2353
2726
  "name": "insert_cross_section",
2354
- "description": "Insert this helper through composeHelperInsert and mutate.",
2727
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
2355
2728
  "args": {
2356
2729
  "type": "object",
2357
2730
  "additionalProperties": false,
@@ -2422,6 +2795,23 @@
2422
2795
  "type": "object",
2423
2796
  "additionalProperties": false,
2424
2797
  "properties": {
2798
+ "partId": {
2799
+ "type": "string"
2800
+ },
2801
+ "partName": {
2802
+ "type": "string"
2803
+ },
2804
+ "script": {
2805
+ "type": "string"
2806
+ },
2807
+ "runState": {
2808
+ "type": "string",
2809
+ "enum": [
2810
+ "not_run_yet",
2811
+ "ok",
2812
+ "failed"
2813
+ ]
2814
+ },
2425
2815
  "volume": {
2426
2816
  "type": [
2427
2817
  "number",
@@ -2457,11 +2847,14 @@
2457
2847
  }
2458
2848
  ]
2459
2849
  },
2460
- "partName": {
2461
- "type": "string"
2462
- },
2463
2850
  "featureCount": {
2464
2851
  "type": "integer"
2852
+ },
2853
+ "bodyCount": {
2854
+ "type": [
2855
+ "integer",
2856
+ "null"
2857
+ ]
2465
2858
  }
2466
2859
  }
2467
2860
  }
@@ -2490,7 +2883,7 @@
2490
2883
  },
2491
2884
  {
2492
2885
  "name": "insert_sweep_path",
2493
- "description": "Insert this helper through composeHelperInsert and mutate.",
2886
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
2494
2887
  "args": {
2495
2888
  "type": "object",
2496
2889
  "additionalProperties": false,
@@ -2524,6 +2917,23 @@
2524
2917
  "type": "object",
2525
2918
  "additionalProperties": false,
2526
2919
  "properties": {
2920
+ "partId": {
2921
+ "type": "string"
2922
+ },
2923
+ "partName": {
2924
+ "type": "string"
2925
+ },
2926
+ "script": {
2927
+ "type": "string"
2928
+ },
2929
+ "runState": {
2930
+ "type": "string",
2931
+ "enum": [
2932
+ "not_run_yet",
2933
+ "ok",
2934
+ "failed"
2935
+ ]
2936
+ },
2527
2937
  "volume": {
2528
2938
  "type": [
2529
2939
  "number",
@@ -2559,11 +2969,14 @@
2559
2969
  }
2560
2970
  ]
2561
2971
  },
2562
- "partName": {
2563
- "type": "string"
2564
- },
2565
2972
  "featureCount": {
2566
2973
  "type": "integer"
2974
+ },
2975
+ "bodyCount": {
2976
+ "type": [
2977
+ "integer",
2978
+ "null"
2979
+ ]
2567
2980
  }
2568
2981
  }
2569
2982
  }
@@ -2586,7 +2999,7 @@
2586
2999
  },
2587
3000
  {
2588
3001
  "name": "insert_hole",
2589
- "description": "Insert this helper through composeHelperInsert and mutate.",
3002
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
2590
3003
  "args": {
2591
3004
  "type": "object",
2592
3005
  "additionalProperties": false,
@@ -2718,6 +3131,23 @@
2718
3131
  "type": "object",
2719
3132
  "additionalProperties": false,
2720
3133
  "properties": {
3134
+ "partId": {
3135
+ "type": "string"
3136
+ },
3137
+ "partName": {
3138
+ "type": "string"
3139
+ },
3140
+ "script": {
3141
+ "type": "string"
3142
+ },
3143
+ "runState": {
3144
+ "type": "string",
3145
+ "enum": [
3146
+ "not_run_yet",
3147
+ "ok",
3148
+ "failed"
3149
+ ]
3150
+ },
2721
3151
  "volume": {
2722
3152
  "type": [
2723
3153
  "number",
@@ -2753,11 +3183,14 @@
2753
3183
  }
2754
3184
  ]
2755
3185
  },
2756
- "partName": {
2757
- "type": "string"
2758
- },
2759
3186
  "featureCount": {
2760
3187
  "type": "integer"
3188
+ },
3189
+ "bodyCount": {
3190
+ "type": [
3191
+ "integer",
3192
+ "null"
3193
+ ]
2761
3194
  }
2762
3195
  }
2763
3196
  }
@@ -2799,7 +3232,7 @@
2799
3232
  },
2800
3233
  {
2801
3234
  "name": "insert_hole_pattern",
2802
- "description": "Insert this helper through composeHelperInsert and mutate.",
3235
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
2803
3236
  "args": {
2804
3237
  "type": "object",
2805
3238
  "additionalProperties": false,
@@ -2850,6 +3283,23 @@
2850
3283
  "type": "object",
2851
3284
  "additionalProperties": false,
2852
3285
  "properties": {
3286
+ "partId": {
3287
+ "type": "string"
3288
+ },
3289
+ "partName": {
3290
+ "type": "string"
3291
+ },
3292
+ "script": {
3293
+ "type": "string"
3294
+ },
3295
+ "runState": {
3296
+ "type": "string",
3297
+ "enum": [
3298
+ "not_run_yet",
3299
+ "ok",
3300
+ "failed"
3301
+ ]
3302
+ },
2853
3303
  "volume": {
2854
3304
  "type": [
2855
3305
  "number",
@@ -2885,11 +3335,14 @@
2885
3335
  }
2886
3336
  ]
2887
3337
  },
2888
- "partName": {
2889
- "type": "string"
2890
- },
2891
3338
  "featureCount": {
2892
3339
  "type": "integer"
3340
+ },
3341
+ "bodyCount": {
3342
+ "type": [
3343
+ "integer",
3344
+ "null"
3345
+ ]
2893
3346
  }
2894
3347
  }
2895
3348
  }
@@ -2916,7 +3369,7 @@
2916
3369
  },
2917
3370
  {
2918
3371
  "name": "insert_clearance_hole",
2919
- "description": "Insert this helper through composeHelperInsert and mutate.",
3372
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
2920
3373
  "args": {
2921
3374
  "type": "object",
2922
3375
  "additionalProperties": false,
@@ -2974,6 +3427,23 @@
2974
3427
  "type": "object",
2975
3428
  "additionalProperties": false,
2976
3429
  "properties": {
3430
+ "partId": {
3431
+ "type": "string"
3432
+ },
3433
+ "partName": {
3434
+ "type": "string"
3435
+ },
3436
+ "script": {
3437
+ "type": "string"
3438
+ },
3439
+ "runState": {
3440
+ "type": "string",
3441
+ "enum": [
3442
+ "not_run_yet",
3443
+ "ok",
3444
+ "failed"
3445
+ ]
3446
+ },
2977
3447
  "volume": {
2978
3448
  "type": [
2979
3449
  "number",
@@ -3009,11 +3479,14 @@
3009
3479
  }
3010
3480
  ]
3011
3481
  },
3012
- "partName": {
3013
- "type": "string"
3014
- },
3015
3482
  "featureCount": {
3016
3483
  "type": "integer"
3484
+ },
3485
+ "bodyCount": {
3486
+ "type": [
3487
+ "integer",
3488
+ "null"
3489
+ ]
3017
3490
  }
3018
3491
  }
3019
3492
  }
@@ -3039,7 +3512,7 @@
3039
3512
  },
3040
3513
  {
3041
3514
  "name": "insert_tap_drill_hole",
3042
- "description": "Insert this helper through composeHelperInsert and mutate.",
3515
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
3043
3516
  "args": {
3044
3517
  "type": "object",
3045
3518
  "additionalProperties": false,
@@ -3089,6 +3562,23 @@
3089
3562
  "type": "object",
3090
3563
  "additionalProperties": false,
3091
3564
  "properties": {
3565
+ "partId": {
3566
+ "type": "string"
3567
+ },
3568
+ "partName": {
3569
+ "type": "string"
3570
+ },
3571
+ "script": {
3572
+ "type": "string"
3573
+ },
3574
+ "runState": {
3575
+ "type": "string",
3576
+ "enum": [
3577
+ "not_run_yet",
3578
+ "ok",
3579
+ "failed"
3580
+ ]
3581
+ },
3092
3582
  "volume": {
3093
3583
  "type": [
3094
3584
  "number",
@@ -3124,11 +3614,14 @@
3124
3614
  }
3125
3615
  ]
3126
3616
  },
3127
- "partName": {
3128
- "type": "string"
3129
- },
3130
3617
  "featureCount": {
3131
3618
  "type": "integer"
3619
+ },
3620
+ "bodyCount": {
3621
+ "type": [
3622
+ "integer",
3623
+ "null"
3624
+ ]
3132
3625
  }
3133
3626
  }
3134
3627
  }
@@ -3153,7 +3646,7 @@
3153
3646
  },
3154
3647
  {
3155
3648
  "name": "insert_cbore_hole",
3156
- "description": "Insert this helper through composeHelperInsert and mutate.",
3649
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
3157
3650
  "args": {
3158
3651
  "type": "object",
3159
3652
  "additionalProperties": false,
@@ -3202,6 +3695,23 @@
3202
3695
  "type": "object",
3203
3696
  "additionalProperties": false,
3204
3697
  "properties": {
3698
+ "partId": {
3699
+ "type": "string"
3700
+ },
3701
+ "partName": {
3702
+ "type": "string"
3703
+ },
3704
+ "script": {
3705
+ "type": "string"
3706
+ },
3707
+ "runState": {
3708
+ "type": "string",
3709
+ "enum": [
3710
+ "not_run_yet",
3711
+ "ok",
3712
+ "failed"
3713
+ ]
3714
+ },
3205
3715
  "volume": {
3206
3716
  "type": [
3207
3717
  "number",
@@ -3237,11 +3747,14 @@
3237
3747
  }
3238
3748
  ]
3239
3749
  },
3240
- "partName": {
3241
- "type": "string"
3242
- },
3243
3750
  "featureCount": {
3244
3751
  "type": "integer"
3752
+ },
3753
+ "bodyCount": {
3754
+ "type": [
3755
+ "integer",
3756
+ "null"
3757
+ ]
3245
3758
  }
3246
3759
  }
3247
3760
  }
@@ -3268,7 +3781,7 @@
3268
3781
  },
3269
3782
  {
3270
3783
  "name": "insert_csk_hole",
3271
- "description": "Insert this helper through composeHelperInsert and mutate.",
3784
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
3272
3785
  "args": {
3273
3786
  "type": "object",
3274
3787
  "additionalProperties": false,
@@ -3317,6 +3830,23 @@
3317
3830
  "type": "object",
3318
3831
  "additionalProperties": false,
3319
3832
  "properties": {
3833
+ "partId": {
3834
+ "type": "string"
3835
+ },
3836
+ "partName": {
3837
+ "type": "string"
3838
+ },
3839
+ "script": {
3840
+ "type": "string"
3841
+ },
3842
+ "runState": {
3843
+ "type": "string",
3844
+ "enum": [
3845
+ "not_run_yet",
3846
+ "ok",
3847
+ "failed"
3848
+ ]
3849
+ },
3320
3850
  "volume": {
3321
3851
  "type": [
3322
3852
  "number",
@@ -3352,11 +3882,14 @@
3352
3882
  }
3353
3883
  ]
3354
3884
  },
3355
- "partName": {
3356
- "type": "string"
3357
- },
3358
3885
  "featureCount": {
3359
3886
  "type": "integer"
3887
+ },
3888
+ "bodyCount": {
3889
+ "type": [
3890
+ "integer",
3891
+ "null"
3892
+ ]
3360
3893
  }
3361
3894
  }
3362
3895
  }
@@ -3383,7 +3916,7 @@
3383
3916
  },
3384
3917
  {
3385
3918
  "name": "insert_shell",
3386
- "description": "Insert this helper through composeHelperInsert and mutate.",
3919
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
3387
3920
  "args": {
3388
3921
  "type": "object",
3389
3922
  "additionalProperties": false,
@@ -3430,6 +3963,23 @@
3430
3963
  "type": "object",
3431
3964
  "additionalProperties": false,
3432
3965
  "properties": {
3966
+ "partId": {
3967
+ "type": "string"
3968
+ },
3969
+ "partName": {
3970
+ "type": "string"
3971
+ },
3972
+ "script": {
3973
+ "type": "string"
3974
+ },
3975
+ "runState": {
3976
+ "type": "string",
3977
+ "enum": [
3978
+ "not_run_yet",
3979
+ "ok",
3980
+ "failed"
3981
+ ]
3982
+ },
3433
3983
  "volume": {
3434
3984
  "type": [
3435
3985
  "number",
@@ -3465,11 +4015,14 @@
3465
4015
  }
3466
4016
  ]
3467
4017
  },
3468
- "partName": {
3469
- "type": "string"
3470
- },
3471
4018
  "featureCount": {
3472
4019
  "type": "integer"
4020
+ },
4021
+ "bodyCount": {
4022
+ "type": [
4023
+ "integer",
4024
+ "null"
4025
+ ]
3473
4026
  }
3474
4027
  }
3475
4028
  }
@@ -3493,7 +4046,7 @@
3493
4046
  },
3494
4047
  {
3495
4048
  "name": "insert_cut",
3496
- "description": "Insert this helper through composeHelperInsert and mutate.",
4049
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
3497
4050
  "args": {
3498
4051
  "type": "object",
3499
4052
  "additionalProperties": false,
@@ -3524,7 +4077,24 @@
3524
4077
  "type": "object",
3525
4078
  "additionalProperties": false,
3526
4079
  "properties": {
3527
- "volume": {
4080
+ "partId": {
4081
+ "type": "string"
4082
+ },
4083
+ "partName": {
4084
+ "type": "string"
4085
+ },
4086
+ "script": {
4087
+ "type": "string"
4088
+ },
4089
+ "runState": {
4090
+ "type": "string",
4091
+ "enum": [
4092
+ "not_run_yet",
4093
+ "ok",
4094
+ "failed"
4095
+ ]
4096
+ },
4097
+ "volume": {
3528
4098
  "type": [
3529
4099
  "number",
3530
4100
  "null"
@@ -3559,11 +4129,14 @@
3559
4129
  }
3560
4130
  ]
3561
4131
  },
3562
- "partName": {
3563
- "type": "string"
3564
- },
3565
4132
  "featureCount": {
3566
4133
  "type": "integer"
4134
+ },
4135
+ "bodyCount": {
4136
+ "type": [
4137
+ "integer",
4138
+ "null"
4139
+ ]
3567
4140
  }
3568
4141
  }
3569
4142
  }
@@ -3588,7 +4161,7 @@
3588
4161
  },
3589
4162
  {
3590
4163
  "name": "insert_boolean",
3591
- "description": "Insert this helper through composeHelperInsert and mutate.",
4164
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
3592
4165
  "args": {
3593
4166
  "type": "object",
3594
4167
  "additionalProperties": false,
@@ -3627,6 +4200,23 @@
3627
4200
  "type": "object",
3628
4201
  "additionalProperties": false,
3629
4202
  "properties": {
4203
+ "partId": {
4204
+ "type": "string"
4205
+ },
4206
+ "partName": {
4207
+ "type": "string"
4208
+ },
4209
+ "script": {
4210
+ "type": "string"
4211
+ },
4212
+ "runState": {
4213
+ "type": "string",
4214
+ "enum": [
4215
+ "not_run_yet",
4216
+ "ok",
4217
+ "failed"
4218
+ ]
4219
+ },
3630
4220
  "volume": {
3631
4221
  "type": [
3632
4222
  "number",
@@ -3662,11 +4252,14 @@
3662
4252
  }
3663
4253
  ]
3664
4254
  },
3665
- "partName": {
3666
- "type": "string"
3667
- },
3668
4255
  "featureCount": {
3669
4256
  "type": "integer"
4257
+ },
4258
+ "bodyCount": {
4259
+ "type": [
4260
+ "integer",
4261
+ "null"
4262
+ ]
3670
4263
  }
3671
4264
  }
3672
4265
  }
@@ -3692,7 +4285,7 @@
3692
4285
  },
3693
4286
  {
3694
4287
  "name": "insert_move",
3695
- "description": "Insert this helper through composeHelperInsert and mutate.",
4288
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
3696
4289
  "args": {
3697
4290
  "type": "object",
3698
4291
  "additionalProperties": false,
@@ -3738,6 +4331,23 @@
3738
4331
  "type": "object",
3739
4332
  "additionalProperties": false,
3740
4333
  "properties": {
4334
+ "partId": {
4335
+ "type": "string"
4336
+ },
4337
+ "partName": {
4338
+ "type": "string"
4339
+ },
4340
+ "script": {
4341
+ "type": "string"
4342
+ },
4343
+ "runState": {
4344
+ "type": "string",
4345
+ "enum": [
4346
+ "not_run_yet",
4347
+ "ok",
4348
+ "failed"
4349
+ ]
4350
+ },
3741
4351
  "volume": {
3742
4352
  "type": [
3743
4353
  "number",
@@ -3773,11 +4383,14 @@
3773
4383
  }
3774
4384
  ]
3775
4385
  },
3776
- "partName": {
3777
- "type": "string"
3778
- },
3779
4386
  "featureCount": {
3780
4387
  "type": "integer"
4388
+ },
4389
+ "bodyCount": {
4390
+ "type": [
4391
+ "integer",
4392
+ "null"
4393
+ ]
3781
4394
  }
3782
4395
  }
3783
4396
  }
@@ -3805,7 +4418,7 @@
3805
4418
  },
3806
4419
  {
3807
4420
  "name": "insert_center",
3808
- "description": "Insert this helper through composeHelperInsert and mutate.",
4421
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
3809
4422
  "args": {
3810
4423
  "type": "object",
3811
4424
  "additionalProperties": false,
@@ -3845,6 +4458,23 @@
3845
4458
  "type": "object",
3846
4459
  "additionalProperties": false,
3847
4460
  "properties": {
4461
+ "partId": {
4462
+ "type": "string"
4463
+ },
4464
+ "partName": {
4465
+ "type": "string"
4466
+ },
4467
+ "script": {
4468
+ "type": "string"
4469
+ },
4470
+ "runState": {
4471
+ "type": "string",
4472
+ "enum": [
4473
+ "not_run_yet",
4474
+ "ok",
4475
+ "failed"
4476
+ ]
4477
+ },
3848
4478
  "volume": {
3849
4479
  "type": [
3850
4480
  "number",
@@ -3880,11 +4510,14 @@
3880
4510
  }
3881
4511
  ]
3882
4512
  },
3883
- "partName": {
3884
- "type": "string"
3885
- },
3886
4513
  "featureCount": {
3887
4514
  "type": "integer"
4515
+ },
4516
+ "bodyCount": {
4517
+ "type": [
4518
+ "integer",
4519
+ "null"
4520
+ ]
3888
4521
  }
3889
4522
  }
3890
4523
  }
@@ -3909,7 +4542,7 @@
3909
4542
  },
3910
4543
  {
3911
4544
  "name": "insert_align",
3912
- "description": "Insert this helper through composeHelperInsert and mutate.",
4545
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
3913
4546
  "args": {
3914
4547
  "type": "object",
3915
4548
  "additionalProperties": false,
@@ -3940,6 +4573,23 @@
3940
4573
  "type": "object",
3941
4574
  "additionalProperties": false,
3942
4575
  "properties": {
4576
+ "partId": {
4577
+ "type": "string"
4578
+ },
4579
+ "partName": {
4580
+ "type": "string"
4581
+ },
4582
+ "script": {
4583
+ "type": "string"
4584
+ },
4585
+ "runState": {
4586
+ "type": "string",
4587
+ "enum": [
4588
+ "not_run_yet",
4589
+ "ok",
4590
+ "failed"
4591
+ ]
4592
+ },
3943
4593
  "volume": {
3944
4594
  "type": [
3945
4595
  "number",
@@ -3975,11 +4625,14 @@
3975
4625
  }
3976
4626
  ]
3977
4627
  },
3978
- "partName": {
3979
- "type": "string"
3980
- },
3981
4628
  "featureCount": {
3982
4629
  "type": "integer"
4630
+ },
4631
+ "bodyCount": {
4632
+ "type": [
4633
+ "integer",
4634
+ "null"
4635
+ ]
3983
4636
  }
3984
4637
  }
3985
4638
  }
@@ -4001,7 +4654,7 @@
4001
4654
  },
4002
4655
  {
4003
4656
  "name": "insert_mirror",
4004
- "description": "Insert this helper through composeHelperInsert and mutate.",
4657
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
4005
4658
  "args": {
4006
4659
  "type": "object",
4007
4660
  "additionalProperties": false,
@@ -4043,6 +4696,23 @@
4043
4696
  "type": "object",
4044
4697
  "additionalProperties": false,
4045
4698
  "properties": {
4699
+ "partId": {
4700
+ "type": "string"
4701
+ },
4702
+ "partName": {
4703
+ "type": "string"
4704
+ },
4705
+ "script": {
4706
+ "type": "string"
4707
+ },
4708
+ "runState": {
4709
+ "type": "string",
4710
+ "enum": [
4711
+ "not_run_yet",
4712
+ "ok",
4713
+ "failed"
4714
+ ]
4715
+ },
4046
4716
  "volume": {
4047
4717
  "type": [
4048
4718
  "number",
@@ -4078,11 +4748,14 @@
4078
4748
  }
4079
4749
  ]
4080
4750
  },
4081
- "partName": {
4082
- "type": "string"
4083
- },
4084
4751
  "featureCount": {
4085
4752
  "type": "integer"
4753
+ },
4754
+ "bodyCount": {
4755
+ "type": [
4756
+ "integer",
4757
+ "null"
4758
+ ]
4086
4759
  }
4087
4760
  }
4088
4761
  }
@@ -4106,7 +4779,7 @@
4106
4779
  },
4107
4780
  {
4108
4781
  "name": "insert_array3_d",
4109
- "description": "Insert this helper through composeHelperInsert and mutate.",
4782
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
4110
4783
  "args": {
4111
4784
  "type": "object",
4112
4785
  "additionalProperties": false,
@@ -4189,6 +4862,23 @@
4189
4862
  "type": "object",
4190
4863
  "additionalProperties": false,
4191
4864
  "properties": {
4865
+ "partId": {
4866
+ "type": "string"
4867
+ },
4868
+ "partName": {
4869
+ "type": "string"
4870
+ },
4871
+ "script": {
4872
+ "type": "string"
4873
+ },
4874
+ "runState": {
4875
+ "type": "string",
4876
+ "enum": [
4877
+ "not_run_yet",
4878
+ "ok",
4879
+ "failed"
4880
+ ]
4881
+ },
4192
4882
  "volume": {
4193
4883
  "type": [
4194
4884
  "number",
@@ -4224,11 +4914,14 @@
4224
4914
  }
4225
4915
  ]
4226
4916
  },
4227
- "partName": {
4228
- "type": "string"
4229
- },
4230
4917
  "featureCount": {
4231
4918
  "type": "integer"
4919
+ },
4920
+ "bodyCount": {
4921
+ "type": [
4922
+ "integer",
4923
+ "null"
4924
+ ]
4232
4925
  }
4233
4926
  }
4234
4927
  }
@@ -4262,7 +4955,7 @@
4262
4955
  },
4263
4956
  {
4264
4957
  "name": "insert_polar_array",
4265
- "description": "Insert this helper through composeHelperInsert and mutate.",
4958
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
4266
4959
  "args": {
4267
4960
  "type": "object",
4268
4961
  "additionalProperties": false,
@@ -4317,6 +5010,23 @@
4317
5010
  "type": "object",
4318
5011
  "additionalProperties": false,
4319
5012
  "properties": {
5013
+ "partId": {
5014
+ "type": "string"
5015
+ },
5016
+ "partName": {
5017
+ "type": "string"
5018
+ },
5019
+ "script": {
5020
+ "type": "string"
5021
+ },
5022
+ "runState": {
5023
+ "type": "string",
5024
+ "enum": [
5025
+ "not_run_yet",
5026
+ "ok",
5027
+ "failed"
5028
+ ]
5029
+ },
4320
5030
  "volume": {
4321
5031
  "type": [
4322
5032
  "number",
@@ -4352,11 +5062,14 @@
4352
5062
  }
4353
5063
  ]
4354
5064
  },
4355
- "partName": {
4356
- "type": "string"
4357
- },
4358
5065
  "featureCount": {
4359
5066
  "type": "integer"
5067
+ },
5068
+ "bodyCount": {
5069
+ "type": [
5070
+ "integer",
5071
+ "null"
5072
+ ]
4360
5073
  }
4361
5074
  }
4362
5075
  }
@@ -4383,7 +5096,7 @@
4383
5096
  },
4384
5097
  {
4385
5098
  "name": "insert_add_draft",
4386
- "description": "Insert this helper through composeHelperInsert and mutate.",
5099
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
4387
5100
  "args": {
4388
5101
  "type": "object",
4389
5102
  "additionalProperties": false,
@@ -4444,6 +5157,23 @@
4444
5157
  "type": "object",
4445
5158
  "additionalProperties": false,
4446
5159
  "properties": {
5160
+ "partId": {
5161
+ "type": "string"
5162
+ },
5163
+ "partName": {
5164
+ "type": "string"
5165
+ },
5166
+ "script": {
5167
+ "type": "string"
5168
+ },
5169
+ "runState": {
5170
+ "type": "string",
5171
+ "enum": [
5172
+ "not_run_yet",
5173
+ "ok",
5174
+ "failed"
5175
+ ]
5176
+ },
4447
5177
  "volume": {
4448
5178
  "type": [
4449
5179
  "number",
@@ -4479,11 +5209,14 @@
4479
5209
  }
4480
5210
  ]
4481
5211
  },
4482
- "partName": {
4483
- "type": "string"
4484
- },
4485
5212
  "featureCount": {
4486
5213
  "type": "integer"
5214
+ },
5215
+ "bodyCount": {
5216
+ "type": [
5217
+ "integer",
5218
+ "null"
5219
+ ]
4487
5220
  }
4488
5221
  }
4489
5222
  }
@@ -4509,7 +5242,7 @@
4509
5242
  },
4510
5243
  {
4511
5244
  "name": "insert_workplane",
4512
- "description": "Insert this helper through composeHelperInsert and mutate.",
5245
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
4513
5246
  "args": {
4514
5247
  "type": "object",
4515
5248
  "additionalProperties": false,
@@ -4535,6 +5268,23 @@
4535
5268
  "type": "object",
4536
5269
  "additionalProperties": false,
4537
5270
  "properties": {
5271
+ "partId": {
5272
+ "type": "string"
5273
+ },
5274
+ "partName": {
5275
+ "type": "string"
5276
+ },
5277
+ "script": {
5278
+ "type": "string"
5279
+ },
5280
+ "runState": {
5281
+ "type": "string",
5282
+ "enum": [
5283
+ "not_run_yet",
5284
+ "ok",
5285
+ "failed"
5286
+ ]
5287
+ },
4538
5288
  "volume": {
4539
5289
  "type": [
4540
5290
  "number",
@@ -4570,11 +5320,14 @@
4570
5320
  }
4571
5321
  ]
4572
5322
  },
4573
- "partName": {
4574
- "type": "string"
4575
- },
4576
5323
  "featureCount": {
4577
5324
  "type": "integer"
5325
+ },
5326
+ "bodyCount": {
5327
+ "type": [
5328
+ "integer",
5329
+ "null"
5330
+ ]
4578
5331
  }
4579
5332
  }
4580
5333
  }
@@ -4594,7 +5347,7 @@
4594
5347
  },
4595
5348
  {
4596
5349
  "name": "insert_make_extrude",
4597
- "description": "Insert this helper through composeHelperInsert and mutate.",
5350
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
4598
5351
  "args": {
4599
5352
  "type": "object",
4600
5353
  "additionalProperties": false,
@@ -4635,6 +5388,23 @@
4635
5388
  "type": "object",
4636
5389
  "additionalProperties": false,
4637
5390
  "properties": {
5391
+ "partId": {
5392
+ "type": "string"
5393
+ },
5394
+ "partName": {
5395
+ "type": "string"
5396
+ },
5397
+ "script": {
5398
+ "type": "string"
5399
+ },
5400
+ "runState": {
5401
+ "type": "string",
5402
+ "enum": [
5403
+ "not_run_yet",
5404
+ "ok",
5405
+ "failed"
5406
+ ]
5407
+ },
4638
5408
  "volume": {
4639
5409
  "type": [
4640
5410
  "number",
@@ -4670,11 +5440,14 @@
4670
5440
  }
4671
5441
  ]
4672
5442
  },
4673
- "partName": {
4674
- "type": "string"
4675
- },
4676
5443
  "featureCount": {
4677
5444
  "type": "integer"
5445
+ },
5446
+ "bodyCount": {
5447
+ "type": [
5448
+ "integer",
5449
+ "null"
5450
+ ]
4678
5451
  }
4679
5452
  }
4680
5453
  }
@@ -4698,7 +5471,7 @@
4698
5471
  },
4699
5472
  {
4700
5473
  "name": "insert_make_revolve",
4701
- "description": "Insert this helper through composeHelperInsert and mutate.",
5474
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
4702
5475
  "args": {
4703
5476
  "type": "object",
4704
5477
  "additionalProperties": false,
@@ -4739,6 +5512,23 @@
4739
5512
  "type": "object",
4740
5513
  "additionalProperties": false,
4741
5514
  "properties": {
5515
+ "partId": {
5516
+ "type": "string"
5517
+ },
5518
+ "partName": {
5519
+ "type": "string"
5520
+ },
5521
+ "script": {
5522
+ "type": "string"
5523
+ },
5524
+ "runState": {
5525
+ "type": "string",
5526
+ "enum": [
5527
+ "not_run_yet",
5528
+ "ok",
5529
+ "failed"
5530
+ ]
5531
+ },
4742
5532
  "volume": {
4743
5533
  "type": [
4744
5534
  "number",
@@ -4774,11 +5564,14 @@
4774
5564
  }
4775
5565
  ]
4776
5566
  },
4777
- "partName": {
4778
- "type": "string"
4779
- },
4780
5567
  "featureCount": {
4781
5568
  "type": "integer"
5569
+ },
5570
+ "bodyCount": {
5571
+ "type": [
5572
+ "integer",
5573
+ "null"
5574
+ ]
4782
5575
  }
4783
5576
  }
4784
5577
  }
@@ -4802,7 +5595,7 @@
4802
5595
  },
4803
5596
  {
4804
5597
  "name": "insert_make_sweep",
4805
- "description": "Insert this helper through composeHelperInsert and mutate.",
5598
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
4806
5599
  "args": {
4807
5600
  "type": "object",
4808
5601
  "additionalProperties": false,
@@ -4836,6 +5629,23 @@
4836
5629
  "type": "object",
4837
5630
  "additionalProperties": false,
4838
5631
  "properties": {
5632
+ "partId": {
5633
+ "type": "string"
5634
+ },
5635
+ "partName": {
5636
+ "type": "string"
5637
+ },
5638
+ "script": {
5639
+ "type": "string"
5640
+ },
5641
+ "runState": {
5642
+ "type": "string",
5643
+ "enum": [
5644
+ "not_run_yet",
5645
+ "ok",
5646
+ "failed"
5647
+ ]
5648
+ },
4839
5649
  "volume": {
4840
5650
  "type": [
4841
5651
  "number",
@@ -4871,11 +5681,14 @@
4871
5681
  }
4872
5682
  ]
4873
5683
  },
4874
- "partName": {
4875
- "type": "string"
4876
- },
4877
5684
  "featureCount": {
4878
5685
  "type": "integer"
5686
+ },
5687
+ "bodyCount": {
5688
+ "type": [
5689
+ "integer",
5690
+ "null"
5691
+ ]
4879
5692
  }
4880
5693
  }
4881
5694
  }
@@ -4897,7 +5710,7 @@
4897
5710
  },
4898
5711
  {
4899
5712
  "name": "insert_make_loft",
4900
- "description": "Insert this helper through composeHelperInsert and mutate.",
5713
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
4901
5714
  "args": {
4902
5715
  "type": "object",
4903
5716
  "additionalProperties": false,
@@ -4938,14 +5751,31 @@
4938
5751
  "type": "object",
4939
5752
  "additionalProperties": false,
4940
5753
  "properties": {
4941
- "volume": {
4942
- "type": [
4943
- "number",
4944
- "null"
4945
- ]
5754
+ "partId": {
5755
+ "type": "string"
4946
5756
  },
4947
- "bbox": {
4948
- "oneOf": [
5757
+ "partName": {
5758
+ "type": "string"
5759
+ },
5760
+ "script": {
5761
+ "type": "string"
5762
+ },
5763
+ "runState": {
5764
+ "type": "string",
5765
+ "enum": [
5766
+ "not_run_yet",
5767
+ "ok",
5768
+ "failed"
5769
+ ]
5770
+ },
5771
+ "volume": {
5772
+ "type": [
5773
+ "number",
5774
+ "null"
5775
+ ]
5776
+ },
5777
+ "bbox": {
5778
+ "oneOf": [
4949
5779
  {
4950
5780
  "type": "object",
4951
5781
  "additionalProperties": false,
@@ -4973,11 +5803,14 @@
4973
5803
  }
4974
5804
  ]
4975
5805
  },
4976
- "partName": {
4977
- "type": "string"
4978
- },
4979
5806
  "featureCount": {
4980
5807
  "type": "integer"
5808
+ },
5809
+ "bodyCount": {
5810
+ "type": [
5811
+ "integer",
5812
+ "null"
5813
+ ]
4981
5814
  }
4982
5815
  }
4983
5816
  }
@@ -5001,7 +5834,7 @@
5001
5834
  },
5002
5835
  {
5003
5836
  "name": "insert_move_face",
5004
- "description": "Insert this helper through composeHelperInsert and mutate.",
5837
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
5005
5838
  "args": {
5006
5839
  "type": "object",
5007
5840
  "additionalProperties": false,
@@ -5038,6 +5871,23 @@
5038
5871
  "type": "object",
5039
5872
  "additionalProperties": false,
5040
5873
  "properties": {
5874
+ "partId": {
5875
+ "type": "string"
5876
+ },
5877
+ "partName": {
5878
+ "type": "string"
5879
+ },
5880
+ "script": {
5881
+ "type": "string"
5882
+ },
5883
+ "runState": {
5884
+ "type": "string",
5885
+ "enum": [
5886
+ "not_run_yet",
5887
+ "ok",
5888
+ "failed"
5889
+ ]
5890
+ },
5041
5891
  "volume": {
5042
5892
  "type": [
5043
5893
  "number",
@@ -5073,11 +5923,14 @@
5073
5923
  }
5074
5924
  ]
5075
5925
  },
5076
- "partName": {
5077
- "type": "string"
5078
- },
5079
5926
  "featureCount": {
5080
5927
  "type": "integer"
5928
+ },
5929
+ "bodyCount": {
5930
+ "type": [
5931
+ "integer",
5932
+ "null"
5933
+ ]
5081
5934
  }
5082
5935
  }
5083
5936
  }
@@ -5101,7 +5954,7 @@
5101
5954
  },
5102
5955
  {
5103
5956
  "name": "insert_delete_face",
5104
- "description": "Insert this helper through composeHelperInsert and mutate.",
5957
+ "description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Working copy only; git_save commits.",
5105
5958
  "args": {
5106
5959
  "type": "object",
5107
5960
  "additionalProperties": false,
@@ -5132,6 +5985,23 @@
5132
5985
  "type": "object",
5133
5986
  "additionalProperties": false,
5134
5987
  "properties": {
5988
+ "partId": {
5989
+ "type": "string"
5990
+ },
5991
+ "partName": {
5992
+ "type": "string"
5993
+ },
5994
+ "script": {
5995
+ "type": "string"
5996
+ },
5997
+ "runState": {
5998
+ "type": "string",
5999
+ "enum": [
6000
+ "not_run_yet",
6001
+ "ok",
6002
+ "failed"
6003
+ ]
6004
+ },
5135
6005
  "volume": {
5136
6006
  "type": [
5137
6007
  "number",
@@ -5167,11 +6037,14 @@
5167
6037
  }
5168
6038
  ]
5169
6039
  },
5170
- "partName": {
5171
- "type": "string"
5172
- },
5173
6040
  "featureCount": {
5174
6041
  "type": "integer"
6042
+ },
6043
+ "bodyCount": {
6044
+ "type": [
6045
+ "integer",
6046
+ "null"
6047
+ ]
5175
6048
  }
5176
6049
  }
5177
6050
  }
@@ -5328,6 +6201,23 @@
5328
6201
  "type": "object",
5329
6202
  "additionalProperties": false,
5330
6203
  "properties": {
6204
+ "partId": {
6205
+ "type": "string"
6206
+ },
6207
+ "partName": {
6208
+ "type": "string"
6209
+ },
6210
+ "script": {
6211
+ "type": "string"
6212
+ },
6213
+ "runState": {
6214
+ "type": "string",
6215
+ "enum": [
6216
+ "not_run_yet",
6217
+ "ok",
6218
+ "failed"
6219
+ ]
6220
+ },
5331
6221
  "volume": {
5332
6222
  "type": [
5333
6223
  "number",
@@ -5363,11 +6253,14 @@
5363
6253
  }
5364
6254
  ]
5365
6255
  },
5366
- "partName": {
5367
- "type": "string"
5368
- },
5369
6256
  "featureCount": {
5370
6257
  "type": "integer"
6258
+ },
6259
+ "bodyCount": {
6260
+ "type": [
6261
+ "integer",
6262
+ "null"
6263
+ ]
5371
6264
  }
5372
6265
  }
5373
6266
  },
@@ -5451,6 +6344,23 @@
5451
6344
  "type": "object",
5452
6345
  "additionalProperties": false,
5453
6346
  "properties": {
6347
+ "partId": {
6348
+ "type": "string"
6349
+ },
6350
+ "partName": {
6351
+ "type": "string"
6352
+ },
6353
+ "script": {
6354
+ "type": "string"
6355
+ },
6356
+ "runState": {
6357
+ "type": "string",
6358
+ "enum": [
6359
+ "not_run_yet",
6360
+ "ok",
6361
+ "failed"
6362
+ ]
6363
+ },
5454
6364
  "volume": {
5455
6365
  "type": [
5456
6366
  "number",
@@ -5486,11 +6396,14 @@
5486
6396
  }
5487
6397
  ]
5488
6398
  },
5489
- "partName": {
5490
- "type": "string"
5491
- },
5492
6399
  "featureCount": {
5493
6400
  "type": "integer"
6401
+ },
6402
+ "bodyCount": {
6403
+ "type": [
6404
+ "integer",
6405
+ "null"
6406
+ ]
5494
6407
  }
5495
6408
  }
5496
6409
  },
@@ -6235,7 +7148,7 @@
6235
7148
  },
6236
7149
  {
6237
7150
  "name": "set_active_part",
6238
- "description": "Switch the editor and mesh to a part row.",
7151
+ "description": "Switch the editor and mesh to a part row. part_id is an opaque surf id from parts, never a path or name.",
6239
7152
  "args": {
6240
7153
  "type": "object",
6241
7154
  "additionalProperties": false,
@@ -6244,7 +7157,8 @@
6244
7157
  ],
6245
7158
  "properties": {
6246
7159
  "part_id": {
6247
- "type": "string"
7160
+ "type": "string",
7161
+ "description": "Part id from parts. Not a vault path."
6248
7162
  }
6249
7163
  }
6250
7164
  },
@@ -6268,7 +7182,56 @@
6268
7182
  "immediate": true,
6269
7183
  "uiEntry": null,
6270
7184
  "example": {
6271
- "part_id": "local:part1"
7185
+ "part_id": "2026-10-07-20-56-31-0423-a3f9"
7186
+ }
7187
+ },
7188
+ {
7189
+ "name": "set_part_visible",
7190
+ "description": "Hide or show one part, the same working-copy change as the Parts list visibility toggle. part_id is an opaque id: this does not accept a vault path and does not fall back to the active part. This is not agent_set_visible, which toggles operator-visible cues (the synthetic cursor, highlights, and pacing). Working copy only: it does not write git or the vault.",
7191
+ "args": {
7192
+ "type": "object",
7193
+ "additionalProperties": false,
7194
+ "required": [
7195
+ "part_id",
7196
+ "visible"
7197
+ ],
7198
+ "properties": {
7199
+ "part_id": {
7200
+ "type": "string",
7201
+ "description": "Opaque part id from parts. Not a vault path. Does not fall back to the active part."
7202
+ },
7203
+ "visible": {
7204
+ "type": "boolean",
7205
+ "description": "true shows the part, false hides it."
7206
+ }
7207
+ }
7208
+ },
7209
+ "result": {
7210
+ "type": "object",
7211
+ "additionalProperties": false,
7212
+ "properties": {
7213
+ "partId": {
7214
+ "type": "string"
7215
+ },
7216
+ "visible": {
7217
+ "type": "boolean"
7218
+ }
7219
+ }
7220
+ },
7221
+ "errors": [
7222
+ "bad_args",
7223
+ "unknown_part",
7224
+ "no_assembly",
7225
+ "internal"
7226
+ ],
7227
+ "mutates": true,
7228
+ "destructive": false,
7229
+ "confirm": false,
7230
+ "immediate": false,
7231
+ "uiEntry": null,
7232
+ "example": {
7233
+ "part_id": "local:part1",
7234
+ "visible": false
6272
7235
  }
6273
7236
  },
6274
7237
  {
@@ -6580,6 +7543,23 @@
6580
7543
  "type": "object",
6581
7544
  "additionalProperties": false,
6582
7545
  "properties": {
7546
+ "partId": {
7547
+ "type": "string"
7548
+ },
7549
+ "partName": {
7550
+ "type": "string"
7551
+ },
7552
+ "script": {
7553
+ "type": "string"
7554
+ },
7555
+ "runState": {
7556
+ "type": "string",
7557
+ "enum": [
7558
+ "not_run_yet",
7559
+ "ok",
7560
+ "failed"
7561
+ ]
7562
+ },
6583
7563
  "volume": {
6584
7564
  "type": [
6585
7565
  "number",
@@ -6615,11 +7595,14 @@
6615
7595
  }
6616
7596
  ]
6617
7597
  },
6618
- "partName": {
6619
- "type": "string"
6620
- },
6621
7598
  "featureCount": {
6622
7599
  "type": "integer"
7600
+ },
7601
+ "bodyCount": {
7602
+ "type": [
7603
+ "integer",
7604
+ "null"
7605
+ ]
6623
7606
  }
6624
7607
  }
6625
7608
  },
@@ -6810,6 +7793,23 @@
6810
7793
  "type": "object",
6811
7794
  "additionalProperties": false,
6812
7795
  "properties": {
7796
+ "partId": {
7797
+ "type": "string"
7798
+ },
7799
+ "partName": {
7800
+ "type": "string"
7801
+ },
7802
+ "script": {
7803
+ "type": "string"
7804
+ },
7805
+ "runState": {
7806
+ "type": "string",
7807
+ "enum": [
7808
+ "not_run_yet",
7809
+ "ok",
7810
+ "failed"
7811
+ ]
7812
+ },
6813
7813
  "volume": {
6814
7814
  "type": [
6815
7815
  "number",
@@ -6845,11 +7845,14 @@
6845
7845
  }
6846
7846
  ]
6847
7847
  },
6848
- "partName": {
6849
- "type": "string"
6850
- },
6851
7848
  "featureCount": {
6852
7849
  "type": "integer"
7850
+ },
7851
+ "bodyCount": {
7852
+ "type": [
7853
+ "integer",
7854
+ "null"
7855
+ ]
6853
7856
  }
6854
7857
  }
6855
7858
  },
@@ -6979,6 +7982,23 @@
6979
7982
  "type": "object",
6980
7983
  "additionalProperties": false,
6981
7984
  "properties": {
7985
+ "partId": {
7986
+ "type": "string"
7987
+ },
7988
+ "partName": {
7989
+ "type": "string"
7990
+ },
7991
+ "script": {
7992
+ "type": "string"
7993
+ },
7994
+ "runState": {
7995
+ "type": "string",
7996
+ "enum": [
7997
+ "not_run_yet",
7998
+ "ok",
7999
+ "failed"
8000
+ ]
8001
+ },
6982
8002
  "volume": {
6983
8003
  "type": [
6984
8004
  "number",
@@ -7014,11 +8034,14 @@
7014
8034
  }
7015
8035
  ]
7016
8036
  },
7017
- "partName": {
7018
- "type": "string"
7019
- },
7020
8037
  "featureCount": {
7021
8038
  "type": "integer"
8039
+ },
8040
+ "bodyCount": {
8041
+ "type": [
8042
+ "integer",
8043
+ "null"
8044
+ ]
7022
8045
  }
7023
8046
  }
7024
8047
  },
@@ -7247,6 +8270,23 @@
7247
8270
  "type": "object",
7248
8271
  "additionalProperties": false,
7249
8272
  "properties": {
8273
+ "partId": {
8274
+ "type": "string"
8275
+ },
8276
+ "partName": {
8277
+ "type": "string"
8278
+ },
8279
+ "script": {
8280
+ "type": "string"
8281
+ },
8282
+ "runState": {
8283
+ "type": "string",
8284
+ "enum": [
8285
+ "not_run_yet",
8286
+ "ok",
8287
+ "failed"
8288
+ ]
8289
+ },
7250
8290
  "volume": {
7251
8291
  "type": [
7252
8292
  "number",
@@ -7282,11 +8322,14 @@
7282
8322
  }
7283
8323
  ]
7284
8324
  },
7285
- "partName": {
7286
- "type": "string"
7287
- },
7288
8325
  "featureCount": {
7289
8326
  "type": "integer"
8327
+ },
8328
+ "bodyCount": {
8329
+ "type": [
8330
+ "integer",
8331
+ "null"
8332
+ ]
7290
8333
  }
7291
8334
  }
7292
8335
  },
@@ -9933,6 +10976,23 @@
9933
10976
  "type": "object",
9934
10977
  "additionalProperties": false,
9935
10978
  "properties": {
10979
+ "partId": {
10980
+ "type": "string"
10981
+ },
10982
+ "partName": {
10983
+ "type": "string"
10984
+ },
10985
+ "script": {
10986
+ "type": "string"
10987
+ },
10988
+ "runState": {
10989
+ "type": "string",
10990
+ "enum": [
10991
+ "not_run_yet",
10992
+ "ok",
10993
+ "failed"
10994
+ ]
10995
+ },
9936
10996
  "volume": {
9937
10997
  "type": [
9938
10998
  "number",
@@ -9968,11 +11028,14 @@
9968
11028
  }
9969
11029
  ]
9970
11030
  },
9971
- "partName": {
9972
- "type": "string"
9973
- },
9974
11031
  "featureCount": {
9975
11032
  "type": "integer"
11033
+ },
11034
+ "bodyCount": {
11035
+ "type": [
11036
+ "integer",
11037
+ "null"
11038
+ ]
9976
11039
  }
9977
11040
  }
9978
11041
  },
@@ -10191,11 +11254,16 @@
10191
11254
  },
10192
11255
  {
10193
11256
  "name": "create_assembly",
10194
- "description": "Seed a blank assembly document.",
11257
+ "description": "Seed a blank local assembly. Single-flight per tab: overlapping calls return the same assemblyId. Optional name is a non-unique label. No git write. Returns { assemblyId, assemblyName, activeId, partCount }.",
10195
11258
  "args": {
10196
11259
  "type": "object",
10197
11260
  "additionalProperties": false,
10198
- "properties": {}
11261
+ "properties": {
11262
+ "name": {
11263
+ "type": "string",
11264
+ "description": "Optional display label. Names are not unique and are not used as keys."
11265
+ }
11266
+ }
10199
11267
  },
10200
11268
  "result": {
10201
11269
  "type": "object",
@@ -10205,15 +11273,17 @@
10205
11273
  "internal"
10206
11274
  ],
10207
11275
  "mutates": true,
10208
- "destructive": true,
10209
- "confirm": true,
11276
+ "destructive": false,
11277
+ "confirm": false,
10210
11278
  "immediate": false,
10211
11279
  "uiEntry": "data-part-add-kind-assembly",
10212
- "example": {}
11280
+ "example": {
11281
+ "name": "Gearbox"
11282
+ }
10213
11283
  },
10214
11284
  {
10215
11285
  "name": "create_part",
10216
- "description": "Add a part row to the assembly.",
11286
+ "description": "Add a part and make it the active part before returning. The result partId is a new opaque surf id, not the previously active part. When script is set, that script runs before the call returns (ok, errors, failures, status); a failed script still leaves the part. Agent calls default to the assembly origin; pass position [x,y,z] mm to place it. Working copy only: nothing reaches git without git_save.",
10217
11287
  "args": {
10218
11288
  "type": "object",
10219
11289
  "additionalProperties": false,
@@ -10223,6 +11293,15 @@
10223
11293
  },
10224
11294
  "script": {
10225
11295
  "type": "string"
11296
+ },
11297
+ "position": {
11298
+ "type": "array",
11299
+ "items": {
11300
+ "type": "number"
11301
+ },
11302
+ "minItems": 3,
11303
+ "maxItems": 3,
11304
+ "description": "Optional initial translation [x, y, z] mm. Agent create_part defaults to the assembly origin; UI creation still staggers along +X."
10226
11305
  }
10227
11306
  }
10228
11307
  },
@@ -10232,6 +11311,7 @@
10232
11311
  },
10233
11312
  "errors": [
10234
11313
  "bad_args",
11314
+ "no_assembly",
10235
11315
  "internal"
10236
11316
  ],
10237
11317
  "mutates": true,
@@ -10240,58 +11320,413 @@
10240
11320
  "immediate": false,
10241
11321
  "uiEntry": "data-part-add-kind-part",
10242
11322
  "example": {
10243
- "name": "Bracket"
11323
+ "name": "Bracket"
11324
+ }
11325
+ },
11326
+ {
11327
+ "name": "rename_part",
11328
+ "description": "Rename a part display name on the working copy. part_id is an opaque surf id; a path or name is unknown_part. Response { partId, name, moved: false }. No git write; the committed header updates on the next git_save.",
11329
+ "args": {
11330
+ "type": "object",
11331
+ "additionalProperties": false,
11332
+ "required": [
11333
+ "part_id",
11334
+ "name"
11335
+ ],
11336
+ "properties": {
11337
+ "part_id": {
11338
+ "type": "string",
11339
+ "description": "Part id from parts. Not a vault path."
11340
+ },
11341
+ "name": {
11342
+ "type": "string",
11343
+ "description": "New display name. Working copy only; Save writes the same f(id) file."
11344
+ }
11345
+ }
11346
+ },
11347
+ "result": {
11348
+ "type": "object",
11349
+ "additionalProperties": true
11350
+ },
11351
+ "errors": [
11352
+ "bad_args",
11353
+ "unknown_part",
11354
+ "no_assembly",
11355
+ "internal"
11356
+ ],
11357
+ "mutates": true,
11358
+ "destructive": false,
11359
+ "confirm": false,
11360
+ "immediate": false,
11361
+ "uiEntry": "data-part-name-input",
11362
+ "example": {
11363
+ "part_id": "2026-10-07-20-56-31-0423-a3f9",
11364
+ "name": "Mount"
11365
+ }
11366
+ },
11367
+ {
11368
+ "name": "rename_assembly",
11369
+ "description": "Rename the open assembly display name. assembly_id is an opaque surf id, not the current name. Names may collide. Working copy only; moved is false. git_save writes the same assemblies/<id>.surf.json.",
11370
+ "args": {
11371
+ "type": "object",
11372
+ "additionalProperties": false,
11373
+ "required": [
11374
+ "assembly_id",
11375
+ "name"
11376
+ ],
11377
+ "properties": {
11378
+ "assembly_id": {
11379
+ "type": "string",
11380
+ "description": "Assembly surf-id from parts / list_assemblies."
11381
+ },
11382
+ "name": {
11383
+ "type": "string",
11384
+ "description": "New display label. Working copy only; not unique."
11385
+ }
11386
+ }
11387
+ },
11388
+ "result": {
11389
+ "type": "object",
11390
+ "additionalProperties": true
11391
+ },
11392
+ "errors": [
11393
+ "bad_args",
11394
+ "unknown_assembly",
11395
+ "no_assembly",
11396
+ "internal"
11397
+ ],
11398
+ "mutates": true,
11399
+ "destructive": false,
11400
+ "confirm": false,
11401
+ "immediate": false,
11402
+ "uiEntry": "data-assembly-rename-menu",
11403
+ "example": {
11404
+ "assembly_id": "2026-10-18-02-50-00-0001-aa01",
11405
+ "name": "Gearbox"
11406
+ }
11407
+ },
11408
+ {
11409
+ "name": "part_get_transform",
11410
+ "description": "Read rigid placement by opaque part_id: position [x,y,z] mm and intrinsic XYZ Euler degrees. A vault path or display name is unknown_part. Does not fall back to the active part.",
11411
+ "args": {
11412
+ "type": "object",
11413
+ "additionalProperties": false,
11414
+ "required": [
11415
+ "part_id"
11416
+ ],
11417
+ "properties": {
11418
+ "part_id": {
11419
+ "type": "string",
11420
+ "description": "Part id from parts. Not a vault path."
11421
+ }
11422
+ }
11423
+ },
11424
+ "result": {
11425
+ "type": "object",
11426
+ "additionalProperties": false,
11427
+ "properties": {
11428
+ "part": {
11429
+ "type": "string"
11430
+ },
11431
+ "partId": {
11432
+ "type": "string"
11433
+ },
11434
+ "position": {
11435
+ "type": "array",
11436
+ "items": {
11437
+ "type": "number"
11438
+ },
11439
+ "minItems": 3,
11440
+ "maxItems": 3
11441
+ },
11442
+ "rotation": {
11443
+ "type": "array",
11444
+ "items": {
11445
+ "type": "number"
11446
+ },
11447
+ "minItems": 3,
11448
+ "maxItems": 3
11449
+ },
11450
+ "eulerOrder": {
11451
+ "type": "string",
11452
+ "const": "XYZ"
11453
+ }
11454
+ }
11455
+ },
11456
+ "errors": [
11457
+ "bad_args",
11458
+ "unknown_part",
11459
+ "internal"
11460
+ ],
11461
+ "mutates": false,
11462
+ "destructive": false,
11463
+ "confirm": false,
11464
+ "immediate": true,
11465
+ "uiEntry": null,
11466
+ "example": {
11467
+ "part_id": "2026-10-07-20-56-31-0423-a3f9"
11468
+ }
11469
+ },
11470
+ {
11471
+ "name": "part_set_transform",
11472
+ "description": "Set rigid placement by opaque part_id (translation mm, intrinsic XYZ Euler degrees). One assembly undo step. A vault path or display name is unknown_part. Working copy only.",
11473
+ "args": {
11474
+ "type": "object",
11475
+ "additionalProperties": false,
11476
+ "required": [
11477
+ "part_id"
11478
+ ],
11479
+ "properties": {
11480
+ "part_id": {
11481
+ "type": "string",
11482
+ "description": "Part id from parts. Not a vault path."
11483
+ },
11484
+ "position": {
11485
+ "type": "array",
11486
+ "items": {
11487
+ "type": "number"
11488
+ },
11489
+ "minItems": 3,
11490
+ "maxItems": 3,
11491
+ "description": "Translation [x, y, z] in mm. Omitted keeps the current translation."
11492
+ },
11493
+ "rotation": {
11494
+ "type": "array",
11495
+ "items": {
11496
+ "type": "number"
11497
+ },
11498
+ "minItems": 3,
11499
+ "maxItems": 3,
11500
+ "description": "Intrinsic XYZ Euler rotation in degrees (same order as three.js Euler XYZ). Omitted keeps the current rotation."
11501
+ }
11502
+ }
11503
+ },
11504
+ "result": {
11505
+ "type": "object",
11506
+ "additionalProperties": false,
11507
+ "properties": {
11508
+ "part": {
11509
+ "type": "string"
11510
+ },
11511
+ "partId": {
11512
+ "type": "string"
11513
+ },
11514
+ "position": {
11515
+ "type": "array",
11516
+ "items": {
11517
+ "type": "number"
11518
+ },
11519
+ "minItems": 3,
11520
+ "maxItems": 3
11521
+ },
11522
+ "rotation": {
11523
+ "type": "array",
11524
+ "items": {
11525
+ "type": "number"
11526
+ },
11527
+ "minItems": 3,
11528
+ "maxItems": 3
11529
+ },
11530
+ "eulerOrder": {
11531
+ "type": "string",
11532
+ "const": "XYZ"
11533
+ }
11534
+ }
11535
+ },
11536
+ "errors": [
11537
+ "bad_args",
11538
+ "unknown_part",
11539
+ "no_assembly",
11540
+ "internal"
11541
+ ],
11542
+ "mutates": true,
11543
+ "destructive": false,
11544
+ "confirm": false,
11545
+ "immediate": false,
11546
+ "uiEntry": null,
11547
+ "example": {
11548
+ "part_id": "2026-10-07-20-56-31-0423-a3f9",
11549
+ "position": [
11550
+ 10,
11551
+ 0,
11552
+ 0
11553
+ ]
11554
+ }
11555
+ },
11556
+ {
11557
+ "name": "open_assembly",
11558
+ "description": "Open a vault assembly by opaque assembly_id only. A name or path is unknown_assembly. Does not write git.",
11559
+ "args": {
11560
+ "type": "object",
11561
+ "additionalProperties": false,
11562
+ "required": [
11563
+ "assembly_id"
11564
+ ],
11565
+ "properties": {
11566
+ "assembly_id": {
11567
+ "type": "string",
11568
+ "description": "Assembly surf-id from list_assemblies. Not a name or path."
11569
+ }
11570
+ }
11571
+ },
11572
+ "result": {
11573
+ "type": "object",
11574
+ "additionalProperties": true
11575
+ },
11576
+ "errors": [
11577
+ "bad_args",
11578
+ "unknown_assembly",
11579
+ "git_only",
11580
+ "git_blocked",
11581
+ "internal"
11582
+ ],
11583
+ "mutates": true,
11584
+ "destructive": false,
11585
+ "confirm": false,
11586
+ "immediate": false,
11587
+ "uiEntry": [
11588
+ "data-part-open-action-assembly",
11589
+ "data-git-open-replace"
11590
+ ],
11591
+ "example": {
11592
+ "assembly_id": "2026-10-18-02-50-00-0001-aa01"
11593
+ }
11594
+ },
11595
+ {
11596
+ "name": "open_part",
11597
+ "description": "Open a vault part by opaque part_id and/or assembly_id into the current assembly (reference). No path or name lookup. Does not write git.",
11598
+ "args": {
11599
+ "type": "object",
11600
+ "additionalProperties": false,
11601
+ "properties": {
11602
+ "part_id": {
11603
+ "type": "string",
11604
+ "description": "Part surf-id to open by reference into the current assembly."
11605
+ },
11606
+ "assembly_id": {
11607
+ "type": "string",
11608
+ "description": "Assembly surf-id whose parts are opened by reference."
11609
+ }
11610
+ }
11611
+ },
11612
+ "result": {
11613
+ "type": "object",
11614
+ "additionalProperties": true
11615
+ },
11616
+ "errors": [
11617
+ "bad_args",
11618
+ "unknown_part",
11619
+ "unknown_assembly",
11620
+ "git_only",
11621
+ "internal"
11622
+ ],
11623
+ "mutates": true,
11624
+ "destructive": false,
11625
+ "confirm": false,
11626
+ "immediate": false,
11627
+ "uiEntry": "data-part-open-action-part",
11628
+ "example": {
11629
+ "part_id": "2026-10-07-20-56-31-0423-a3f9"
11630
+ }
11631
+ },
11632
+ {
11633
+ "name": "insert_part",
11634
+ "description": "Insert-as-reference by opaque part_id, or every part of assembly_id (same ids). copy:true mints a new part id and sets copiedFrom. A path or name is unknown_part / unknown_assembly. Does not write git.",
11635
+ "args": {
11636
+ "type": "object",
11637
+ "additionalProperties": false,
11638
+ "properties": {
11639
+ "part_id": {
11640
+ "type": "string",
11641
+ "description": "Part surf-id to insert as a reference (same id)."
11642
+ },
11643
+ "assembly_id": {
11644
+ "type": "string",
11645
+ "description": "Insert every part of this assembly as references."
11646
+ },
11647
+ "copy": {
11648
+ "type": "boolean",
11649
+ "description": "Mint a new part id and set copiedFrom (independent file)."
11650
+ },
11651
+ "name": {
11652
+ "type": "string",
11653
+ "description": "Local: new part name (same as create_part)"
11654
+ },
11655
+ "script": {
11656
+ "type": "string"
11657
+ }
11658
+ }
11659
+ },
11660
+ "result": {
11661
+ "type": "object",
11662
+ "additionalProperties": true
11663
+ },
11664
+ "errors": [
11665
+ "bad_args",
11666
+ "unknown_part",
11667
+ "unknown_assembly",
11668
+ "git_only",
11669
+ "internal"
11670
+ ],
11671
+ "mutates": true,
11672
+ "destructive": false,
11673
+ "confirm": false,
11674
+ "immediate": false,
11675
+ "uiEntry": "data-git-open-insert",
11676
+ "example": {
11677
+ "part_id": "2026-10-07-20-56-31-0423-a3f9"
10244
11678
  }
10245
11679
  },
10246
11680
  {
10247
- "name": "open_assembly",
10248
- "description": "Open a vault assembly (git mode).",
11681
+ "name": "list_assemblies",
11682
+ "description": "List vault assemblies as [{ id, name }]. id is an opaque surf id; name is a label, not a key. No path field. Git-only.",
10249
11683
  "args": {
10250
11684
  "type": "object",
10251
11685
  "additionalProperties": false,
10252
- "required": [
10253
- "name"
10254
- ],
10255
- "properties": {
10256
- "name": {
10257
- "type": "string",
10258
- "description": "Vault assembly name"
10259
- }
10260
- }
11686
+ "properties": {}
10261
11687
  },
10262
11688
  "result": {
10263
11689
  "type": "object",
10264
11690
  "additionalProperties": true
10265
11691
  },
10266
11692
  "errors": [
10267
- "bad_args",
11693
+ "git_only",
11694
+ "git_blocked",
10268
11695
  "internal"
10269
11696
  ],
10270
- "mutates": true,
10271
- "destructive": true,
10272
- "confirm": true,
10273
- "immediate": false,
10274
- "uiEntry": [
10275
- "data-part-open-action-assembly",
10276
- "data-git-open-replace"
10277
- ],
10278
- "example": {
10279
- "name": "my-assembly"
10280
- }
11697
+ "mutates": false,
11698
+ "destructive": false,
11699
+ "confirm": false,
11700
+ "immediate": true,
11701
+ "uiEntry": null,
11702
+ "example": {}
10281
11703
  },
10282
11704
  {
10283
- "name": "open_part",
10284
- "description": "Open or link a vault part into the assembly.",
11705
+ "name": "delete_part",
11706
+ "description": "Drop a part by opaque part_id (a path or name is unknown_part). scope assembly removes the row. scope repo also plans a file delete on the next Save and requires confirm: true. Neither scope commits. part_still_referenced if another assembly lists the id.",
10285
11707
  "args": {
10286
11708
  "type": "object",
10287
11709
  "additionalProperties": false,
10288
11710
  "required": [
10289
- "path"
11711
+ "part_id",
11712
+ "scope"
10290
11713
  ],
10291
11714
  "properties": {
10292
- "path": {
11715
+ "part_id": {
11716
+ "type": "string",
11717
+ "description": "Part id from parts. Not a vault path."
11718
+ },
11719
+ "scope": {
10293
11720
  "type": "string",
10294
- "description": "Vault part path"
11721
+ "enum": [
11722
+ "assembly",
11723
+ "repo"
11724
+ ],
11725
+ "description": "assembly drops the row; repo also plans a file delete on the next Save."
11726
+ },
11727
+ "confirm": {
11728
+ "type": "boolean",
11729
+ "description": "Required true when scope is repo."
10295
11730
  }
10296
11731
  }
10297
11732
  },
@@ -10301,34 +11736,43 @@
10301
11736
  },
10302
11737
  "errors": [
10303
11738
  "bad_args",
11739
+ "unknown_part",
11740
+ "confirm_required",
11741
+ "part_still_referenced",
11742
+ "no_assembly",
10304
11743
  "internal"
10305
11744
  ],
10306
11745
  "mutates": true,
10307
- "destructive": false,
10308
- "confirm": false,
11746
+ "destructive": true,
11747
+ "confirm": true,
10309
11748
  "immediate": false,
10310
- "uiEntry": "data-part-open-action-part",
11749
+ "uiEntry": null,
10311
11750
  "example": {
10312
- "path": "parts/Bracket.js"
11751
+ "part_id": "2026-10-07-20-56-31-0423-a3f9",
11752
+ "scope": "assembly"
10313
11753
  }
10314
11754
  },
10315
11755
  {
10316
- "name": "insert_part",
10317
- "description": "Insert another assembly or add a new local part row.",
11756
+ "name": "delete_assembly",
11757
+ "description": "Delete the open assembly by opaque assembly_id. Requires confirm: true. delete_parts plans unreferenced part-file deletes on the next Save. No git write until git_save.",
10318
11758
  "args": {
10319
11759
  "type": "object",
10320
11760
  "additionalProperties": false,
11761
+ "required": [
11762
+ "assembly_id"
11763
+ ],
10321
11764
  "properties": {
10322
- "source_assembly": {
11765
+ "assembly_id": {
10323
11766
  "type": "string",
10324
- "description": "Git vault assembly to insert from"
11767
+ "description": "Assembly surf-id. Not a name or path."
10325
11768
  },
10326
- "name": {
10327
- "type": "string",
10328
- "description": "Local: new part name (same as create_part)"
11769
+ "confirm": {
11770
+ "type": "boolean",
11771
+ "description": "Must be true."
10329
11772
  },
10330
- "script": {
10331
- "type": "string"
11773
+ "delete_parts": {
11774
+ "type": "boolean",
11775
+ "description": "When true, plan part-file deletes on the next Save if unreferenced."
10332
11776
  }
10333
11777
  }
10334
11778
  },
@@ -10338,15 +11782,20 @@
10338
11782
  },
10339
11783
  "errors": [
10340
11784
  "bad_args",
11785
+ "unknown_assembly",
11786
+ "confirm_required",
11787
+ "upgrade_required",
11788
+ "no_assembly",
10341
11789
  "internal"
10342
11790
  ],
10343
11791
  "mutates": true,
10344
- "destructive": false,
10345
- "confirm": false,
11792
+ "destructive": true,
11793
+ "confirm": true,
10346
11794
  "immediate": false,
10347
- "uiEntry": "data-git-open-insert",
11795
+ "uiEntry": null,
10348
11796
  "example": {
10349
- "name": "Pin"
11797
+ "assembly_id": "2026-10-18-02-50-00-0001-aa01",
11798
+ "confirm": true
10350
11799
  }
10351
11800
  },
10352
11801
  {
@@ -10428,7 +11877,7 @@
10428
11877
  },
10429
11878
  {
10430
11879
  "name": "joint_pick",
10431
- "description": "Feed face picks on parts into the joint card.",
11880
+ "description": "Feed face picks on parts into the joint card. Pass face_id from list_faces together with the key from that row (ids are only valid until the next remesh; a stale pair returns unknown_face). A cylindrical face becomes an axis pick, as a viewport tap does.",
10432
11881
  "args": {
10433
11882
  "type": "object",
10434
11883
  "additionalProperties": false,
@@ -10436,6 +11885,11 @@
10436
11885
  "part_id": {
10437
11886
  "type": "string"
10438
11887
  },
11888
+ "face_id": {
11889
+ "type": "string",
11890
+ "pattern": "^f[0-9]+$",
11891
+ "description": "Face id from list_faces on that part (e.g. f7). Valid only until the next remesh; pass the key from the same list_faces row with the id."
11892
+ },
10439
11893
  "key": {
10440
11894
  "type": "object",
10441
11895
  "additionalProperties": false,
@@ -10486,13 +11940,17 @@
10486
11940
  "type": "object",
10487
11941
  "additionalProperties": false,
10488
11942
  "required": [
10489
- "part_id",
10490
- "key"
11943
+ "part_id"
10491
11944
  ],
10492
11945
  "properties": {
10493
11946
  "part_id": {
10494
11947
  "type": "string"
10495
11948
  },
11949
+ "face_id": {
11950
+ "type": "string",
11951
+ "pattern": "^f[0-9]+$",
11952
+ "description": "Face id from list_faces on that part (e.g. f7). Valid only until the next remesh; pass the key from the same list_faces row with the id."
11953
+ },
10496
11954
  "key": {
10497
11955
  "type": "object",
10498
11956
  "additionalProperties": false,
@@ -10551,6 +12009,9 @@
10551
12009
  "bad_args",
10552
12010
  "unknown_part",
10553
12011
  "unknown_face",
12012
+ "ambiguous_face",
12013
+ "pick_failed",
12014
+ "no_mesh",
10554
12015
  "internal"
10555
12016
  ],
10556
12017
  "mutates": false,
@@ -10562,34 +12023,36 @@
10562
12023
  "picks": [
10563
12024
  {
10564
12025
  "part_id": "local:base",
12026
+ "face_id": "f4",
10565
12027
  "key": {
10566
12028
  "at": [
10567
12029
  0,
10568
12030
  0,
10569
- 10
12031
+ 5
10570
12032
  ],
10571
12033
  "n": [
10572
12034
  0,
10573
12035
  0,
10574
12036
  1
10575
12037
  ],
10576
- "area": 2000
12038
+ "area": 400
10577
12039
  }
10578
12040
  },
10579
12041
  {
10580
12042
  "part_id": "local:pin",
12043
+ "face_id": "f2",
10581
12044
  "key": {
10582
12045
  "at": [
10583
12046
  0,
10584
12047
  0,
10585
- 10
12048
+ 0
10586
12049
  ],
10587
12050
  "n": [
10588
12051
  0,
10589
12052
  0,
10590
- -1
12053
+ 1
10591
12054
  ],
10592
- "area": 200
12055
+ "area": 50.27
10593
12056
  }
10594
12057
  }
10595
12058
  ]
@@ -10597,7 +12060,7 @@
10597
12060
  },
10598
12061
  {
10599
12062
  "name": "joint_commit",
10600
- "description": "Confirm the joint card and record assembly undo.",
12063
+ "description": "Confirm the joint card and record one assembly undo step. A refused commit, or one that changes nothing (unchanged: true), records no step.",
10601
12064
  "args": {
10602
12065
  "type": "object",
10603
12066
  "additionalProperties": false,
@@ -10608,6 +12071,8 @@
10608
12071
  "additionalProperties": true
10609
12072
  },
10610
12073
  "errors": [
12074
+ "no_joint_card",
12075
+ "commit_failed",
10611
12076
  "edit_failed",
10612
12077
  "internal"
10613
12078
  ],
@@ -10681,14 +12146,14 @@
10681
12146
  },
10682
12147
  {
10683
12148
  "name": "joint_edit",
10684
- "description": "Open or patch a joint on the strip (same fields as joint_set_params).",
12149
+ "description": "Open a joint by joint_id and patch it (same fields as joint_set_params); joint_commit writes it. A refused edit changes nothing.",
10685
12150
  "args": {
10686
12151
  "type": "object",
10687
12152
  "additionalProperties": false,
10688
12153
  "properties": {
10689
12154
  "joint_id": {
10690
12155
  "type": "string",
10691
- "description": "Joint id to edit; omit to edit the open card target"
12156
+ "description": "Joint id from the assembly strip; opens that joint for editing (no joint_select needed). Omit to patch the joint already open."
10692
12157
  },
10693
12158
  "type": {
10694
12159
  "type": "string",
@@ -10727,7 +12192,9 @@
10727
12192
  },
10728
12193
  "errors": [
10729
12194
  "bad_args",
12195
+ "no_assembly",
10730
12196
  "unknown_joint",
12197
+ "no_joint_edit",
10731
12198
  "edit_failed",
10732
12199
  "internal"
10733
12200
  ],
@@ -11066,6 +12533,23 @@
11066
12533
  "type": "object",
11067
12534
  "additionalProperties": false,
11068
12535
  "properties": {
12536
+ "partId": {
12537
+ "type": "string"
12538
+ },
12539
+ "partName": {
12540
+ "type": "string"
12541
+ },
12542
+ "script": {
12543
+ "type": "string"
12544
+ },
12545
+ "runState": {
12546
+ "type": "string",
12547
+ "enum": [
12548
+ "not_run_yet",
12549
+ "ok",
12550
+ "failed"
12551
+ ]
12552
+ },
11069
12553
  "volume": {
11070
12554
  "type": [
11071
12555
  "number",
@@ -11101,11 +12585,14 @@
11101
12585
  }
11102
12586
  ]
11103
12587
  },
11104
- "partName": {
11105
- "type": "string"
11106
- },
11107
12588
  "featureCount": {
11108
12589
  "type": "integer"
12590
+ },
12591
+ "bodyCount": {
12592
+ "type": [
12593
+ "integer",
12594
+ "null"
12595
+ ]
11109
12596
  }
11110
12597
  }
11111
12598
  },
@@ -11262,6 +12749,23 @@
11262
12749
  "type": "object",
11263
12750
  "additionalProperties": false,
11264
12751
  "properties": {
12752
+ "partId": {
12753
+ "type": "string"
12754
+ },
12755
+ "partName": {
12756
+ "type": "string"
12757
+ },
12758
+ "script": {
12759
+ "type": "string"
12760
+ },
12761
+ "runState": {
12762
+ "type": "string",
12763
+ "enum": [
12764
+ "not_run_yet",
12765
+ "ok",
12766
+ "failed"
12767
+ ]
12768
+ },
11265
12769
  "volume": {
11266
12770
  "type": [
11267
12771
  "number",
@@ -11297,11 +12801,14 @@
11297
12801
  }
11298
12802
  ]
11299
12803
  },
11300
- "partName": {
11301
- "type": "string"
11302
- },
11303
12804
  "featureCount": {
11304
12805
  "type": "integer"
12806
+ },
12807
+ "bodyCount": {
12808
+ "type": [
12809
+ "integer",
12810
+ "null"
12811
+ ]
11305
12812
  }
11306
12813
  }
11307
12814
  },
@@ -12662,6 +14169,68 @@
12662
14169
  "id": "l0"
12663
14170
  }
12664
14171
  },
14172
+ {
14173
+ "name": "agent_prompt",
14174
+ "description": "Send a prompt from the floating in-viewer field, or stop, dismiss, or attach a viewer screenshot. Does not edit a part and does not write git.",
14175
+ "args": {
14176
+ "type": "object",
14177
+ "additionalProperties": false,
14178
+ "properties": {
14179
+ "text": {
14180
+ "type": "string",
14181
+ "maxLength": 8000,
14182
+ "description": "Prompt text to send to the paired agent"
14183
+ },
14184
+ "action": {
14185
+ "type": "string",
14186
+ "enum": [
14187
+ "send",
14188
+ "stop",
14189
+ "dismiss",
14190
+ "screenshot"
14191
+ ],
14192
+ "description": "send is the default when text is present"
14193
+ }
14194
+ }
14195
+ },
14196
+ "result": {
14197
+ "type": "object",
14198
+ "additionalProperties": false,
14199
+ "properties": {
14200
+ "ok": {
14201
+ "type": "boolean"
14202
+ },
14203
+ "id": {
14204
+ "type": "string"
14205
+ },
14206
+ "attached": {
14207
+ "type": "boolean"
14208
+ },
14209
+ "reason": {
14210
+ "type": "string"
14211
+ }
14212
+ }
14213
+ },
14214
+ "errors": [
14215
+ "bad_args",
14216
+ "unavailable",
14217
+ "internal"
14218
+ ],
14219
+ "mutates": false,
14220
+ "destructive": false,
14221
+ "confirm": false,
14222
+ "immediate": true,
14223
+ "uiEntry": [
14224
+ "data-agent-prompt-send",
14225
+ "data-agent-prompt-stop",
14226
+ "data-agent-prompt-dismiss",
14227
+ "data-agent-prompt-screenshot"
14228
+ ],
14229
+ "example": {
14230
+ "text": "Add a 2 mm fillet on the cut-out corners",
14231
+ "action": "send"
14232
+ }
14233
+ },
12665
14234
  {
12666
14235
  "name": "fea_open",
12667
14236
  "description": "Bridge command fea_open.",
@@ -13930,6 +15499,8 @@
13930
15499
  "errors": [
13931
15500
  "bad_args",
13932
15501
  "git_blocked",
15502
+ "consent_pending",
15503
+ "real_repo_blocked",
13933
15504
  "internal"
13934
15505
  ],
13935
15506
  "mutates": true,
@@ -13943,7 +15514,7 @@
13943
15514
  },
13944
15515
  {
13945
15516
  "name": "git_save",
13946
- "description": "Commit dirty parts to the current vault branch.",
15517
+ "description": "The only vault content write, same planSave path as the Save button. message required. Working-copy tools do not commit. consent_pending: Allow dialog is up; retry the same call after the user clicks Allow. pending_save: an offline plan is waiting; Save again when online. upgrade_required: legacy vault; call git_upgrade_vault { confirm: true } after the user agrees. conflict or repo-moved: a remote edit overlaps this Save; git_force_overwrite, or git_behind_resolve { action: \"reload\" | \"branch\", confirm: true }, or stop. Results omit path fields.",
13947
15518
  "args": {
13948
15519
  "type": "object",
13949
15520
  "additionalProperties": false,
@@ -13963,7 +15534,13 @@
13963
15534
  },
13964
15535
  "errors": [
13965
15536
  "bad_args",
15537
+ "upgrade_required",
15538
+ "conflict",
15539
+ "repo-moved",
15540
+ "pending_save",
13966
15541
  "git_blocked",
15542
+ "consent_pending",
15543
+ "real_repo_blocked",
13967
15544
  "internal"
13968
15545
  ],
13969
15546
  "mutates": true,
@@ -13978,19 +15555,124 @@
13978
15555
  "message": "Update bracket"
13979
15556
  }
13980
15557
  },
15558
+ {
15559
+ "name": "git_upgrade_vault",
15560
+ "description": "Upgrade a legacy (v1 folder-layout) vault to v2 in one commit of remote tip bytes, then Save a dirty working copy as a second commit under the same confirmation. Requires confirm: true. Never runs on load. Off by default in this build (upgrade_unavailable) until v2 open/save land; tests and the Vite dev server can opt in. On v2 returns already_upgraded. Success is a summary: status, commit SHAs, assemblyIds, counts, leftoverFiles paths, and warnings — not the full plan, file contents, meshes, partBindings paths, or rekey.scripts.",
15561
+ "args": {
15562
+ "type": "object",
15563
+ "additionalProperties": false,
15564
+ "properties": {
15565
+ "confirm": {
15566
+ "type": "boolean",
15567
+ "description": "Must be true"
15568
+ }
15569
+ }
15570
+ },
15571
+ "result": {
15572
+ "type": "object",
15573
+ "additionalProperties": false,
15574
+ "properties": {
15575
+ "status": {
15576
+ "type": "string"
15577
+ },
15578
+ "sha": {
15579
+ "type": "string"
15580
+ },
15581
+ "upgradeSha": {
15582
+ "type": "string"
15583
+ },
15584
+ "branch": {
15585
+ "type": "string"
15586
+ },
15587
+ "commits": {
15588
+ "type": "integer"
15589
+ },
15590
+ "layout": {
15591
+ "type": "string"
15592
+ },
15593
+ "assemblyIds": {
15594
+ "type": "array",
15595
+ "items": {
15596
+ "type": "string"
15597
+ }
15598
+ },
15599
+ "counts": {
15600
+ "type": "object",
15601
+ "additionalProperties": false,
15602
+ "properties": {
15603
+ "commits": {
15604
+ "type": "integer"
15605
+ },
15606
+ "assemblies": {
15607
+ "type": "integer"
15608
+ },
15609
+ "partsKept": {
15610
+ "type": "integer"
15611
+ },
15612
+ "partsMinted": {
15613
+ "type": "integer"
15614
+ },
15615
+ "files": {
15616
+ "type": "integer"
15617
+ },
15618
+ "leftoverFiles": {
15619
+ "type": "integer"
15620
+ }
15621
+ }
15622
+ },
15623
+ "leftoverFiles": {
15624
+ "type": "array",
15625
+ "items": {
15626
+ "type": "string"
15627
+ }
15628
+ },
15629
+ "warnings": {
15630
+ "type": "array",
15631
+ "items": {
15632
+ "type": "string"
15633
+ }
15634
+ },
15635
+ "error": {
15636
+ "type": "string"
15637
+ }
15638
+ }
15639
+ },
15640
+ "errors": [
15641
+ "confirm_required",
15642
+ "upgrade_unavailable",
15643
+ "conflict",
15644
+ "git_blocked",
15645
+ "consent_pending",
15646
+ "real_repo_blocked",
15647
+ "git_error",
15648
+ "working_copy_unpersisted",
15649
+ "internal"
15650
+ ],
15651
+ "mutates": true,
15652
+ "destructive": true,
15653
+ "confirm": true,
15654
+ "immediate": false,
15655
+ "uiEntry": [
15656
+ "data-git-upgrade-confirm",
15657
+ "data-git-upgrade-vault"
15658
+ ],
15659
+ "example": {
15660
+ "confirm": true
15661
+ }
15662
+ },
13981
15663
  {
13982
15664
  "name": "git_add_to_repo",
13983
- "description": "Add a part row into the vault tree and commit.",
15665
+ "description": "Alias of git_save. Prefer git_save. Same planSave / writeVaultCommit path. Message required. Results omit path fields.",
13984
15666
  "args": {
13985
15667
  "type": "object",
13986
15668
  "additionalProperties": false,
13987
15669
  "required": [
13988
- "part_id"
15670
+ "message"
13989
15671
  ],
13990
15672
  "properties": {
13991
- "part_id": {
15673
+ "message": {
13992
15674
  "type": "string",
13993
- "description": "Part row id to add under the vault layout"
15675
+ "description": "Commit message. Alias of git_save; prefer git_save."
13994
15676
  }
13995
15677
  }
13996
15678
  },
@@ -14000,21 +15682,30 @@
14000
15682
  },
14001
15683
  "errors": [
14002
15684
  "bad_args",
15685
+ "upgrade_required",
15686
+ "conflict",
15687
+ "repo-moved",
15688
+ "pending_save",
14003
15689
  "git_blocked",
15690
+ "consent_pending",
15691
+ "real_repo_blocked",
14004
15692
  "internal"
14005
15693
  ],
14006
15694
  "mutates": true,
14007
15695
  "destructive": false,
14008
15696
  "confirm": false,
14009
15697
  "immediate": false,
14010
- "uiEntry": "data-git-commit-add-to-repo",
15698
+ "uiEntry": [
15699
+ "data-git-commit-add-to-repo",
15700
+ "data-part-add-to-repo"
15701
+ ],
14011
15702
  "example": {
14012
- "part_id": "parts/Bracket.js"
15703
+ "message": "Add to repo"
14013
15704
  }
14014
15705
  },
14015
15706
  {
14016
15707
  "name": "git_behind_resolve",
14017
- "description": "Resolve behind-remote: keep mine, reload, or branch.",
15708
+ "description": "Conflict / main-moved choice. action reload = Get latest (not a git write). action branch = Save mine to a new branch. Both require confirm: true. action keep is removed (Dismiss is not a tool). No path argument.",
14018
15709
  "args": {
14019
15710
  "type": "object",
14020
15711
  "additionalProperties": false,
@@ -14025,23 +15716,14 @@
14025
15716
  "action": {
14026
15717
  "type": "string",
14027
15718
  "enum": [
14028
- "keep",
14029
15719
  "reload",
14030
15720
  "branch"
14031
15721
  ],
14032
- "description": "Get latest choice: keep mine, reload remote, or park mine on a branch"
14033
- },
14034
- "path": {
14035
- "type": "string",
14036
- "description": "Vault path (assembly or part file)"
15722
+ "description": "reload = Get latest (no git write). branch = Save mine to a new branch. keep is removed."
14037
15723
  },
14038
- "kind": {
14039
- "type": "string",
14040
- "enum": [
14041
- "part",
14042
- "assembly"
14043
- ],
14044
- "description": "Defaults from path when omitted"
15724
+ "confirm": {
15725
+ "type": "boolean",
15726
+ "description": "Must be true."
14045
15727
  }
14046
15728
  }
14047
15729
  },
@@ -14052,7 +15734,11 @@
14052
15734
  "errors": [
14053
15735
  "bad_args",
14054
15736
  "confirm_required",
15737
+ "conflict",
15738
+ "repo-moved",
14055
15739
  "git_blocked",
15740
+ "consent_pending",
15741
+ "real_repo_blocked",
14056
15742
  "internal"
14057
15743
  ],
14058
15744
  "mutates": true,
@@ -14060,19 +15746,17 @@
14060
15746
  "confirm": true,
14061
15747
  "immediate": false,
14062
15748
  "uiEntry": [
14063
- "data-git-behind-keep",
14064
15749
  "data-git-behind-reload",
14065
15750
  "data-git-behind-branch"
14066
15751
  ],
14067
15752
  "example": {
14068
- "action": "keep",
14069
- "path": "assemblies/demo.surf.json",
14070
- "kind": "assembly"
15753
+ "action": "reload",
15754
+ "confirm": true
14071
15755
  }
14072
15756
  },
14073
15757
  {
14074
15758
  "name": "git_branch_create",
14075
- "description": "Create and switch to a new vault branch.",
15759
+ "description": "Create and switch to a new vault branch from the current tip. If the working copy has uncommitted changes, the branch is created but the session stays on the current branch (same as Parts Create, which does not discard unsaved edits); use git_branch_switch with confirm: true to switch while dirty. If create succeeds but switch fails, the result is still status created with switched: false and switchError set.",
14076
15760
  "args": {
14077
15761
  "type": "object",
14078
15762
  "additionalProperties": false,
@@ -14081,7 +15765,8 @@
14081
15765
  ],
14082
15766
  "properties": {
14083
15767
  "name": {
14084
- "type": "string"
15768
+ "type": "string",
15769
+ "description": "New branch name. Created from the current tip; the session switches to it when the working copy is clean."
14085
15770
  }
14086
15771
  }
14087
15772
  },
@@ -14092,6 +15777,8 @@
14092
15777
  "errors": [
14093
15778
  "bad_args",
14094
15779
  "git_blocked",
15780
+ "consent_pending",
15781
+ "real_repo_blocked",
14095
15782
  "internal"
14096
15783
  ],
14097
15784
  "mutates": true,
@@ -14133,6 +15820,8 @@
14133
15820
  "bad_args",
14134
15821
  "confirm_required",
14135
15822
  "git_blocked",
15823
+ "consent_pending",
15824
+ "real_repo_blocked",
14136
15825
  "internal"
14137
15826
  ],
14138
15827
  "mutates": true,
@@ -14174,6 +15863,8 @@
14174
15863
  "bad_args",
14175
15864
  "confirm_required",
14176
15865
  "git_blocked",
15866
+ "consent_pending",
15867
+ "real_repo_blocked",
14177
15868
  "internal"
14178
15869
  ],
14179
15870
  "mutates": true,
@@ -14205,7 +15896,11 @@
14205
15896
  },
14206
15897
  "errors": [
14207
15898
  "confirm_required",
15899
+ "conflict",
15900
+ "repo-moved",
14208
15901
  "git_blocked",
15902
+ "consent_pending",
15903
+ "real_repo_blocked",
14209
15904
  "internal"
14210
15905
  ],
14211
15906
  "mutates": true,
@@ -14244,7 +15939,7 @@
14244
15939
  },
14245
15940
  {
14246
15941
  "name": "export_part",
14247
- "description": "Export the active (or named) part mesh as STL, 3MF, or STEP bytes, or trigger a browser download.",
15942
+ "description": "Export the active part mesh, or part_id when set (an opaque surf id, never a path or display name), as STL, 3MF, or STEP bytes, or trigger a browser download.",
14248
15943
  "args": {
14249
15944
  "type": "object",
14250
15945
  "additionalProperties": false,