Skip to main content
Glama

switch_setActive

Activate, inspect, or keyframe child layers on a Moho SwitchLayer for lip-sync, hand or prop swaps, frame-by-frame animation, and vector sub-layer interpolation.

Instructions

Inspect or keyframe active child layers on a SwitchLayer (lip-sync, hand/prop swaps, Frame-by-Frame mode, vector sub-layer interpolation).

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

Input Schema

NameRequiredDescriptionDefault
frameNo
layerIdNoNumeric depth-first layer ID (from layer_list)
childNameNoChild layer name to activate at `frame`
keyframesNoOptional batch of { frame, childName } switch keyframes
layerNameNoExact layer name
layerUuidNoLayer UUID
interpModeNoEnable smooth vector interpolation between switch children
frameByFrameNoToggle Frame-by-Frame layer flag

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of disclosing mutation behavior. It mentions keyframing and toggles but omits whether existing switch keyframes are overwritten, what context/frame is required, permissions, side effects, and return values; "inspect or keyframe" also blurs read versus write behavior.

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

Conciseness4/5

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

The description is a single tightly worded sentence, front-loaded with the resource and use cases. The parenthetical list is dense but does not waste words.

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?

This is an 8-parameter, no-required-parameter tool with no annotations and no output schema. The description gives use cases but omits essential operational details such as required context, side effects, and keyframe overwrite semantics, leaving it incomplete for an agent to invoke safely.

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 88% and already documents parameters including childName, keyframes, interpMode, and frameByFrame. The description's parenthetical mentions Frame-by-Frame and vector interpolation but adds little meaning beyond the schema field descriptions, so baseline 3 applies.

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

Purpose3/5

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

The description names the resource (child layers on a SwitchLayer) and several use cases, but the verb is split between "inspect" and "keyframe" while the tool name is switch_setActive. It is unclear whether the primary action is setting an active child, keyframing switches, or both.

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?

The parenthetical examples (lip-sync, hand/prop swaps, Frame-by-Frame mode, vector interpolation) imply when the tool applies. However, there is no explicit when-to-use/when-not-to-use guidance or named alternative among siblings such as animation_setKeyframes or layer_setProperties.

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