Skip to main content
Glama

rhino_viewport_image

Capture Rhino viewport pixels as inline MCP images without a render engine, with optional full-size PNG saving.

Instructions

Capture the viewport pixels and return them as MCP image content.

    Lightweight alternative to ``rhino_render_to_file`` — no render engine
    is invoked, just a viewport bitmap dump. Use 0 for ``width``/``height``
    to inherit the on-screen viewport size; the inline image is then
    downscaled to ``max_width`` (default 1024, JPEG). Pass ``output_path``
    to also keep the full-size PNG.
    

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

Input Schema

NameRequiredDescriptionDefault
argsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.7.0
    • addedInput schema / $defs / _CaptureViewportIn / 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 / _CaptureViewportIn / 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 / _CaptureViewportIn / 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 / _CaptureViewportIn / 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"
      +}
    • changedInput schema / $defs / _CaptureViewportIn / properties / output_path / description
      Previous value: -"PNG path; when omitted the bridge writes to a temp file and returns its path."New value: +"Full-size PNG path; when omitted no file is written unless ``include_image`` is False (then a temp file path is returned)."
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "rhino_viewport_imageDictOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.6.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and idempotentHint=false, so the description carries real weight here and delivers: no render engine is invoked, it is a raw viewport bitmap dump, the inline image is downscaled, and passing output_path writes a full-size PNG file (explaining the non-read-only hint). It stops short of covering quality/format trade-offs or failure modes, so this is strong but not complete.

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 verb and return type, then the sibling comparison, then the parameter hints. Every sentence carries actionable information and there is no filler or repetition.

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 no output schema, the description correctly explains what comes back (inline image, downscaled, plus optional file). For an 11-field capture tool it covers the essentials, though it is silent on the token-saving include_image=False behavior and JPEG/PNG quality controls that materially change the result.

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 genuine meaning beyond the schema for the parameters agents most often get wrong: 0 for width/height means inherit the on-screen viewport size, max_width downscales only the inline image while the written file keeps full size, and output_path is the way to retain the full-size PNG. It does not explain format, jpeg_quality, include_image, transparent_bg, view_name, or doc_id, leaving several knobs to the schema.

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?

States a specific verb+resource ("Capture the viewport pixels") and the return form (MCP image content), and explicitly distinguishes itself from the sibling rhino_render_to_file as the no-render-engine alternative. An agent can tell exactly what this does and how it differs from the render tools without opening the schema.

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?

Names a concrete alternative (rhino_render_to_file) and the condition that selects this tool instead: "Lightweight alternative... no render engine is invoked." It gives a clear when-to-use context, but does not address other plausible siblings like rhino_render_viewport or rhino_viewport_preview, so the routing story is good but not exhaustive.

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