Skip to main content
Glama

Scene Render Preview

scene_render_preview
Read-onlyIdempotent

Render a single-frame playblast from a chosen camera with the HUD suppressed, giving a clean preview image without selection highlights.

Instructions

Single-frame playblast preview from a camera (clean, no HUD).

Boundary: Disambiguated from scene_viewport_snapshot (capture the panel as the artist sees it, HUD and selection highlights included) — scene_render_preview renders a chosen camera with the HUD suppressed.

GUI sessions only - headless sessions get a structured gui_session_required error.

Side-effect disclosures (read_only_hint is honest):

  1. Switching the panel camera via the modelPanel camera flag is instantaneous, visible, and NOT undoable in Maya.

  2. Everything is put back: the panel camera is restored on every path - success or failure - so terminal state equals entry.

  3. The current time may visibly jump during capture; it is restored afterwards (playblast timeline quirk).

  4. viewer=False: no playblast window pops up.

  5. On failure the restore is still attempted; a failed restore is logged, never raised over the error result.

  6. Only a killed Maya process can skip the restore.

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

Input Schema

NameRequiredDescriptionDefault
widthNoFrame width in pixels (default 640). Rounded UP to a multiple of 4 server-side (playblast constraint); the actual size may also be clamped by the viewport - trust the returned metadata, not the request.
cameraNoCamera to look through (default: the panel's current camera).
formatNo"jpeg" (default) or "png". png recommended for wireframe/line-art review.jpeg
heightNoFrame height (default 360). Same /4 rule.
qualityNoJPEG quality 1-100.
max_sizeNoLongest-side cap for the returned image.
session_keyNoMaya session key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4.6/5.0
Behavior5/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, but the description adds the behavioral detail that the hints cannot convey: the panel camera switch is visible, instantaneous, and not undoable in Maya, and the current time may visibly jump during capture. It also explains the recovery contract: the camera is restored on success and failure, the restore failure is logged rather than raised over the error, and only a killed Maya process can skip the restore. These disclosures reconcile the transient, visible state changes with the read-only claim, so there is no annotation contradiction.

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 definition opens with the purpose, then the sibling boundary, then the GUI precondition, then a numbered side-effect list. That structure is sensible and front-loaded. The six numbered items are individually useful, but items 5 and 6 overlap with item 2, and some of the list restates the same restore guarantee.

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

Completeness5/5

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

For a tool this side-effect-prone, the definition covers the GUI-only precondition, the error shape, the exact restoration guarantee, the manifestation of the transient state changes, and evidence that no window pops up. No output schema exists, but the description points to the returned metadata for actual frame size, which is enough for an agent to interpret the result.

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 the schema already documents width, height, quality, format, max_size, camera, and session_key, including the rule that dimensions round up to a multiple of 4 and the advice to trust the returned metadata over the request. The description adds only the framing that a chosen camera is rendered and that the HUD is suppressed; it gives no further parameter syntax or interaction detail. Per the high-coverage baseline, a 3 is appropriate.

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 gives a specific verb and resource: it renders a single-frame playblast preview from a camera and suppresses the HUD. It also explicitly names the sibling it is not (scene_viewport_snapshot) and explains the difference: one captures the panel as the artist sees it, with HUD and selection highlights, while the other renders a chosen camera cleanly. An agent can choose between them without opening either schema.

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

Usage Guidelines5/5

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

The boundary paragraph explicitly says when to use this tool versus the alternative, and it names the condition that selects the alternative (a view of the panel as the artist sees it, with HUD and highlights). It also states a hard usage precondition: GUI sessions only, with headless sessions returning a structured gui_session_required error. That is when-to-use, when-not-to-use, and what happens in the disallowed case.

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