Skip to main content
Glama

rhino_viewport_preview

Capture a viewport preview focused on selected objects or layers, temporarily ghosting or hiding everything else and restoring the Rhino document unchanged.

Instructions

Capture a viewport preview restricted to a selection or layer set.

    Spotlights ``selection_ids`` and/or objects on ``layers``; everything
    else is either ghosted (default) or hidden during the capture and
    restored afterwards. Selection and visibility are restored, so the
    document is left unchanged. Returns MCP image content plus a summary
    (see ``rhino_screenshot`` for the image controls). Bridge only.
    

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": {
      "args": "<args>"
    },
    "name": "rhino_viewport_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.7.0
    • addedInput schema / $defs / _ViewportPreviewIn / properties / format
      Added value: +{
      +  "default": "jpeg",
      +  "description": "Encoding of the inline image (JPEG is far smaller).",
      +  "enum": [
      +    "jpeg",
      +    "png"
      +  ],
      +  "title": "Format",
      +  "type": "string"
      +}
    • addedInput schema / $defs / _ViewportPreviewIn / properties / include_image
      Added value: +{
      +  "default": true,
      +  "description": "Return the capture as MCP image content so the model can see it. Set False (with a file path) to get only the summary and save tokens.",
      +  "title": "Include Image",
      +  "type": "boolean"
      +}
    • addedInput schema / $defs / _ViewportPreviewIn / properties / jpeg_quality
      Added value: +{
      +  "default": 80,
      +  "description": "JPEG quality for the inline image (ignored for PNG).",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "title": "Jpeg Quality",
      +  "type": "integer"
      +}
    • addedInput schema / $defs / _ViewportPreviewIn / properties / max_width
      Added value: +{
      +  "default": 1024,
      +  "description": "Downscale the inline image to at most this width (aspect ratio kept); 0 = native capture size. The file at the output path keeps full size.",
      +  "maximum": 8192,
      +  "minimum": 0,
      +  "title": "Max Width",
      +  "type": "integer"
      +}
    • addedInput schema / $defs / _ViewportPreviewIn / properties / path / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / $defs / _ViewportPreviewIn / properties / path / default
      Added value: +null
    • changedInput schema / $defs / _ViewportPreviewIn / properties / path / description
      Previous value: -"Absolute output PNG path."New value: +"Absolute output path for the full-size file; temp file when omitted."
    • removedInput schema / $defs / _ViewportPreviewIn / properties / path / type
      Removed value: -"string"
    • removedInput schema / $defs / _ViewportPreviewIn / required
      Removed value: -[
      -  "path"
      -]
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "rhino_viewport_previewDictOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.6.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint=false annotation: it explains the ghosting-versus-hiding distinction, that selection and visibility are restored afterwards so the document is left unchanged, and that the call returns MCP image content plus a summary. It also flags the 'Bridge only' availability constraint and redirects to rhino_screenshot for image controls — exactly the kind of context annotations cannot convey.

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

Conciseness5/5

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

Front-loaded with the one-line purpose, then tight supporting clauses covering filtering, restoration, and return shape. No padding; every sentence carries decision-relevant information.

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?

For a capture tool with no output schema, it adequately covers the side effects (temporary ghost/hide with restoration), the return payload (image plus summary), and the environment limit. It could have said more about output file versus inline image precedence, but the schema already covers path and include_image.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Adds meaning beyond the schema by framing selection_ids and layers as spotlight targets and by clarifying that ghost_others defaults to ghosting while False hides and restores. The remaining behaviors (zoom, downscale, include_image) are already well documented in the schema, so the description's added value is targeted rather than comprehensive.

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 — 'Capture a viewport preview' — plus a scope qualifier ('restricted to a selection or layer set'), so the agent knows exactly what it produces. It points to rhino_screenshot for image controls, but does not explicitly distinguish itself from rhino_render_viewport or rhino_viewport_image.

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 context is implied: use it when you want to spotlight a subset of objects rather than capture the whole viewport. There is no explicit when-to-use/when-not statement against the named siblings (rhino_screenshot, rhino_render_viewport, rhino_viewport_image), leaving the agent to infer the choice from 'Bridge only' and the filtering scope.

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

Deploy Server

Other Tools