Skip to main content
Glama

layer_renderImage

Render a single isolated Moho layer to a transparent PNG and return its world bounds and image, with controls for output path, trimming, and dimensions.

Instructions

Render a single isolated layer directly to a transparent PNG via Moho 14.4 RenderLayerImage and return its world bounds and image.

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_renderImage"
  }
}

Input Schema

NameRequiredDescriptionDefault
frameNo
layerIdNoNumeric depth-first layer ID (from layer_list)
layerNameNoExact layer name
layerUuidNoLayer UUID
outputPathNoOptional destination PNG path
trimResultNoTrim transparent padding around layer bounds (default: false)
returnImageNoInclude base64 PNG in MCP response (default: true)
maxDimensionNoMaximum pixel dimension (default: 2048)
minDimensionNoMinimum pixel dimension (default: 512)
embedColorProfileNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the return payload (world bounds and image) and the transparency behavior, but says nothing about whether outputPath causes a disk write, what happens if the layer is missing, or any cost/rate considerations for a render call.

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?

One dense sentence with the output format and return payload front-loaded; nothing is wasted. The 'via Moho 14.4 RenderLayerImage' clause is implementation framing rather than decision-relevant detail, which keeps it just short of a 5.

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

Completeness4/5

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

With 10 parameters, no annotations, and no output schema, the description earns credit for covering the return value (bounds plus base64 image) and the transparent-PNG output. Remaining gaps are the disk-write semantics of outputPath and the layer-identifier precedence, both of which matter for correct invocation.

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 80% (8 of 10 parameters documented), so baseline is 3. The description adds no meaning beyond the schema — notably it does not clarify precedence among layerId, layerName, and layerUuid, nor how minDimension/maxDimension interact, which is the highest-value clarification it could have made.

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 (render) and a precise resource scope (a single isolated layer) with a named output format (transparent PNG), plus the underlying Moho 14.4 RenderLayerImage call. This distinguishes it from frame/range rendering siblings, though it never names document_renderFrame or document_renderRange to make the contrast explicit.

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 implied by 'single isolated layer' rather than stated: an agent must infer that whole-frame or multi-frame output belongs to the document_render* siblings. There are no explicit when-not conditions, prerequisites (e.g. an open Moho document), or guidance about choosing among the three layer identifier parameters.

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