mesh_createShape
Creates vector shapes from new points, oval or rectangle primitives, or existing point IDs, supporting holes, gradients, Soft Edge, saved styles, and brushes for Moho artwork.
Instructions
Create a vector shape from new points, an oval/rect primitive, or existing pointIds (with optional holes, Soft Edge, Gradients, Saved Styles, and Brushes).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mesh_createShape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cx | No | ||
| cy | No | ||
| rx | No | ||
| ry | 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) | |
| brush | No | ||
| frame | No | ||
| holes | No | Optional interior closed hole point rings for compound shapes | |
| width | No | ||
| closed | No | ||
| height | No | ||
| peaked | No | ||
| points | No | ||
| style1 | No | Saved Style name, UUID, or index for Style 1 slot ('' to unlink) | |
| style2 | No | Saved Style name, UUID, or index for Style 2 slot ('' to unlink) | |
| hasFill | No | ||
| layerId | No | Numeric depth-first layer ID (from layer_list) | |
| stagger | No | ||
| colorTag | No | Keyframe color tag index (InterpSetting.tags) | |
| gradient | No | ||
| interval | No | Step interval in frames (1 = ones, 2 = twos, 3 = threes) | |
| lineCaps | No | ||
| pointIds | No | Create a shape on existing mesh points (for 2x stroke-behind-fill, partial edges, half-fills) | |
| brushName | No | ||
| curvature | 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) | |
| fillColor | No | ||
| layerName | No | Exact layer name | |
| layerUuid | No | Layer UUID | |
| lineWidth | No | Raw normalized stroke width (fraction of document height; prefer lineWidthPx) | |
| makePlain | No | ||
| primitive | No | ||
| roundCaps | No | ||
| hasOutline | No | ||
| softEdgePx | No | Soft Edge blur radius in pixels (moho:PixelToDoc) | |
| effectScale | No | ||
| lineWidthPx | No | Stroke width in pixels at project height (normalized via px / doc:Height()) | |
| strokeColor | No | ||
| effectOffset | No | ||
| additiveCycle | No | Enable additive cycle accumulation | |
| bezierInAngle | No | Bezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle) | |
| interpolation | No | ||
| bezierOutAngle | No | Bezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle) | |
| bezierInPercent | No | Bezier incoming handle percentage (InterpSetting:SetBezierInPercentage) | |
| bezierOutPercent | No | Bezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage) | |
| cycleTargetFrame | No | Target loop frame when using Cycle interpolation | |
| strokeSoftEdgePx | No | ||
| effectRotationDeg | No | ||
| smartBoilInterval | No | ||
| behindNeighborStrokes | No |