Skip to main content
Glama

document_exportGltf

Export the active Moho Pro document to glTF 2.0 or GLB headlessly with frame baking, texture scaling, mesh resolution, and format options. Run a rig audit first to flag animation export issues.

Instructions

Headless Moho Pro 14.4 glTF 2.0 / GLB export wrapping Tool/ss_gltf_export.lua (bypasses SS_glTFExportDialog:DoModal safely). Run rig_auditGltf first to check for animated vectors without Warp Layers or non-in-place Actions.

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

Input Schema

NameRequiredDescriptionDefault
fbfNoBake every frame into glTF keyframes (preserves dynamics/Smart Bones; default: false)
scaleNoTexture scaling factor 0.1..10.0 (default: 1.0 = 100%)
formatNoOutput container format (default: 'glb')
commentNo
fbfStepNoKeyframe interval step when fbf=true (1..999, default: 1)
zOffsetNoZ-offset factor between stacked layers 0.1..100 (default: 1)
fileNameNoOutput base filename without extension (defaults to document name)
reRenderNoRe-render layer textures mode (default: 'none')
copyrightNo
outputDirNoDestination folder (required if document is unsaved; auto-created if missing)
flipZOrderNoInvert layer Z stacking order (default: false)
gridDensityNoMesh polygon resolution 1..100 (default: 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose meaningful behavior beyond the schema: the export is headless and bypasses the modal export dialog safely, so the agent knows it will not block. It omits other important traits: whether the document is mutated, whether existing files are overwritten, cost for large fbf bakes, and what is returned on success versus failure.

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?

Two compact sentences, front-loaded with the core purpose and followed by the prerequisite check. The parenthetical about SS_glTFExportDialog:DoModal is implementation trivia that consumes space without helping tool selection, but overall there is little waste.

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 a twelve-parameter export tool with no annotations and no output schema, yet the description says nothing about return values (file paths? counts?), document state effects, or overwrite behavior. For that complexity level, naming the prerequisite and the non-modal behavior is not enough to call it complete.

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 83%, so the schema already documents nearly all twelve parameters including defaults and ranges. The description adds no parameter meaning of its own beyond the indirectly relevant audit prerequisite, so the baseline 3 applies.

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?

States a specific verb and resource: headless glTF 2.0 / GLB export for Moho Pro 14.4, with a named implementation path. It distinguishes itself from the closest sibling by naming rig_auditGltf as the pre-flight check, though the lua/dialog internals are purpose-adjacent detail rather than scope definition.

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?

Provides one concrete sequencing rule: run rig_auditGltf first to catch animated vectors without Warp Layers or non-in-place Actions. It says nothing about when not to use it, how it relates to other export/render paths in the sibling set, or which format choice suits which workflow.

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