mesh_editTopology
Edit vector topology and curves by splitting segments, welding or inserting points, hiding edges, merging shapes, triangulating, and adjusting stroke exposure in Moho projects.
Instructions
Edit vector topology and curves: split_segments, insert_point, weld_points, connect_and_create, hide_edge, delete_points, mirror_points, merge_shapes, triangulate, and stroke_exposure.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>"
},
"name": "mesh_editTopology"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| axis | No | ||
| hold | No | Frames to hold prior value before interpolating | |
| name | No | ||
| val1 | No | InterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param) | |
| val2 | No | InterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative) | |
| axisX | No | ||
| axisY | No | ||
| edges | No | ||
| frame | No | ||
| pairs | No | ||
| hidden | No | ||
| curveId | No | ||
| hasFill | No | ||
| layerId | No | Numeric depth-first layer ID (from layer_list) | |
| stagger | No | ||
| visible | No | ||
| colorTag | No | Keyframe color tag index (InterpSetting.tags) | |
| editOnly | No | ||
| interval | No | Step interval in frames (1 = ones, 2 = twos, 3 = threes) | |
| pointIdA | No | ||
| pointIdB | No | ||
| pointIds | No | ||
| shapeIds | No | ||
| weldAxis | No | ||
| axisValue | No | ||
| cycleBack | No | Relative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2) | |
| cycleMode | No | Cycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame) | |
| duplicate | No | ||
| fillColor | No | ||
| layerName | No | Exact layer name | |
| layerUuid | No | Layer UUID | |
| operation | Yes | ||
| segmentId | No | ||
| endPercent | No | Stroke exposure end (0.0 .. 1.0) | |
| hasOutline | No | ||
| shapeNames | No | ||
| splitCount | No | ||
| createShape | No | ||
| lineWidthPx | No | ||
| strokeColor | No | ||
| mirrorShapes | No | ||
| solidPointId | No | ||
| startPercent | No | Stroke exposure start (0.0 .. 1.0) | |
| additiveCycle | No | Enable additive cycle accumulation | |
| bezierInAngle | No | Bezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle) | |
| interpolation | No | ||
| movingPointId | No | ||
| targetLayerId | No | ||
| weldTolerance | No | ||
| bezierOutAngle | No | Bezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle) | |
| bezierInPercent | No | Bezier incoming handle percentage (InterpSetting:SetBezierInPercentage) | |
| clearParentBone | No | ||
| preserveCorners | No | ||
| preserveHandles | No | ||
| targetLayerName | No | ||
| bezierOutPercent | No | Bezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage) | |
| cycleTargetFrame | No | Target loop frame when using Cycle interpolation | |
| preserveCurvature | No | ||
| correctBezierHandles | No | ||
| preservePointBinding | No | ||
| behindNeighborStrokes | No | ||
| continuousTriangulation | No |