Skip to main content
Glama

layer_setProperties

Modify a layer's transform, parallax Z, timing offset, Layer FX, opacity, blur, blending, and metadata to adjust its appearance and behavior in a live Moho project.

Instructions

Modify layer transform, parallax Z (with preserveApparentSize), timingOffset, shownOnTimeline, immuneToDof, Layer FX (colorize/outline/shadow/shading), vectorNoise, opacity, blur, blendingMode, and metadata.

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": "layer_setProperties"
  }
}

Input Schema

NameRequiredDescriptionDefault
blurNoRaw document-unit blur radius (prefer blurPx for pixel units)
holdNoFrames to hold prior value before interpolating
nameNo
val1NoInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2NoInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)
flipHNo
flipVNo
frameNo
scaleNo
blurPxNoLayer blur radius in pixels (converted via moho:PixelToDoc)
lockedNo
originNo
shadowNo
layerIdNoNumeric depth-first layer ID (from layer_list)
opacityNo
outlineNo
shadingNo
staggerNo
visibleNo
colorTagNoKeyframe color tag index (InterpSetting.tags)
colorizeNo
editOnlyNo
intervalNoStep interval in frames (1 = ones, 2 = twos, 3 = threes)
userTagsNo
cycleBackNoRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModeNoCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
depthSortNoTrigger FullDepthSort on Group or DepthSort on document
layerNameNoExact layer name
layerUuidNoLayer UUID
rotationXNoDegrees
rotationYNoDegrees
rotationZNoDegrees
labelColorNo
renderOnlyNo
immuneToDofNo
translationNo
vectorNoiseNo
blendingModeNoBlending mode name (e.g. 'multiply', 'screen', 'add') or numeric code
timingOffsetNoSequencer frame offset
userCommentsNo
additiveCycleNoEnable additive cycle accumulation
bezierInAngleNoBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
interpolationNo
bezierOutAngleNoBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierInPercentNoBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
shownOnTimelineNo
bezierOutPercentNoBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
cycleTargetFrameNoTarget loop frame when using Cycle interpolation
preserveApparentSizeNoAuto-adjust X/Y and scale when translation.z changes (Moho Alt+Shift parallax)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden, and it only says things get modified. It does not disclose whether omitted fields are left untouched, whether the target layer must be pre-selected, whether changes are undoable, or what happens on an invalid layerId — critical for a 49-parameter mutation tool. Listing property groups is scope, not behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single front-loaded sentence with the verb first, which is good, but roughly a dozen property names are enumerated that already appear verbatim in the schema, so much of the sentence is redundant rather than informative. It is compact but low-density in new information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 49-parameter mutation tool with no annotations and no output schema, one sentence is far too thin. It omits how the target layer is identified, whether the call is partial-update or full-replace, and any error or return behavior — the agent must reverse-engineer all of this from the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 51%, so the description should compensate; it does partially by grouping related fields (parallax Z with preserveApparentSize, Layer FX as colorize/outline/shadow/shading, vectorNoise, blendingMode) that map onto the nested schema objects. However it adds no unit, range, or interaction semantics for individual parameters beyond restating their names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb ("Modify") and resource ("layer") and enumerates the property families affected, so an agent can distinguish it from layer_getProperties or bone_setProperties. It stops short of explicitly contrasting with any sibling, but the scope is concrete.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the verb "Modify" — the agent infers this is the write counterpart to layer_getProperties. There is no statement about when to prefer another tool, no prerequisites (e.g., that a layer must be identified via layerId/layerName/layerUuid), and no note that all 49 parameters are optional.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.