style_manage
Create, update, list, or delete Saved Styles and configure Moho 14 brushes, Soft Edge, gradients, and Smart Line Boil settings in a live Moho document.
Instructions
Manage document Saved Styles (list, create, update, delete, delete_unused, new_from_shape), Moho 14 Brushes (list_brushes, drift/spacing/mergedAlpha), Soft Edge, Gradients, and Smart Line Boil.
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": "style_manage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | ||
| scope | No | Match scope for new_from_shape (default: 'document') | |
| layerId | No | Numeric depth-first layer ID (from layer_list) | |
| newName | No | ||
| shapeId | No | ||
| stagger | No | ||
| styleId | No | ||
| colorTag | No | Keyframe color tag index (InterpSetting.tags) | |
| gradient | No | ||
| hueDrift | No | ||
| interval | No | Step interval in frames (1 = ones, 2 = twos, 3 = threes) | |
| lineCaps | No | ||
| satDrift | No | ||
| valDrift | No | ||
| brushName | No | ||
| brushTint | 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 | ||
| operation | Yes | ||
| overwrite | No | ||
| roundCaps | No | ||
| shapeName | No | ||
| styleName | No | ||
| styleSlot | No | Style slot (1 or 2) when binding shapes in new_from_shape | |
| styleUuid | No | ||
| brushAlign | No | ||
| brushesDir | No | ||
| matchBrush | No | ||
| mergeAlpha | No | ||
| softEdgePx | No | ||
| brushJitter | No | ||
| lineWidthPx | No | ||
| strokeColor | No | ||
| brushIsColor | No | ||
| brushSpacing | No | ||
| sizeVarScale | 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) | |
| brushRandomize | No | ||
| colorTolerance | No | 0..255 channel tolerance for matching (default: 2) | |
| matchFillColor | No | ||
| matchLineWidth | No | Default false so variable-width outlines share one style cleanly | |
| bezierInPercent | No | Bezier incoming handle percentage (InterpSetting:SetBezierInPercentage) | |
| brushAngleDrift | No | ||
| defineFillColor | No | ||
| defineLineColor | No | ||
| defineLineWidth | No | ||
| bezierOutPercent | No | Bezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage) | |
| brushMergedAlpha | No | ||
| brushRandomOrder | No | ||
| cycleTargetFrame | No | Target loop frame when using Cycle interpolation | |
| matchStrokeColor | No | ||
| sizeVarAmplitude | No | ||
| strokeSoftEdgePx | No | ||
| smartBoilInterval | No | ||
| lineWidthTolerancePx | No |