surfcad-mcp 0.3.4 → 0.3.6
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.
- package/README.md +14 -12
- package/data/commands.json +453 -57
- package/data/helpers.json +41 -9
- package/package.json +1 -1
- package/src/bridge/relayHub.mjs +5 -2
- package/src/errors.mjs +43 -0
- package/src/helpers.mjs +1 -1
- package/src/prompt/buildGuidance.mjs +3 -2
- package/src/prompt/errorHints.mjs +7 -4
- package/src/prompt/guide.mjs +94 -7
- package/src/prompt/promptSession.mjs +127 -11
- package/src/prompt/promptTools.mjs +46 -6
- package/src/relayMessages.mjs +12 -0
- package/src/remote/httpFallback.mjs +11 -5
- package/src/remote/processExit.mjs +137 -0
- package/src/remote/session.mjs +208 -33
- package/src/server.mjs +14 -4
- package/src/unlistedTools.mjs +32 -0
package/data/commands.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": 1,
|
|
3
3
|
"bridgeVersion": 1,
|
|
4
4
|
"generatedBy": "npm run export:agent",
|
|
5
|
-
"count":
|
|
5
|
+
"count": 212,
|
|
6
6
|
"$defs": {
|
|
7
7
|
"status": {
|
|
8
8
|
"type": "object",
|
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
},
|
|
535
535
|
{
|
|
536
536
|
"name": "set_script",
|
|
537
|
-
"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`. Keep the feature marker blocks (// --- <kind> begin --- … // --- <kind> end ---, and // @contour id=) so the strip keeps per-feature edit, delete, rollback and undo; see guide { topic: \"features\" }. 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, edgesNamed, edgesOf, externalBody, faceNames, facesByNormal, facesNamed, fastenerClearanceDia, fastenerMajorDia, fastenerTapDrillDia, filletAlongPath, filletEdges, getDimensions, getScaleRatio, hexPrism, hole, holePattern, holeSpan, holesOnContour, hollow, listFastenerSizes, loft, makeCrossSection, makeExtrude, makeLoft, makeRevolve, makeSweepPath, mirror, move, moveFace, offsetPlaneFrame, patternOnPoints, placeInFrame, placeOnFace, planarFaceAt, polarArray, profileCircle, profilePolygon, profileRectangle, rectTube, resolveFastenerSize, rotateAbout, rotateContour, roundedBox, sheetMetalSolid, shell, signedFeatureEdges, solveContour, sumSqDist, surfaceOf, sweep, sweepPoints, tapDrillHole, transformByFrame, tube, vecAdd, vecCross, vecDot, vecMul, vecNorm, vecNormalize, vecSub, workplaneFromFace. A redeclaration fails; rename your variable (for example `const cut`). list_helpers { names } (over MCP) or guide { topic: \"dialect\" } documents each helper. Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. When the run leaves an assembly joint failing that was not failing before (its face moved or vanished, or it now conflicts), the result adds warning { code: \"joint_broken\", joints: [{ id, name, type, status, reason, parts }], hint }; the call still succeeds, and status.jointFailures / list_joints show the standing state. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
537
|
+
"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`. Keep the feature marker blocks (// --- <kind> begin --- … // --- <kind> end ---, and // @contour id=) so the strip keeps per-feature edit, delete, rollback and undo; see guide { topic: \"features\" }. 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, edgesNamed, edgesOf, externalBody, faceNames, facesByNormal, facesNamed, fastenerClearanceDia, fastenerMajorDia, fastenerTapDrillDia, filletAlongPath, filletEdges, getDimensions, getScaleRatio, hexPrism, hole, holePattern, holeSpan, holesOnContour, hollow, listFastenerSizes, loft, makeCrossSection, makeExtrude, makeLoft, makeRevolve, makeSweepPath, mirror, move, moveFace, offsetPlaneFrame, patternOnPoints, placeInFrame, placeOnFace, planarFaceAt, polarArray, profileCircle, profilePolygon, profileRectangle, rectTube, resolveFastenerSize, rotateAbout, rotateContour, roundedBox, screwBoss, sheetMetalSolid, shell, signedFeatureEdges, solveContour, sumSqDist, surfaceOf, sweep, sweepPoints, tapDrillHole, transformByFrame, tube, vecAdd, vecCross, vecDot, vecMul, vecNorm, vecNormalize, vecSub, workplaneFromFace. A redeclaration fails; rename your variable (for example `const cut`). list_helpers { names } (over MCP) or guide { topic: \"dialect\" } documents each helper. Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. When the run leaves an assembly joint failing that was not failing before (its face moved or vanished, or it now conflicts), the result adds warning { code: \"joint_broken\", joints: [{ id, name, type, status, reason, parts }], hint }; the call still succeeds, and status.jointFailures / list_joints show the standing state. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
538
538
|
"args": {
|
|
539
539
|
"type": "object",
|
|
540
540
|
"additionalProperties": false,
|
|
@@ -836,7 +836,7 @@
|
|
|
836
836
|
},
|
|
837
837
|
{
|
|
838
838
|
"name": "run",
|
|
839
|
-
"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, edgesNamed, edgesOf, externalBody, faceNames, facesByNormal, facesNamed, fastenerClearanceDia, fastenerMajorDia, fastenerTapDrillDia, filletAlongPath, filletEdges, getDimensions, getScaleRatio, hexPrism, hole, holePattern, holeSpan, holesOnContour, hollow, listFastenerSizes, loft, makeCrossSection, makeExtrude, makeLoft, makeRevolve, makeSweepPath, mirror, move, moveFace, offsetPlaneFrame, patternOnPoints, placeInFrame, placeOnFace, planarFaceAt, polarArray, profileCircle, profilePolygon, profileRectangle, rectTube, resolveFastenerSize, rotateAbout, rotateContour, roundedBox, sheetMetalSolid, shell, signedFeatureEdges, solveContour, sumSqDist, surfaceOf, sweep, sweepPoints, tapDrillHole, transformByFrame, tube, vecAdd, vecCross, vecDot, vecMul, vecNorm, vecNormalize, vecSub, workplaneFromFace. A redeclaration fails; rename your variable (for example `const cut`). list_helpers { names } (over MCP) or guide { topic: \"dialect\" } documents each helper. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. When the run leaves an assembly joint failing that was not failing before (its face moved or vanished, or it now conflicts), the result adds warning { code: \"joint_broken\", joints: [{ id, name, type, status, reason, parts }], hint }; the call still succeeds, and status.jointFailures / list_joints show the standing state. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
839
|
+
"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, edgesNamed, edgesOf, externalBody, faceNames, facesByNormal, facesNamed, fastenerClearanceDia, fastenerMajorDia, fastenerTapDrillDia, filletAlongPath, filletEdges, getDimensions, getScaleRatio, hexPrism, hole, holePattern, holeSpan, holesOnContour, hollow, listFastenerSizes, loft, makeCrossSection, makeExtrude, makeLoft, makeRevolve, makeSweepPath, mirror, move, moveFace, offsetPlaneFrame, patternOnPoints, placeInFrame, placeOnFace, planarFaceAt, polarArray, profileCircle, profilePolygon, profileRectangle, rectTube, resolveFastenerSize, rotateAbout, rotateContour, roundedBox, screwBoss, sheetMetalSolid, shell, signedFeatureEdges, solveContour, sumSqDist, surfaceOf, sweep, sweepPoints, tapDrillHole, transformByFrame, tube, vecAdd, vecCross, vecDot, vecMul, vecNorm, vecNormalize, vecSub, workplaneFromFace. A redeclaration fails; rename your variable (for example `const cut`). list_helpers { names } (over MCP) or guide { topic: \"dialect\" } documents each helper. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. When the run leaves an assembly joint failing that was not failing before (its face moved or vanished, or it now conflicts), the result adds warning { code: \"joint_broken\", joints: [{ id, name, type, status, reason, parts }], hint }; the call still succeeds, and status.jointFailures / list_joints show the standing state. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
840
840
|
"args": {
|
|
841
841
|
"type": "object",
|
|
842
842
|
"additionalProperties": false,
|
|
@@ -2534,7 +2534,7 @@
|
|
|
2534
2534
|
},
|
|
2535
2535
|
{
|
|
2536
2536
|
"name": "mold_fit",
|
|
2537
|
-
"description": "Read-only moldability fit for one part mesh, in the part local frame (the same frame as list_faces). Searches bounding-box axes, large planar normals, and an icosphere (about 80 directions, deduped within 5°, d and -d are one axis). The chosen pull has the least occluded undercut area. Scores within max(2% of the part area, 25 mm²) of that best are tied; box axes and large planar normals win the tie over an icosphere sample, and drafted area breaks the rest. Fit is still good (0 undercut regions), fixable (1 to 4), or not_a_fit (5 or more), plus undercutCount, undercutArea, draftedArea, pull, and pullSource. Pass pull [x, y, z] to score that axis instead and keep its sign. The same result includes wall: a local thickness per triangle, nominal (mode, or the median when no thickness dominates the interior band), max, min, mean, median, and thin and thick regions. Thickness below 0.6× nominal is thin and above 1.5× nominal is thick. Wall thickness follows the geometric normal of each triangle. A stamp only flips that side when it points the other way, so one stamp on a curved face does not steer every facet. A triangle whose own normal is within 0.5° of perpendicular to the pull is not an undercut, and an undercut needs another triangle covering that point. A geometric check for later molding slices, not a supplier DFM. parting on the same result classifies every face as core or cavity by complete visibility (core along +pull, cavity along -pull). A wall within 0.5° of vertical takes the role of the labelled neighbour it can reach. There is no zero-draft class. One outer parting loop is kept. Stamped edges keep their names. sideActions on the
|
|
2537
|
+
"description": "Read-only moldability fit for one part mesh, in the part local frame (the same frame as list_faces). Searches bounding-box axes, large planar normals, and an icosphere (about 80 directions, deduped within 5°, d and -d are one axis). The chosen pull has the least occluded undercut area. Scores within max(2% of the part area, 25 mm²) of that best are tied; box axes and large planar normals win the tie over an icosphere sample, and drafted area breaks the rest. Fit is still good (0 undercut regions), fixable (1 to 4), or not_a_fit (5 or more), plus undercutCount, undercutArea, draftedArea, pull, and pullSource. Pass pull [x, y, z] to score that axis instead and keep its sign. The same result includes wall: a local thickness per triangle, nominal (mode, or the median when no thickness dominates the interior band), max, min, mean, median, and thin and thick regions. Thickness below 0.6× nominal is thin and above 1.5× nominal is thick. Wall thickness follows the geometric normal of each triangle. A stamp only flips that side when it points the other way, so one stamp on a curved face does not steer every facet. A triangle whose own normal is within 0.5° of perpendicular to the pull is not an undercut, and an undercut needs another triangle covering that point. A geometric check for later molding slices, not a supplier DFM. parting on the same result classifies every face as core or cavity by complete visibility (core along +pull, cavity along -pull). A wall within 0.5° of vertical takes the role of the labelled neighbour it can reach. There is no zero-draft class. One outer parting loop is kept. Stamped edges keep their names. On the same result, sideActions lists each block: a slide, a lifter, or an unresolved undercut. A block is one piece of steel that forms a connected set of trapped faces and withdraws along one direction. Every trapped feature that shares a direction on one connected surface is one block, whatever the gap between the features, so two holes on one wall are one slide. Each block carries pull (its withdraw direction, never the main pull axis), area (the block face it forms, which includes untrapped surface inside its window), trappedArea, window, span along the main pull, features (the stamped blocks it carries) and frees (the stamped faces it forms). A slide withdraws in the parting plane. A lifter withdraws tilted 15° to 25° into the core, and only when that tilt leaves the part without entering material. An unresolved undercut has no straight direction that frees it (a slot whose ends narrow toward the outer face); it needs a modelling change or a special mechanism. count is every block, slides, lifters and unresolved undercuts, and is what the report prices. A wall within 0.5° of vertical is not a side action. Undercuts are first refined to analysis cells of about 1.5 mm so a trapped footprint is the shadow of the feature, not the whole modelling triangle. count, slideCount, lifterCount and unresolvedCount are the numbers the mold report reads. moldDraft on the same result classifies every face, including fillets, by signed draft against that pull. The angle is the geometric normal of each triangle, so a stamp on a curved face does not drop it. Positive draft means the face normal points along the pull (the inside walls of a tray, the flange top). Negative draft means it points against the pull (the outside walls of a tray, the bottom). A face drafted at exactly the threshold passes (0.01° tolerance), and a planar stamped face takes one angle for the whole face. At the default 1° threshold each face is positive, negative, or below. Classified area is the whole mesh. below keeps a positive or negative sign. A vertical wall is below and its sign stays positive. There is no zero-draft class. It does not edit CAD draft. Molding rules: guide { topic: \"molding\" }.",
|
|
2538
2538
|
"args": {
|
|
2539
2539
|
"type": "object",
|
|
2540
2540
|
"additionalProperties": false,
|
|
@@ -2579,7 +2579,7 @@
|
|
|
2579
2579
|
},
|
|
2580
2580
|
{
|
|
2581
2581
|
"name": "mold_pull",
|
|
2582
|
-
"description": "Set the shared pull reference used by core/cavity
|
|
2582
|
+
"description": "Set the shared pull reference used by core/cavity (including side actions) and mold draft. mode auto searches icosphere and planar candidates, minimizing occluded undercut area and then maximizing drafted area. mode plane uses Top (+Z), Front (+Y), or Right (+X). mode face uses normal [x, y, z] in the part local frame and keeps its sign. Changing it recomputes those from the same pull. Read-only. It does not edit CAD draft. Molding rules: guide { topic: \"molding\" }.",
|
|
2583
2583
|
"args": {
|
|
2584
2584
|
"type": "object",
|
|
2585
2585
|
"additionalProperties": false,
|
|
@@ -2645,7 +2645,7 @@
|
|
|
2645
2645
|
},
|
|
2646
2646
|
{
|
|
2647
2647
|
"name": "mold_wall_map",
|
|
2648
|
-
"description": "Show or hide the wall-thickness heatmap on the active part, in the part local frame. on true paints each triangle with the viridis ramp from thin (0.6× nominal) through nominal to thick (1.5× nominal) and shows that legend. on false removes the skin so face paint and the part colour show again. Omit on to toggle. Read-only. A geometric view of the mold-analysis wall field, not a stress plot and not a quote.",
|
|
2648
|
+
"description": "Show or hide the wall-thickness heatmap on the active part, in the part local frame. on true paints each triangle with the viridis ramp from thin (0.6× nominal) through nominal to thick (1.5× nominal) and shows that legend. on false removes the skin so face paint and the part colour show again. Omit on to toggle. Read-only. A geometric view of the mold-analysis wall field, not a stress plot and not a quote. Molding rules: guide { topic: \"molding\" }.",
|
|
2649
2649
|
"args": {
|
|
2650
2650
|
"type": "object",
|
|
2651
2651
|
"additionalProperties": false,
|
|
@@ -2676,14 +2676,21 @@
|
|
|
2676
2676
|
},
|
|
2677
2677
|
{
|
|
2678
2678
|
"name": "mold_parting",
|
|
2679
|
-
"description": "Show or hide the core and
|
|
2679
|
+
"description": "Show or hide the core, cavity, and side-action colours on the active part, in the part local frame. on true classifies every face from the mold-analysis pull by complete visibility (core along +pull, cavity along -pull) and paints a true undercut as a side action. A wall within 0.5° of vertical is still core or cavity: it takes the role of the labelled neighbour it can reach, so an inner pocket wall joins the core and an outer wall joins the cavity. There is no separate zero-draft colour. The outer parting loop is a polyline. Stamped faces keep their edge names on that loop. sideActions lists each block: a slide, a lifter, or an unresolved undercut. A block is one piece of steel that forms a connected set of trapped faces and withdraws along one direction. Every trapped feature that shares a direction on one connected surface is one block, whatever the gap between the features, so two holes on one wall are one slide. Each block carries pull (its withdraw direction, never the main pull axis), area (the block face it forms, which includes untrapped surface inside its window), trappedArea, window, span along the main pull, features (the stamped blocks it carries) and frees (the stamped faces it forms). A slide withdraws in the parting plane. A lifter withdraws tilted 15° to 25° into the core, and only when that tilt leaves the part without entering material. An unresolved undercut has no straight direction that frees it (a slot whose ends narrow toward the outer face); it needs a modelling change or a special mechanism. count is every block, slides, lifters and unresolved undercuts, and is what the report prices. group highlights one block. on false removes the skin so face paint and the part colour show again. Omit on to toggle. Read-only. Not a CAD draft edit and not a quote. Molding rules: guide { topic: \"molding\" }.",
|
|
2680
2680
|
"args": {
|
|
2681
2681
|
"type": "object",
|
|
2682
2682
|
"additionalProperties": false,
|
|
2683
2683
|
"properties": {
|
|
2684
2684
|
"on": {
|
|
2685
2685
|
"type": "boolean",
|
|
2686
|
-
"description": "true shows core and
|
|
2686
|
+
"description": "true shows core, cavity, and side-action colours and the outer parting line. false restores paint and the part colour. Omit to toggle."
|
|
2687
|
+
},
|
|
2688
|
+
"group": {
|
|
2689
|
+
"type": [
|
|
2690
|
+
"integer",
|
|
2691
|
+
"null"
|
|
2692
|
+
],
|
|
2693
|
+
"description": "Side-action group id to highlight. The same id again, or null, clears the highlight. Omit to leave the selection."
|
|
2687
2694
|
}
|
|
2688
2695
|
}
|
|
2689
2696
|
},
|
|
@@ -2700,21 +2707,30 @@
|
|
|
2700
2707
|
"confirm": false,
|
|
2701
2708
|
"group": "measure",
|
|
2702
2709
|
"immediate": true,
|
|
2703
|
-
"uiEntry":
|
|
2710
|
+
"uiEntry": [
|
|
2711
|
+
"data-mold-parting"
|
|
2712
|
+
],
|
|
2704
2713
|
"example": {
|
|
2705
2714
|
"on": true
|
|
2706
2715
|
}
|
|
2707
2716
|
},
|
|
2708
2717
|
{
|
|
2709
2718
|
"name": "mold_side_actions",
|
|
2710
|
-
"description": "
|
|
2719
|
+
"description": "Alias of mold_parting for side actions. on true, or omit on, opens the core and cavity colouring and returns the same block list and counts (slides, lifters, unresolved undercuts), each with its withdraw direction and face area. replacedBy is mold_parting. on false does not hide that colouring; the message names mold_parting { on: false }. A wall within 0.5° of vertical is not a side action. The withdraw direction is never the pull axis. group highlights one block. Read-only. Not mold CAD and not a quote. Molding rules: guide { topic: \"molding\" }.",
|
|
2711
2720
|
"args": {
|
|
2712
2721
|
"type": "object",
|
|
2713
2722
|
"additionalProperties": false,
|
|
2714
2723
|
"properties": {
|
|
2715
2724
|
"on": {
|
|
2716
2725
|
"type": "boolean",
|
|
2717
|
-
"description": "true
|
|
2726
|
+
"description": "true, or omit, opens core and cavity and returns the side actions. false does not hide them. Call mold_parting { on: false } to hide that colouring."
|
|
2727
|
+
},
|
|
2728
|
+
"group": {
|
|
2729
|
+
"type": [
|
|
2730
|
+
"integer",
|
|
2731
|
+
"null"
|
|
2732
|
+
],
|
|
2733
|
+
"description": "Side-action group id to highlight, forwarded to mold_parting."
|
|
2718
2734
|
}
|
|
2719
2735
|
}
|
|
2720
2736
|
},
|
|
@@ -2731,21 +2747,25 @@
|
|
|
2731
2747
|
"confirm": false,
|
|
2732
2748
|
"group": "measure",
|
|
2733
2749
|
"immediate": true,
|
|
2734
|
-
"uiEntry": "data-mold-
|
|
2750
|
+
"uiEntry": "data-mold-parting",
|
|
2735
2751
|
"example": {
|
|
2736
2752
|
"on": true
|
|
2737
2753
|
}
|
|
2738
2754
|
},
|
|
2739
2755
|
{
|
|
2740
2756
|
"name": "mold_draft",
|
|
2741
|
-
"description": "Show or hide mold
|
|
2757
|
+
"description": "Show or hide signed mold draft on the active part, in the part local frame. on true classifies every face, including fillets and blend faces, against the mold-analysis pull. The angle is the geometric normal of that triangle. A stamped face normal is one average and does not drop the face. Positive draft means the face normal points along the pull (the inside walls of a tray, the flange top). Negative draft means it points against the pull (the outside walls of a tray, the bottom); the sign is asin(n · pull), not which mould half forms the face. A planar stamped face takes one angle for the whole face, and a wall drafted at exactly the threshold passes (0.01° tolerance). threshold is degrees in (0, 90]; the pane offers 0.5, 1, 2, 3, and 5, and 1 is the default. A face at or above the threshold is positive when the sign is positive, and negative when the sign is negative. Tops and bottoms are classified with the same three classes. Classified area is the whole mesh. Absolute draft below the threshold is below, and that bucket still splits positive and negative so a locked-steel check can see the sign. A vertical wall is below and its sign stays positive. There is no zero-draft class. Positive at or above the threshold uses the cavity colour. Negative at or above the threshold uses the core colour. Below the threshold is a red hatch. The result reports positive, negative, and below, each with count and area. below.positive and below.negative are the sign split. violations is the below count. Changing threshold rebuckets the stored field and does not measure the mesh again. on false removes the skin so face paint and the part colour show again. Omit on to toggle. Pass threshold without on to show at that threshold. Read-only. Not CAD draft mode, not an automatic draft fix, and not a quote. Molding rules: guide { topic: \"molding\" }.",
|
|
2742
2758
|
"args": {
|
|
2743
2759
|
"type": "object",
|
|
2744
2760
|
"additionalProperties": false,
|
|
2745
2761
|
"properties": {
|
|
2746
2762
|
"on": {
|
|
2747
2763
|
"type": "boolean",
|
|
2748
|
-
"description": "true shows mold
|
|
2764
|
+
"description": "true shows signed mold draft. false restores paint and the part colour. Omit to toggle. Pass threshold without on to show at that threshold."
|
|
2765
|
+
},
|
|
2766
|
+
"threshold": {
|
|
2767
|
+
"type": "number",
|
|
2768
|
+
"description": "Draft threshold in degrees, greater than 0 and at most 90. The pane offers 0.5, 1, 2, 3, and 5. Default is 1. At or above this angle, positive draft is Positive ≥ T and negative draft is Negative ≥ T. Absolute draft below this angle is Below T, and the sign is still reported. Omit to keep the current threshold. A change rebuckets the stored field and does not measure the mesh again."
|
|
2749
2769
|
}
|
|
2750
2770
|
}
|
|
2751
2771
|
},
|
|
@@ -2755,6 +2775,7 @@
|
|
|
2755
2775
|
},
|
|
2756
2776
|
"errors": [
|
|
2757
2777
|
"no_mesh",
|
|
2778
|
+
"bad_args",
|
|
2758
2779
|
"internal"
|
|
2759
2780
|
],
|
|
2760
2781
|
"mutates": false,
|
|
@@ -2762,21 +2783,34 @@
|
|
|
2762
2783
|
"confirm": false,
|
|
2763
2784
|
"group": "measure",
|
|
2764
2785
|
"immediate": true,
|
|
2765
|
-
"uiEntry":
|
|
2786
|
+
"uiEntry": [
|
|
2787
|
+
"data-mold-draft",
|
|
2788
|
+
"data-mold-draft-threshold"
|
|
2789
|
+
],
|
|
2766
2790
|
"example": {
|
|
2767
|
-
"on": true
|
|
2791
|
+
"on": true,
|
|
2792
|
+
"threshold": 1
|
|
2768
2793
|
}
|
|
2769
2794
|
},
|
|
2770
2795
|
{
|
|
2771
2796
|
"name": "mold_dfm",
|
|
2772
|
-
"description": "Show or hide the
|
|
2797
|
+
"description": "Show or hide the mold report for the active part, in the part local frame. on true measures volume, projected area along the pull, and the side-action count, then returns part mass, press tonnage, tooling, and part price for grade and quantity. Mass is volume times the published resin density. Tooling is the published rate card: a base mold cost scaled by projected area, plus a per-side-action adder. Part price is material cost plus press time at the card machine rate plus tooling divided by quantity. assumptions lists the rates, sources, as-of dates, and formulas. A grade with no density or price, or a part with no wall or projected area, is flagged and not guessed. A priced catalog, when one is passed in, still prices from that catalog. The same function fills the pane and the spreadsheet. The resin default is PC/ABS. Press tonnage is the required tonnage of the measured projected area. The report says Mold report and Budgetary, not binding. It does not paint a skin. Opening it clears the other molding tools. on false closes the panel. Omit on to toggle. Read-only. Molding rules: guide { topic: \"molding\" }.",
|
|
2773
2798
|
"args": {
|
|
2774
2799
|
"type": "object",
|
|
2775
2800
|
"additionalProperties": false,
|
|
2776
2801
|
"properties": {
|
|
2777
2802
|
"on": {
|
|
2778
2803
|
"type": "boolean",
|
|
2779
|
-
"description": "true shows the
|
|
2804
|
+
"description": "true shows the mold report. false closes it. Omit to toggle."
|
|
2805
|
+
},
|
|
2806
|
+
"grade": {
|
|
2807
|
+
"type": "string",
|
|
2808
|
+
"description": "Resin grade from the public library. Omit to keep the current grade. The default is PC/ABS."
|
|
2809
|
+
},
|
|
2810
|
+
"quantity": {
|
|
2811
|
+
"type": "integer",
|
|
2812
|
+
"minimum": 1,
|
|
2813
|
+
"description": "Parts to price. Omit to keep the current quantity. The default is 1000."
|
|
2780
2814
|
}
|
|
2781
2815
|
}
|
|
2782
2816
|
},
|
|
@@ -2795,19 +2829,21 @@
|
|
|
2795
2829
|
"immediate": true,
|
|
2796
2830
|
"uiEntry": "data-mold-dfm",
|
|
2797
2831
|
"example": {
|
|
2798
|
-
"on": true
|
|
2832
|
+
"on": true,
|
|
2833
|
+
"grade": "PC/ABS",
|
|
2834
|
+
"quantity": 1000
|
|
2799
2835
|
}
|
|
2800
2836
|
},
|
|
2801
2837
|
{
|
|
2802
2838
|
"name": "mold_quote",
|
|
2803
|
-
"description": "Show or hide the
|
|
2839
|
+
"description": "Show or hide the mold report for the active part. This is the same report as mold_dfm, including part mass, the published tooling estimate, part price, and assumptions (rates, sources, as-of dates, and formulas). on true measures the mesh and returns volume, projected area, side-action count, and those estimates for grade, quantity, and cavityCount. Part price is material cost plus press time plus tooling divided by quantity. cavityCount stays in the costing call and does not scale the published rate card. It is not a control in the pane. A missing density, price, area, or wall is flagged and not guessed. A priced catalog, when one is passed in, still prices from that catalog. on false closes the panel. Omit on to toggle. It does not paint a skin and it does not place an order. Read-only. Molding rules: guide { topic: \"molding\" }.",
|
|
2804
2840
|
"args": {
|
|
2805
2841
|
"type": "object",
|
|
2806
2842
|
"additionalProperties": false,
|
|
2807
2843
|
"properties": {
|
|
2808
2844
|
"on": {
|
|
2809
2845
|
"type": "boolean",
|
|
2810
|
-
"description": "true shows the
|
|
2846
|
+
"description": "true shows the mold report. false closes it. Omit to toggle."
|
|
2811
2847
|
},
|
|
2812
2848
|
"quantity": {
|
|
2813
2849
|
"type": "integer",
|
|
@@ -2842,9 +2878,10 @@
|
|
|
2842
2878
|
"confirm": false,
|
|
2843
2879
|
"group": "measure",
|
|
2844
2880
|
"immediate": true,
|
|
2845
|
-
"uiEntry": "data-mold-
|
|
2881
|
+
"uiEntry": "data-mold-dfm",
|
|
2846
2882
|
"example": {
|
|
2847
2883
|
"on": true,
|
|
2884
|
+
"grade": "PC/ABS",
|
|
2848
2885
|
"quantity": 1000
|
|
2849
2886
|
}
|
|
2850
2887
|
},
|
|
@@ -5527,7 +5564,7 @@
|
|
|
5527
5564
|
},
|
|
5528
5565
|
{
|
|
5529
5566
|
"name": "insert_fillet_edges",
|
|
5530
|
-
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Cost: fillets and chamfers are the slow features. Do them last, once the shape is final, on the smallest edge set that does the job (a face pick writes edgesOf for that face only; grouped edges from list_edges for less), because a blend over many edges, or on a swept or lofted body, can run past the 30 s block budget and come back as feature_timeout with the part rebuilt without it. Writes (defaults): part = filletEdges(part, convexEdges(part), 3, { sphericalCorners: true }); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
5567
|
+
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Cost: fillets and chamfers are the slow features. Do them last, once the shape is final, on the smallest edge set that does the job (a face pick writes edgesOf for that face only; grouped edges from list_edges for less), because a blend over many edges, or on a swept or lofted body, can run past the 30 s block budget and come back as feature_timeout with the part rebuilt without it. Order: shell first, then concave fillets, then convex fillets (guide { topic: \"modeling\" }). Writes (defaults): part = filletEdges(part, convexEdges(part), 3, { sphericalCorners: true }); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
5531
5568
|
"args": {
|
|
5532
5569
|
"type": "object",
|
|
5533
5570
|
"additionalProperties": false,
|
|
@@ -7054,7 +7091,7 @@
|
|
|
7054
7091
|
},
|
|
7055
7092
|
{
|
|
7056
7093
|
"name": "insert_hole_pattern",
|
|
7057
|
-
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Writes (defaults): const topFace = facesByNormal(part, [0, 0, 1])[0]; const fr = workplaneFromFace(part, topFace); part = holePattern(part, fr, { n: 3, m: 2, spacingU: 18, spacingV: 14, dia: 4 }); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
7094
|
+
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Prefer this over rebuilding geometry by hand (guide { topic: \"modeling\" }). Writes (defaults): const topFace = facesByNormal(part, [0, 0, 1])[0]; const fr = workplaneFromFace(part, topFace); part = holePattern(part, fr, { n: 3, m: 2, spacingU: 18, spacingV: 14, dia: 4 }); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
7058
7095
|
"args": {
|
|
7059
7096
|
"type": "object",
|
|
7060
7097
|
"additionalProperties": false,
|
|
@@ -7924,6 +7961,327 @@
|
|
|
7924
7961
|
"v": 0
|
|
7925
7962
|
}
|
|
7926
7963
|
},
|
|
7964
|
+
{
|
|
7965
|
+
"name": "insert_boss",
|
|
7966
|
+
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Molding rules: guide { topic: \"molding\" }. Writes (defaults): const topFace = facesByNormal(part, [0, 0, 1])[0]; const fr = workplaneFromFace(part, topFace); part = screwBoss(part, fr, 0, 0, { size: 'M3', height: 8 }); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
7967
|
+
"args": {
|
|
7968
|
+
"type": "object",
|
|
7969
|
+
"additionalProperties": false,
|
|
7970
|
+
"properties": {
|
|
7971
|
+
"use_selection": {
|
|
7972
|
+
"type": "boolean",
|
|
7973
|
+
"description": "When true, stand the boss on the selected planar face (a cylindrical face uses its tangent plane). Otherwise use the default +Z top face. A named pick (select_faces { names }, or a click on a face a helper built) is resolved by name in the script (facesNamed for a face, edgesOf for the edges around it) and is found again after every rebuild, so it can be used for several inserts. A pick with no name clears with the rebuild, and use_selection: true with nothing selected is refused with no_selection."
|
|
7974
|
+
},
|
|
7975
|
+
"body": {
|
|
7976
|
+
"type": "string",
|
|
7977
|
+
"description": "Part script binding name"
|
|
7978
|
+
},
|
|
7979
|
+
"size": {
|
|
7980
|
+
"type": "string",
|
|
7981
|
+
"enum": [
|
|
7982
|
+
"M2",
|
|
7983
|
+
"M2.5",
|
|
7984
|
+
"M3",
|
|
7985
|
+
"M4",
|
|
7986
|
+
"M5",
|
|
7987
|
+
"M6",
|
|
7988
|
+
"M8",
|
|
7989
|
+
"M10"
|
|
7990
|
+
]
|
|
7991
|
+
},
|
|
7992
|
+
"height": {
|
|
7993
|
+
"type": "number",
|
|
7994
|
+
"minimum": 0.1
|
|
7995
|
+
},
|
|
7996
|
+
"dia": {
|
|
7997
|
+
"type": "number",
|
|
7998
|
+
"minimum": 0,
|
|
7999
|
+
"description": "Outer diameter in mm. 0 or omitted: 2.5 × the screw major diameter (M3 → 7.5)."
|
|
8000
|
+
},
|
|
8001
|
+
"hole": {
|
|
8002
|
+
"type": "string",
|
|
8003
|
+
"enum": [
|
|
8004
|
+
"tap",
|
|
8005
|
+
"clearance",
|
|
8006
|
+
"none"
|
|
8007
|
+
],
|
|
8008
|
+
"description": "tap: tap-drill pilot for a self-tapping or tapped screw (default). clearance: through hole for the screw. none: solid boss."
|
|
8009
|
+
},
|
|
8010
|
+
"holeDepth": {
|
|
8011
|
+
"type": "number",
|
|
8012
|
+
"minimum": 0,
|
|
8013
|
+
"description": "Depth from the boss top in mm. 0 or omitted: the boss height, so the floor sits on the face. Deeper cuts on into the part."
|
|
8014
|
+
},
|
|
8015
|
+
"fit": {
|
|
8016
|
+
"type": "string",
|
|
8017
|
+
"enum": [
|
|
8018
|
+
"close",
|
|
8019
|
+
"normal",
|
|
8020
|
+
"loose"
|
|
8021
|
+
]
|
|
8022
|
+
},
|
|
8023
|
+
"u": {
|
|
8024
|
+
"type": "number"
|
|
8025
|
+
},
|
|
8026
|
+
"v": {
|
|
8027
|
+
"type": "number"
|
|
8028
|
+
},
|
|
8029
|
+
"return": {
|
|
8030
|
+
"type": "string",
|
|
8031
|
+
"enum": [
|
|
8032
|
+
"status",
|
|
8033
|
+
"summary",
|
|
8034
|
+
"full"
|
|
8035
|
+
],
|
|
8036
|
+
"description": "How much of status to return: \"status\" drops status.script, \"summary\" drops it and adds status.features (the feature strip), \"full\" keeps the whole script. Over MCP the default is \"status\"; in the page it is \"full\". Read the script with get_script."
|
|
8037
|
+
}
|
|
8038
|
+
}
|
|
8039
|
+
},
|
|
8040
|
+
"result": {
|
|
8041
|
+
"type": "object",
|
|
8042
|
+
"additionalProperties": true,
|
|
8043
|
+
"properties": {
|
|
8044
|
+
"helperId": {
|
|
8045
|
+
"type": "string"
|
|
8046
|
+
},
|
|
8047
|
+
"usedSelection": {
|
|
8048
|
+
"type": "boolean"
|
|
8049
|
+
},
|
|
8050
|
+
"ok": {
|
|
8051
|
+
"type": "boolean"
|
|
8052
|
+
},
|
|
8053
|
+
"errors": {
|
|
8054
|
+
"type": "array",
|
|
8055
|
+
"items": {
|
|
8056
|
+
"type": "string"
|
|
8057
|
+
}
|
|
8058
|
+
},
|
|
8059
|
+
"status": {
|
|
8060
|
+
"type": "object",
|
|
8061
|
+
"additionalProperties": false,
|
|
8062
|
+
"properties": {
|
|
8063
|
+
"partId": {
|
|
8064
|
+
"type": "string"
|
|
8065
|
+
},
|
|
8066
|
+
"partName": {
|
|
8067
|
+
"type": "string"
|
|
8068
|
+
},
|
|
8069
|
+
"script": {
|
|
8070
|
+
"type": "string"
|
|
8071
|
+
},
|
|
8072
|
+
"runState": {
|
|
8073
|
+
"type": "string",
|
|
8074
|
+
"enum": [
|
|
8075
|
+
"not_run_yet",
|
|
8076
|
+
"ok",
|
|
8077
|
+
"failed"
|
|
8078
|
+
]
|
|
8079
|
+
},
|
|
8080
|
+
"volume": {
|
|
8081
|
+
"type": [
|
|
8082
|
+
"number",
|
|
8083
|
+
"null"
|
|
8084
|
+
]
|
|
8085
|
+
},
|
|
8086
|
+
"bbox": {
|
|
8087
|
+
"oneOf": [
|
|
8088
|
+
{
|
|
8089
|
+
"type": "object",
|
|
8090
|
+
"additionalProperties": false,
|
|
8091
|
+
"properties": {
|
|
8092
|
+
"min": {
|
|
8093
|
+
"type": "array",
|
|
8094
|
+
"items": {
|
|
8095
|
+
"type": "number"
|
|
8096
|
+
},
|
|
8097
|
+
"minItems": 3,
|
|
8098
|
+
"maxItems": 3
|
|
8099
|
+
},
|
|
8100
|
+
"max": {
|
|
8101
|
+
"type": "array",
|
|
8102
|
+
"items": {
|
|
8103
|
+
"type": "number"
|
|
8104
|
+
},
|
|
8105
|
+
"minItems": 3,
|
|
8106
|
+
"maxItems": 3
|
|
8107
|
+
}
|
|
8108
|
+
}
|
|
8109
|
+
},
|
|
8110
|
+
{
|
|
8111
|
+
"type": "null"
|
|
8112
|
+
}
|
|
8113
|
+
]
|
|
8114
|
+
},
|
|
8115
|
+
"featureCount": {
|
|
8116
|
+
"type": "integer"
|
|
8117
|
+
},
|
|
8118
|
+
"bodyCount": {
|
|
8119
|
+
"type": [
|
|
8120
|
+
"integer",
|
|
8121
|
+
"null"
|
|
8122
|
+
]
|
|
8123
|
+
},
|
|
8124
|
+
"stale": {
|
|
8125
|
+
"type": "boolean"
|
|
8126
|
+
},
|
|
8127
|
+
"featureMs": {
|
|
8128
|
+
"type": "object",
|
|
8129
|
+
"description": "Kernel milliseconds per feature block (by feature_tree id) on the last run that reported; what is expensive on this part",
|
|
8130
|
+
"additionalProperties": {
|
|
8131
|
+
"type": "number"
|
|
8132
|
+
}
|
|
8133
|
+
},
|
|
8134
|
+
"cache": {
|
|
8135
|
+
"type": "object",
|
|
8136
|
+
"description": "Feature memoisation on the last run: blocks = marked blocks, hits = blocks restored from the worker cache instead of re-run, misses = blocks that ran, bytes = the cache size. An edit re-runs only the edited block and the ones after it.",
|
|
8137
|
+
"additionalProperties": false,
|
|
8138
|
+
"properties": {
|
|
8139
|
+
"blocks": {
|
|
8140
|
+
"type": "integer"
|
|
8141
|
+
},
|
|
8142
|
+
"hits": {
|
|
8143
|
+
"type": "integer"
|
|
8144
|
+
},
|
|
8145
|
+
"misses": {
|
|
8146
|
+
"type": "integer"
|
|
8147
|
+
},
|
|
8148
|
+
"bytes": {
|
|
8149
|
+
"type": "integer"
|
|
8150
|
+
}
|
|
8151
|
+
}
|
|
8152
|
+
},
|
|
8153
|
+
"featureCached": {
|
|
8154
|
+
"type": "object",
|
|
8155
|
+
"description": "Feature blocks (by feature_tree id) served from the cache on the last run: true per id",
|
|
8156
|
+
"additionalProperties": {
|
|
8157
|
+
"type": "boolean"
|
|
8158
|
+
}
|
|
8159
|
+
},
|
|
8160
|
+
"lastGood": {
|
|
8161
|
+
"type": "object",
|
|
8162
|
+
"description": "Only while runState is failed: volume, bbox and bodyCount of this part's last successful run (the solid the viewport still shows), so a failing feature does not blank the numbers",
|
|
8163
|
+
"additionalProperties": false,
|
|
8164
|
+
"properties": {
|
|
8165
|
+
"volume": {
|
|
8166
|
+
"type": [
|
|
8167
|
+
"number",
|
|
8168
|
+
"null"
|
|
8169
|
+
]
|
|
8170
|
+
},
|
|
8171
|
+
"bbox": {
|
|
8172
|
+
"oneOf": [
|
|
8173
|
+
{
|
|
8174
|
+
"type": "object",
|
|
8175
|
+
"additionalProperties": false,
|
|
8176
|
+
"properties": {
|
|
8177
|
+
"min": {
|
|
8178
|
+
"type": "array",
|
|
8179
|
+
"items": {
|
|
8180
|
+
"type": "number"
|
|
8181
|
+
},
|
|
8182
|
+
"minItems": 3,
|
|
8183
|
+
"maxItems": 3
|
|
8184
|
+
},
|
|
8185
|
+
"max": {
|
|
8186
|
+
"type": "array",
|
|
8187
|
+
"items": {
|
|
8188
|
+
"type": "number"
|
|
8189
|
+
},
|
|
8190
|
+
"minItems": 3,
|
|
8191
|
+
"maxItems": 3
|
|
8192
|
+
}
|
|
8193
|
+
}
|
|
8194
|
+
},
|
|
8195
|
+
{
|
|
8196
|
+
"type": "null"
|
|
8197
|
+
}
|
|
8198
|
+
]
|
|
8199
|
+
},
|
|
8200
|
+
"bodyCount": {
|
|
8201
|
+
"type": [
|
|
8202
|
+
"integer",
|
|
8203
|
+
"null"
|
|
8204
|
+
]
|
|
8205
|
+
}
|
|
8206
|
+
}
|
|
8207
|
+
},
|
|
8208
|
+
"jointFailures": {
|
|
8209
|
+
"type": "object",
|
|
8210
|
+
"description": "Assembly joints that do not solve right now (broken reference or conflict): count and ids. list_joints has each joint with its status and reason.",
|
|
8211
|
+
"additionalProperties": false,
|
|
8212
|
+
"properties": {
|
|
8213
|
+
"count": {
|
|
8214
|
+
"type": "integer"
|
|
8215
|
+
},
|
|
8216
|
+
"ids": {
|
|
8217
|
+
"type": "array",
|
|
8218
|
+
"items": {
|
|
8219
|
+
"type": "string"
|
|
8220
|
+
}
|
|
8221
|
+
}
|
|
8222
|
+
}
|
|
8223
|
+
},
|
|
8224
|
+
"features": {
|
|
8225
|
+
"type": "array",
|
|
8226
|
+
"description": "Feature strip rows, only with return: \"summary\" (script is omitted with \"status\" and \"summary\")",
|
|
8227
|
+
"items": {
|
|
8228
|
+
"type": "object",
|
|
8229
|
+
"additionalProperties": false,
|
|
8230
|
+
"properties": {
|
|
8231
|
+
"id": {
|
|
8232
|
+
"type": "string"
|
|
8233
|
+
},
|
|
8234
|
+
"kind": {
|
|
8235
|
+
"type": "string"
|
|
8236
|
+
},
|
|
8237
|
+
"label": {
|
|
8238
|
+
"type": "string"
|
|
8239
|
+
},
|
|
8240
|
+
"chipLabel": {
|
|
8241
|
+
"type": "string"
|
|
8242
|
+
},
|
|
8243
|
+
"index": {
|
|
8244
|
+
"type": "integer"
|
|
8245
|
+
},
|
|
8246
|
+
"ms": {
|
|
8247
|
+
"type": "number",
|
|
8248
|
+
"description": "Kernel milliseconds of this block on the last run that reported it"
|
|
8249
|
+
},
|
|
8250
|
+
"cached": {
|
|
8251
|
+
"type": "boolean",
|
|
8252
|
+
"description": "True when the last run restored this block from the feature cache instead of running it"
|
|
8253
|
+
}
|
|
8254
|
+
}
|
|
8255
|
+
}
|
|
8256
|
+
}
|
|
8257
|
+
}
|
|
8258
|
+
}
|
|
8259
|
+
}
|
|
8260
|
+
},
|
|
8261
|
+
"errors": [
|
|
8262
|
+
"bad_args",
|
|
8263
|
+
"no_selection",
|
|
8264
|
+
"insert_failed",
|
|
8265
|
+
"internal"
|
|
8266
|
+
],
|
|
8267
|
+
"mutates": true,
|
|
8268
|
+
"destructive": false,
|
|
8269
|
+
"confirm": false,
|
|
8270
|
+
"group": "insert",
|
|
8271
|
+
"immediate": false,
|
|
8272
|
+
"uiEntry": "boss",
|
|
8273
|
+
"example": {
|
|
8274
|
+
"body": "part",
|
|
8275
|
+
"size": "M3",
|
|
8276
|
+
"height": 8,
|
|
8277
|
+
"dia": 0,
|
|
8278
|
+
"hole": "tap",
|
|
8279
|
+
"holeDepth": 0,
|
|
8280
|
+
"fit": "normal",
|
|
8281
|
+
"u": 0,
|
|
8282
|
+
"v": 0
|
|
8283
|
+
}
|
|
8284
|
+
},
|
|
7927
8285
|
{
|
|
7928
8286
|
"name": "insert_cbore_hole",
|
|
7929
8287
|
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Writes (defaults): const topFace = facesByNormal(part, [0, 0, 1])[0]; const fr = workplaneFromFace(part, topFace); const span = holeSpan(part, fr); part = cboreHole(part, fr, 0, 0, 5.5, 10, 4, span); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
@@ -8498,7 +8856,7 @@
|
|
|
8498
8856
|
},
|
|
8499
8857
|
{
|
|
8500
8858
|
"name": "insert_shell",
|
|
8501
|
-
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Writes (defaults): part = hollow(part, 2.5, 'z'); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
8859
|
+
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Order: shell first, then concave fillets, then convex fillets (guide { topic: \"modeling\" }). Writes (defaults): part = hollow(part, 2.5, 'z'); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
8502
8860
|
"args": {
|
|
8503
8861
|
"type": "object",
|
|
8504
8862
|
"additionalProperties": false,
|
|
@@ -10467,7 +10825,7 @@
|
|
|
10467
10825
|
},
|
|
10468
10826
|
{
|
|
10469
10827
|
"name": "insert_mirror",
|
|
10470
|
-
"description": "Prefer this over freehand set_script. Mirror the active part, or one body of it, across a plane and keep the original. plane is xy, yz, or xz (through the origin). With no body named the whole part is mirrored (body defaults to part). To mirror one body name it the same way as insert_move: body_index or at from list_bodies, face or face_id from list_faces, or use_selection with a selected face. A workplane or a planar face is picked in the Mirror card. edit_feature on the mirror takes plane, keepOriginal, and at. Working copy only; git_save commits. Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Writes (defaults): part = mirror(part, 'yz', true); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
10828
|
+
"description": "Prefer this over freehand set_script. Mirror the active part, or one body of it, across a plane and keep the original. plane is xy, yz, or xz (through the origin). With no body named the whole part is mirrored (body defaults to part). To mirror one body name it the same way as insert_move: body_index or at from list_bodies, face or face_id from list_faces, or use_selection with a selected face. A workplane or a planar face is picked in the Mirror card. edit_feature on the mirror takes plane, keepOriginal, and at. Working copy only; git_save commits. Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Prefer this over rebuilding geometry by hand (guide { topic: \"modeling\" }). Writes (defaults): part = mirror(part, 'yz', true); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
10471
10829
|
"args": {
|
|
10472
10830
|
"type": "object",
|
|
10473
10831
|
"additionalProperties": false,
|
|
@@ -11035,7 +11393,7 @@
|
|
|
11035
11393
|
},
|
|
11036
11394
|
{
|
|
11037
11395
|
"name": "insert_array3_d",
|
|
11038
|
-
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Writes (defaults): part = array3D(part, [2, 2, 1], [45, 35, 0]); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
11396
|
+
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Prefer this over rebuilding geometry by hand (guide { topic: \"modeling\" }). Writes (defaults): part = array3D(part, [2, 2, 1], [45, 35, 0]); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
11039
11397
|
"args": {
|
|
11040
11398
|
"type": "object",
|
|
11041
11399
|
"additionalProperties": false,
|
|
@@ -11389,7 +11747,7 @@
|
|
|
11389
11747
|
},
|
|
11390
11748
|
{
|
|
11391
11749
|
"name": "insert_pattern_points",
|
|
11392
|
-
"description": "Pattern on points (Array Type=Points): one copy of the body at every point, turned so its up axis follows the point's axis when the point has one. points is [[x, y, z], …] or [{ at: [x, y, z], axis: [nx, ny, nz] }, …] in mm (a JSON string of the same is accepted); up is the body axis (x | y | z) that follows a point axis; keepOriginal keeps the source where it is; merge false keeps overlapping copies as separate bodies. Hardware: model one bolt in its own part, then call list_faces on the part it fastens, take the center and axis of each cylindrical hole face (filter by radius), and pass them here with up set to the bolt's own axis; when the holes move, run this again with the new centers. Empty or malformed points are bad_args. Working copy only; git_save commits. Writes (defaults): patternOnPoints(body, points, { up, keepOriginal, merge }) Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
11750
|
+
"description": "Pattern on points (Array Type=Points): one copy of the body at every point, turned so its up axis follows the point's axis when the point has one. points is [[x, y, z], …] or [{ at: [x, y, z], axis: [nx, ny, nz] }, …] in mm (a JSON string of the same is accepted); up is the body axis (x | y | z) that follows a point axis; keepOriginal keeps the source where it is; merge false keeps overlapping copies as separate bodies. Hardware: model one bolt in its own part, then call list_faces on the part it fastens, take the center and axis of each cylindrical hole face (filter by radius), and pass them here with up set to the bolt's own axis; when the holes move, run this again with the new centers. Empty or malformed points are bad_args. Working copy only; git_save commits. Prefer this over rebuilding geometry by hand (guide { topic: \"modeling\" }). Writes (defaults): patternOnPoints(body, points, { up, keepOriginal, merge }) Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
11393
11751
|
"args": {
|
|
11394
11752
|
"type": "object",
|
|
11395
11753
|
"additionalProperties": false,
|
|
@@ -11672,7 +12030,7 @@
|
|
|
11672
12030
|
},
|
|
11673
12031
|
{
|
|
11674
12032
|
"name": "insert_polar_array",
|
|
11675
|
-
"description": "Prefer this over freehand set_script. Copies the active part's body around an axis, or drills a bolt circle of holes. boreRadius 0 (the default) copies the body; boltCircleRadius 0 (the default) leaves that copy on the axis. boreRadius greater than 0 subtracts count holes of that radius and boreHeight (mm, cutter centered on the axis) at boltCircleRadius, which must be greater than 0 or the insert is bad_args, and does not leave a second copy of the source body. The example args drill 6 holes of radius 3 mm on a 20 mm circle. Use this for a bolt circle of holes; do not insert_code_snippet a FEATURE-GAP for a bolt-circle hole pattern. On an empty part the same bore params insert a circle of pins (there is no body to drill yet); bore 0 and radius 0 there insert pins of radius 3 mm on a 20 mm circle. Working copy only; git_save commits. Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Writes (defaults): part = polarArray(part, 4, 0, 'z'); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
12033
|
+
"description": "Prefer this over freehand set_script. Copies the active part's body around an axis, or drills a bolt circle of holes. boreRadius 0 (the default) copies the body; boltCircleRadius 0 (the default) leaves that copy on the axis. boreRadius greater than 0 subtracts count holes of that radius and boreHeight (mm, cutter centered on the axis) at boltCircleRadius, which must be greater than 0 or the insert is bad_args, and does not leave a second copy of the source body. The example args drill 6 holes of radius 3 mm on a 20 mm circle. Use this for a bolt circle of holes; do not insert_code_snippet a FEATURE-GAP for a bolt-circle hole pattern. On an empty part the same bore params insert a circle of pins (there is no body to drill yet); bore 0 and radius 0 there insert pins of radius 3 mm on a 20 mm circle. Working copy only; git_save commits. Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Prefer this over rebuilding geometry by hand (guide { topic: \"modeling\" }). Writes (defaults): part = polarArray(part, 4, 0, 'z'); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
11676
12034
|
"args": {
|
|
11677
12035
|
"type": "object",
|
|
11678
12036
|
"additionalProperties": false,
|
|
@@ -11965,7 +12323,7 @@
|
|
|
11965
12323
|
},
|
|
11966
12324
|
{
|
|
11967
12325
|
"name": "insert_add_draft",
|
|
11968
|
-
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Writes (defaults): part = draftFaces(part, 'sides', 2, { pull: 'z', reference: 'min' }); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
12326
|
+
"description": "Prefer this over freehand set_script. Insert this helper on the active part (set_active_part first) and run it. Numbers are finite and within ±1000000 mm (positions and deltas included); NaN and Infinity are bad_args. Working copy only; git_save commits. The result usedSelection says whether the viewport selection was used. A face pick is written into the script by name (facesNamed for a hole, edgesOf for a fillet or chamfer around that face) and is found again on the new mesh after every rebuild, so a second use_selection insert lands on the same face; an edge pick (select_edges { names }, pick sessions, a tap) is written as edgesNamed(part, \"faceA~faceB\"), the pair of stamped faces it lies between, which also survives edits. Every face has a name (helper roles, fillet1.round / chamfer2.bevel, import@1.f<k>, <block>.f<k> for freehand). Edge picks still clear with the rebuild (re-pick before the next insert), and use_selection: true with nothing selected is no_selection (nothing is written). Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. If the geometry engine crashes under this part (out of memory, a wasm abort, or a run past its 30 s budget) the result is ok: false with crash { code: geometry_worker_crashed, reason: wasm_abort | out_of_memory | timeout | worker_lost, workerRestarted: true } and one failures row with the same code; status.runState is failed. The worker was already replaced and other parts kept building, so do not ask for a reload and do not retry the same script: simplify the part, lower segment counts, or split it into smaller parts, then run it again. When the run past the budget was inside one marked feature block, the part is rebuilt without that block instead: the result is ok: false with one failures row { code: feature_timeout, featureId, featureType, featureLabel, elapsedMs, budgetMs, detail }, status.runState is failed, the other features are built and shown, and status.featureMs (and feature_tree ms) say how long each block took; edit, delete, or undo that feature. Molding rules: guide { topic: \"molding\" }. Writes (defaults): part = draftFaces(part, 'sides', 2, { pull: 'z', reference: 'min' }); Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
11969
12327
|
"args": {
|
|
11970
12328
|
"type": "object",
|
|
11971
12329
|
"additionalProperties": false,
|
|
@@ -12520,6 +12878,10 @@
|
|
|
12520
12878
|
"type": "object",
|
|
12521
12879
|
"additionalProperties": false,
|
|
12522
12880
|
"properties": {
|
|
12881
|
+
"contour": {
|
|
12882
|
+
"type": "string",
|
|
12883
|
+
"description": "The saved contour to extrude: its @contour id or binding name (sketch_commit returns it; feature_tree lists contour:<id> rows). Omitted: the newest saved contour no feature uses yet, so a sketch committed just before is the profile. With no saved contour the insert seeds a placeholder profile. Several contours on one extrude: slot_open, slot_assign_contour, slot_commit."
|
|
12884
|
+
},
|
|
12523
12885
|
"height": {
|
|
12524
12886
|
"type": "number",
|
|
12525
12887
|
"minimum": 0.1
|
|
@@ -12791,6 +13153,10 @@
|
|
|
12791
13153
|
"type": "object",
|
|
12792
13154
|
"additionalProperties": false,
|
|
12793
13155
|
"properties": {
|
|
13156
|
+
"contour": {
|
|
13157
|
+
"type": "string",
|
|
13158
|
+
"description": "The saved contour to revolve: its @contour id or binding name (sketch_commit returns it; feature_tree lists contour:<id> rows). Omitted: the newest saved contour no feature uses yet, so a sketch committed just before is the profile. With no saved contour the insert seeds a placeholder profile. Several contours on one revolve: slot_open, slot_assign_contour, slot_commit."
|
|
13159
|
+
},
|
|
12794
13160
|
"segments": {
|
|
12795
13161
|
"type": "number",
|
|
12796
13162
|
"minimum": 3
|
|
@@ -14560,7 +14926,7 @@
|
|
|
14560
14926
|
},
|
|
14561
14927
|
{
|
|
14562
14928
|
"name": "delete_feature",
|
|
14563
|
-
"description": "Delete a feature block from the active part (or part_id, an opaque surf id) and run that part through mutate, so the result status and errors are current and undo once restores the block. deleted: true means the block is gone; ok is the run after it, so ok: false with deleted: true is a later feature failing on the new solid (read errors), not a delete that did not happen: do not delete again. A face pick does not change the part: id and index resolve against the active part unless part_id names another row (a path or display name is unknown_part). Deleting the feature that declares part while later code still uses it is confirm_required until confirm: true; the result then carries a warning. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
14929
|
+
"description": "Delete a feature block from the active part (or part_id, an opaque surf id) and run that part through mutate, so the result status and errors are current and undo once restores the block. deleted: true means the block is gone; ok is the run after it, so ok: false with deleted: true is a later feature failing on the new solid (read errors), not a delete that did not happen: do not delete again. A face pick does not change the part: id and index resolve against the active part unless part_id names another row (a path or display name is unknown_part). A contour:<id> chip, the bare contour id, or that chip's index deletes the @contour statement. A contour a feature still names is confirm_required until confirm: true, which also drops those features. Deleting the feature that declares part while later code still uses it is confirm_required until confirm: true; the result then carries a warning. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
14564
14930
|
"args": {
|
|
14565
14931
|
"type": "object",
|
|
14566
14932
|
"additionalProperties": false,
|
|
@@ -16172,7 +16538,7 @@
|
|
|
16172
16538
|
},
|
|
16173
16539
|
{
|
|
16174
16540
|
"name": "sketch_add",
|
|
16175
|
-
"description": "
|
|
16541
|
+
"description": "Set the sketch profile. The first closed profile replaces an empty sketch. A later closed profile adds another loop on that same sketch (outer plus holes). A centres sketch, or params.contour, still replaces. A rectangle radius or params.cornerRadius rounds the corners (four lines and four arcs) when it is at most half the shorter side; a larger value is invalid_profile. Result may include appended and loops.",
|
|
16176
16542
|
"args": {
|
|
16177
16543
|
"type": "object",
|
|
16178
16544
|
"additionalProperties": false,
|
|
@@ -16191,7 +16557,8 @@
|
|
|
16191
16557
|
"type": "boolean"
|
|
16192
16558
|
},
|
|
16193
16559
|
"radius": {
|
|
16194
|
-
"type": "number"
|
|
16560
|
+
"type": "number",
|
|
16561
|
+
"description": "Circle or polygon radius, or a rectangle corner radius (also params.cornerRadius). At most half the shorter side."
|
|
16195
16562
|
},
|
|
16196
16563
|
"segments": {
|
|
16197
16564
|
"type": "number"
|
|
@@ -17878,7 +18245,7 @@
|
|
|
17878
18245
|
},
|
|
17879
18246
|
{
|
|
17880
18247
|
"name": "slot_assign_contour",
|
|
17881
|
-
"description": "Assign a saved @contour id to a slot on the open card.",
|
|
18248
|
+
"description": "Assign a saved @contour id to a slot on the open card. Extrude accepts several profiles: each call appends, and the same id again updates loop_role (auto, outer, or hole) without duplicating. remove: true drops that contour. Nested loops are holes unless loop_role says otherwise. Revolve, sweep, and loft stay one contour per slot.",
|
|
17882
18249
|
"args": {
|
|
17883
18250
|
"type": "object",
|
|
17884
18251
|
"additionalProperties": false,
|
|
@@ -17903,6 +18270,19 @@
|
|
|
17903
18270
|
"type": "integer",
|
|
17904
18271
|
"minimum": 0,
|
|
17905
18272
|
"description": "Loft station index when role is station"
|
|
18273
|
+
},
|
|
18274
|
+
"loop_role": {
|
|
18275
|
+
"type": "string",
|
|
18276
|
+
"enum": [
|
|
18277
|
+
"auto",
|
|
18278
|
+
"outer",
|
|
18279
|
+
"hole"
|
|
18280
|
+
],
|
|
18281
|
+
"description": "Extrude profile only. auto classifies a nested loop as a hole. outer or hole overrides that test."
|
|
18282
|
+
},
|
|
18283
|
+
"remove": {
|
|
18284
|
+
"type": "boolean",
|
|
18285
|
+
"description": "Extrude profile only. Drop this contour from the slot instead of adding it."
|
|
17906
18286
|
}
|
|
17907
18287
|
}
|
|
17908
18288
|
},
|
|
@@ -21505,7 +21885,7 @@
|
|
|
21505
21885
|
},
|
|
21506
21886
|
{
|
|
21507
21887
|
"name": "create_assembly",
|
|
21508
|
-
"description": "Seed a blank assembly with one empty part (no demo script, no seed cube: the first insert_* creates the body). 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 }. Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
21888
|
+
"description": "Seed a blank assembly with one empty, active part (no demo script, no seed cube: the first insert_* creates the body). The result partId (also activeId) is that seed part: build the first part on it, rename it with rename_part { part_id, name } (or pass part_name), and do not call create_part for the first part; create_part is for the second part onward. Single-flight per tab: overlapping calls return the same assemblyId. Optional name is a non-unique label. No git write. Returns { assemblyId, assemblyName, activeId, partId, partName, partCount }. Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
21509
21889
|
"args": {
|
|
21510
21890
|
"type": "object",
|
|
21511
21891
|
"additionalProperties": false,
|
|
@@ -21514,6 +21894,10 @@
|
|
|
21514
21894
|
"type": "string",
|
|
21515
21895
|
"description": "Optional display label. Names are not unique and are not used as keys."
|
|
21516
21896
|
},
|
|
21897
|
+
"part_name": {
|
|
21898
|
+
"type": "string",
|
|
21899
|
+
"description": "Optional label for the seed part (the result partId). Same as rename_part on it afterwards."
|
|
21900
|
+
},
|
|
21517
21901
|
"return": {
|
|
21518
21902
|
"type": "string",
|
|
21519
21903
|
"enum": [
|
|
@@ -21539,12 +21923,13 @@
|
|
|
21539
21923
|
"immediate": false,
|
|
21540
21924
|
"uiEntry": "data-part-add-kind-assembly",
|
|
21541
21925
|
"example": {
|
|
21542
|
-
"name": "Gearbox"
|
|
21926
|
+
"name": "Gearbox",
|
|
21927
|
+
"part_name": "Housing"
|
|
21543
21928
|
}
|
|
21544
21929
|
},
|
|
21545
21930
|
{
|
|
21546
21931
|
"name": "create_part",
|
|
21547
|
-
"description": "Add a part and make it the active part before returning. The part starts empty (no seed cube): the first insert_* creates the body. 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 only as a rough block-out. A position, in an assembly of two or more parts, adds warning { code: \"unjointed_part\", part_id, hint } when the new part is in no joint; the call still succeeds. Working copy only: nothing reaches git without git_save. Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
21932
|
+
"description": "Add a part and make it the active part before returning. The first part of a new assembly already exists: use create_assembly's partId instead of calling create_part (a create_part straight after create_assembly, with no script, reuses that untouched seed part and returns reusedSeed: true). The part starts empty (no seed cube): the first insert_* creates the body. 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 only as a rough block-out. A position, in an assembly of two or more parts, adds warning { code: \"unjointed_part\", part_id, hint } when the new part is in no joint; the call still succeeds. Working copy only: nothing reaches git without git_save. Build in ribbon order: block out every part of the assembly as plain blocks first (within seconds of the prompt, then screenshot for the user), then Build and Shape, then Polish, then pattern and place; finish each stage across the whole assembly before the next. Features first: insert_code_snippet { gap, why, script } is the fallback for one operation no feature can do (its block starts with // FEATURE-GAP: <missing feature or option> | <why the existing feature did not work>); set_script only rewrites a whole part. Hardware is one part per unique fastener type, one instance patterned to every place it goes. Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
21548
21933
|
"args": {
|
|
21549
21934
|
"type": "object",
|
|
21550
21935
|
"additionalProperties": false,
|
|
@@ -21921,6 +22306,7 @@
|
|
|
21921
22306
|
"errors": [
|
|
21922
22307
|
"bad_args",
|
|
21923
22308
|
"unknown_assembly",
|
|
22309
|
+
"unsupported_vault_version",
|
|
21924
22310
|
"git_only",
|
|
21925
22311
|
"git_blocked",
|
|
21926
22312
|
"internal"
|
|
@@ -21987,7 +22373,7 @@
|
|
|
21987
22373
|
},
|
|
21988
22374
|
{
|
|
21989
22375
|
"name": "insert_part",
|
|
21990
|
-
"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. instance:true with the part_id of a row already in the open assembly adds another placement of that part (a part instance): the new row shares the script, run and undo history of its definition (edit any one and all rebuild from one run) and has its own id, name, pose and visibility; position is a rough block-out (default: staggered along +X). Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. A position, in an assembly of two or more parts, adds warning { code: \"unjointed_part\", part_id, hint } when the new row is in no joint; the call still succeeds. The result is { partId (the new row), instanceOf, added, partCount }; parts lists the row with instanceOf. Works on local and git assemblies. A path or name is unknown_part / unknown_assembly. Does not write git. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
22376
|
+
"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. instance:true with the part_id of a row already in the open assembly adds another placement of that part (a part instance): the new row shares the script, run and undo history of its definition (edit any one and all rebuild from one run) and has its own id, name, pose and visibility; position is a rough block-out (default: staggered along +X). Fix one base part with a fixed joint, then place every part that touches or attaches to another with joint_create (one call creates the joint and solves placement). Use part_set_transform only for parts that touch nothing. Block-out positions are rough; joints set final positions. A position, in an assembly of two or more parts, adds warning { code: \"unjointed_part\", part_id, hint } when the new row is in no joint; the call still succeeds. The result is { partId (the new row), instanceOf, added, partCount }; parts lists the row with instanceOf. Works on local and git assemblies. A path or name is unknown_part / unknown_assembly. Does not write git. Prefer this over rebuilding geometry by hand (guide { topic: \"modeling\" }). Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
21991
22377
|
"args": {
|
|
21992
22378
|
"type": "object",
|
|
21993
22379
|
"additionalProperties": false,
|
|
@@ -22079,7 +22465,7 @@
|
|
|
22079
22465
|
},
|
|
22080
22466
|
{
|
|
22081
22467
|
"name": "list_assemblies",
|
|
22082
|
-
"description": "List the assemblies the Open picker shows as [{ id, name, open }]: saved v2 assemblies
|
|
22468
|
+
"description": "List the assemblies the Open picker shows as [{ id, name, open }]: saved v2 assemblies and the open working copy (also when it is not saved yet, or local). An older or unknown vault version returns unsupported_vault_version and is not listed. id is an opaque surf id; name is a label, not a key. No path field.",
|
|
22083
22469
|
"args": {
|
|
22084
22470
|
"type": "object",
|
|
22085
22471
|
"additionalProperties": false,
|
|
@@ -22090,6 +22476,7 @@
|
|
|
22090
22476
|
"additionalProperties": true
|
|
22091
22477
|
},
|
|
22092
22478
|
"errors": [
|
|
22479
|
+
"unsupported_vault_version",
|
|
22093
22480
|
"git_blocked",
|
|
22094
22481
|
"internal"
|
|
22095
22482
|
],
|
|
@@ -22208,7 +22595,7 @@
|
|
|
22208
22595
|
"conflict",
|
|
22209
22596
|
"pending_save",
|
|
22210
22597
|
"delete_refused",
|
|
22211
|
-
"
|
|
22598
|
+
"unsupported_vault_version",
|
|
22212
22599
|
"no_assembly",
|
|
22213
22600
|
"internal"
|
|
22214
22601
|
],
|
|
@@ -26854,7 +27241,7 @@
|
|
|
26854
27241
|
},
|
|
26855
27242
|
{
|
|
26856
27243
|
"name": "git_save",
|
|
26857
|
-
"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.
|
|
27244
|
+
"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. unsupported_vault_version: the vault marker is not the current format and no upgrade step is registered. conflict or repo-moved: a remote edit overlaps this Save; git_force_overwrite, or git_behind_resolve { action: \"reload\" | \"branch\", confirm: true }, or stop. Checked out on main: save_on_main and nothing is written; git_branch_create { name }, then git_save { message } on that branch. Results omit path fields. Over the wire a save is many GitHub round trips: when it is still running after about 20 s the call answers { status: \"running\", saveId } and the save keeps going; poll git_save_status { save_id } until it answers the save result (committed, clean, or the same errors). Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
26858
27245
|
"args": {
|
|
26859
27246
|
"type": "object",
|
|
26860
27247
|
"additionalProperties": false,
|
|
@@ -26883,13 +27270,14 @@
|
|
|
26883
27270
|
},
|
|
26884
27271
|
"errors": [
|
|
26885
27272
|
"bad_args",
|
|
26886
|
-
"
|
|
27273
|
+
"unsupported_vault_version",
|
|
26887
27274
|
"conflict",
|
|
26888
27275
|
"repo-moved",
|
|
26889
27276
|
"pending_save",
|
|
26890
27277
|
"git_blocked",
|
|
26891
27278
|
"consent_pending",
|
|
26892
27279
|
"real_repo_blocked",
|
|
27280
|
+
"save_on_main",
|
|
26893
27281
|
"internal"
|
|
26894
27282
|
],
|
|
26895
27283
|
"mutates": true,
|
|
@@ -26945,14 +27333,14 @@
|
|
|
26945
27333
|
},
|
|
26946
27334
|
{
|
|
26947
27335
|
"name": "git_upgrade_vault",
|
|
26948
|
-
"description": "
|
|
27336
|
+
"description": "Generic vault-format upgrade. Reads surfcad.json kind and version. No step is registered, so the current version returns already_upgraded and an older or unknown version returns unsupported_vault_version. confirm: true is required only when a step is registered for that version. Never runs on open. A step result is a summary: status, commit SHAs, assemblyIds, counts, leftoverFiles paths, and warnings — not the full plan, file contents, meshes, partBindings paths, or rekey.scripts. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
26949
27337
|
"args": {
|
|
26950
27338
|
"type": "object",
|
|
26951
27339
|
"additionalProperties": false,
|
|
26952
27340
|
"properties": {
|
|
26953
27341
|
"confirm": {
|
|
26954
27342
|
"type": "boolean",
|
|
26955
|
-
"description": "Must be true"
|
|
27343
|
+
"description": "Must be true when a vault upgrade step is registered for this version. The current version returns already_upgraded without it."
|
|
26956
27344
|
},
|
|
26957
27345
|
"return": {
|
|
26958
27346
|
"type": "string",
|
|
@@ -27036,13 +27424,12 @@
|
|
|
27036
27424
|
},
|
|
27037
27425
|
"errors": [
|
|
27038
27426
|
"confirm_required",
|
|
27039
|
-
"
|
|
27427
|
+
"unsupported_vault_version",
|
|
27040
27428
|
"conflict",
|
|
27041
27429
|
"git_blocked",
|
|
27042
27430
|
"consent_pending",
|
|
27043
27431
|
"real_repo_blocked",
|
|
27044
27432
|
"git_error",
|
|
27045
|
-
"working_copy_unpersisted",
|
|
27046
27433
|
"internal"
|
|
27047
27434
|
],
|
|
27048
27435
|
"mutates": true,
|
|
@@ -27050,17 +27437,14 @@
|
|
|
27050
27437
|
"confirm": true,
|
|
27051
27438
|
"group": "git",
|
|
27052
27439
|
"immediate": false,
|
|
27053
|
-
"uiEntry":
|
|
27054
|
-
"data-git-upgrade-confirm",
|
|
27055
|
-
"data-git-upgrade-vault"
|
|
27056
|
-
],
|
|
27440
|
+
"uiEntry": null,
|
|
27057
27441
|
"example": {
|
|
27058
27442
|
"confirm": true
|
|
27059
27443
|
}
|
|
27060
27444
|
},
|
|
27061
27445
|
{
|
|
27062
27446
|
"name": "git_add_to_repo",
|
|
27063
|
-
"description": "Alias of git_save. Prefer git_save. Same planSave / writeVaultCommit path. Message required. Results omit path fields. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
27447
|
+
"description": "Alias of git_save. Prefer git_save. Same planSave / writeVaultCommit path. Message required. Checked out on main: save_on_main and nothing is written; git_branch_create { name }, then git_save { message } on that branch. Results omit path fields. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
27064
27448
|
"args": {
|
|
27065
27449
|
"type": "object",
|
|
27066
27450
|
"additionalProperties": false,
|
|
@@ -27089,13 +27473,14 @@
|
|
|
27089
27473
|
},
|
|
27090
27474
|
"errors": [
|
|
27091
27475
|
"bad_args",
|
|
27092
|
-
"
|
|
27476
|
+
"unsupported_vault_version",
|
|
27093
27477
|
"conflict",
|
|
27094
27478
|
"repo-moved",
|
|
27095
27479
|
"pending_save",
|
|
27096
27480
|
"git_blocked",
|
|
27097
27481
|
"consent_pending",
|
|
27098
27482
|
"real_repo_blocked",
|
|
27483
|
+
"save_on_main",
|
|
27099
27484
|
"internal"
|
|
27100
27485
|
],
|
|
27101
27486
|
"mutates": true,
|
|
@@ -27113,7 +27498,7 @@
|
|
|
27113
27498
|
},
|
|
27114
27499
|
{
|
|
27115
27500
|
"name": "git_behind_resolve",
|
|
27116
|
-
"description": "
|
|
27501
|
+
"description": "Save-conflict choice. action reload = Get latest (not a git write). action branch = Create a new branch (save-time git write). Both require confirm: true. action keep is removed (Go back is not a tool). No path argument. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
27117
27502
|
"args": {
|
|
27118
27503
|
"type": "object",
|
|
27119
27504
|
"additionalProperties": false,
|
|
@@ -27127,7 +27512,7 @@
|
|
|
27127
27512
|
"reload",
|
|
27128
27513
|
"branch"
|
|
27129
27514
|
],
|
|
27130
|
-
"description": "reload = Get latest (no git write). branch =
|
|
27515
|
+
"description": "reload = Get latest (no git write). branch = Create a new branch (save-time git write). keep is removed."
|
|
27131
27516
|
},
|
|
27132
27517
|
"confirm": {
|
|
27133
27518
|
"type": "boolean",
|
|
@@ -27223,7 +27608,7 @@
|
|
|
27223
27608
|
},
|
|
27224
27609
|
{
|
|
27225
27610
|
"name": "git_branch_switch",
|
|
27226
|
-
"description": "Switch vault branch
|
|
27611
|
+
"description": "Switch vault branch. confirm: true when the working copy is dirty. A dirty v2 copy whose files differ from the target returns status conflict (model branch-switch) and does not switch, even with confirm: true. choice use_local keeps the working copy on that branch; choice use_remote loads the target. Both need confirm: true and neither writes git. Go back is not a tool. Takes return: \"status\" | \"summary\" | \"full\" (MCP default \"status\": status.script is omitted; \"summary\" adds status.features; \"full\" echoes the script).",
|
|
27227
27612
|
"args": {
|
|
27228
27613
|
"type": "object",
|
|
27229
27614
|
"additionalProperties": false,
|
|
@@ -27234,9 +27619,17 @@
|
|
|
27234
27619
|
"branch": {
|
|
27235
27620
|
"type": "string"
|
|
27236
27621
|
},
|
|
27622
|
+
"choice": {
|
|
27623
|
+
"type": "string",
|
|
27624
|
+
"enum": [
|
|
27625
|
+
"use_local",
|
|
27626
|
+
"use_remote"
|
|
27627
|
+
],
|
|
27628
|
+
"description": "Branch-switch conflict choice. use_local keeps the working copy. use_remote loads the target. Neither writes git. Both require confirm: true. Omit to preview; a file conflict returns status conflict and does not switch."
|
|
27629
|
+
},
|
|
27237
27630
|
"confirm": {
|
|
27238
27631
|
"type": "boolean",
|
|
27239
|
-
"description": "Required true when the working copy has uncommitted changes"
|
|
27632
|
+
"description": "Required true when the working copy has uncommitted changes, and for choice use_local or use_remote"
|
|
27240
27633
|
},
|
|
27241
27634
|
"return": {
|
|
27242
27635
|
"type": "string",
|
|
@@ -27256,6 +27649,7 @@
|
|
|
27256
27649
|
"errors": [
|
|
27257
27650
|
"bad_args",
|
|
27258
27651
|
"confirm_required",
|
|
27652
|
+
"conflict",
|
|
27259
27653
|
"git_blocked",
|
|
27260
27654
|
"consent_pending",
|
|
27261
27655
|
"real_repo_blocked",
|
|
@@ -27268,7 +27662,9 @@
|
|
|
27268
27662
|
"immediate": false,
|
|
27269
27663
|
"uiEntry": [
|
|
27270
27664
|
"data-git-branches",
|
|
27271
|
-
"data-git-branch-confirm"
|
|
27665
|
+
"data-git-branch-confirm",
|
|
27666
|
+
"data-git-branch-switch-use-local",
|
|
27667
|
+
"data-git-branch-switch-use-remote"
|
|
27272
27668
|
],
|
|
27273
27669
|
"example": {
|
|
27274
27670
|
"branch": "main"
|