Skip to main content
Glama

Auto-rig a character PNG

riv_rig_character

Convert a character PNG into a fully rigged .riv file with cutout parts, head-tilt mesh, eyelid blink, idle/happy animations, and a happy-trigger state machine, returning a preview for fine-tuning.

Instructions

One call: character PNG -> fully rigged .riv with cutout parts (ears/tail via polygons), 2-bone head-tilt mesh (seamless), vector eyelid blink, idle + happy animations, and a state machine with a 'happy' trigger. Returns a preview. Fine-tune afterwards with riv_edit or riv_studio.

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": {
      "pngPath": "<pngPath>",
      "outPath": "<outPath>"
    },
    "name": "riv_rig_character"
  }
}

Input Schema

NameRequiredDescriptionDefault
eyesNoEye rects in image px coords (generates blink overlays)
partsNoNamed cutout parts, e.g. {earL, earR, tail}. Names containing 'ear' attach to the head
outPathYesOutput .riv path
pngPathYesCharacter PNG (transparent background recommended)
furColorNoEyelid/patch color matching the fur (default #f8eee2)
headRatioNoTop fraction of the image that is 'head' (default 0.45)
artboardWidthNoArtboard width in px (default 600)
artboardHeightNoArtboard height in px (default 460)
backgroundColorNoCSS background color (default: transparent)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.8.0
    • addedInput schema / properties / artboardHeight / description
      Added value: +"Artboard height in px (default 460)"
    • addedInput schema / properties / artboardWidth / description
      Added value: +"Artboard width in px (default 600)"
    • addedInput schema / properties / backgroundColor / description
      Added value: +"CSS background color (default: transparent)"
    • addedInput schema / properties / eyes / items / properties / height / description
      Added value: +"Height in image px"
    • addedInput schema / properties / eyes / items / properties / width / description
      Added value: +"Width in image px"
    • addedInput schema / properties / eyes / items / properties / x / description
      Added value: +"Left edge in image px"
    • addedInput schema / properties / eyes / items / properties / y / description
      Added value: +"Top edge in image px"
  2. Changed2 schema fields changedv0.6.1
    • changedInput schema / properties / parts / additionalProperties / properties / pivot / items
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]New value: +{
      +  "type": "number"
      +}
    • changedInput schema / properties / parts / additionalProperties / properties / polygon / items / items
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]New value: +{
      +  "type": "number"
      +}
  3. First observedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the rig structure produced (polygon cutouts, seamless 2-bone head mesh, vector eyelids), the animation set, and that a preview is returned. The notable gap is write-safety behavior — nothing says whether outPath is overwritten or what happens if it already exists, which matters for a mutation tool.

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 output pipeline is front-loaded ("One call: ...") and nearly every clause adds a concrete capability rather than filler. It is a long run-on sentence with several comma-separated clauses, which slightly hurts scannability, but there is no wasted content.

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

Completeness3/5

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

For a 9-parameter, nested-object tool with no annotations and no output schema, the description explains the produced .riv well but is thin on returns — "Returns a preview" doesn't say whether that is an image, a frame, or a path. The pipeline coverage is good; the response-side and overwrite behavior leave gaps an agent may need to discover at call time.

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 description coverage is 100%, so every parameter (eyes, parts, furColor, headRatio, artboard size, background) is already documented in the schema, including the pivot default and behindBody semantics. The description only echoes 'ears/tail via polygons' without adding format or constraint detail beyond the schema, so the baseline 3 applies.

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

Purpose5/5

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

The description names a specific verb+resource (auto-rig a character PNG into a fully rigged .riv) and enumerates the produced artifacts: cutout parts, head-tilt mesh, vector blink, idle/happy animations, state machine. This is unmistakably distinct from siblings like riv_create or riv_edit, which the agent can rule out without opening schemas.

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

Usage Guidelines4/5

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

"One call" frames this as the one-shot automated path, and "Fine-tune afterwards with riv_edit or riv_studio" explicitly routes post-processing to the correct siblings. It stops short of stating when *not* to use it (e.g. when an existing .riv should be extended rather than regenerated), so it isn't fully 5-level guidance.

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