Skip to main content
Glama

Render a 3D canvas scene and see it from multiple angles

render_scene

Render a 3D HTML canvas scene and capture screenshots from multiple camera angles to inspect and validate the visual output.

Instructions

Renders an HTML file containing a 3D scene (Three.js, raw WebGL or Canvas 2D) in a headless browser and returns screenshots from multiple camera angles, so you can SEE what you built. ALWAYS call this after writing or editing scene HTML, look hard at every angle, fix problems and render again. Multi-angle needs window.__scene (Three.js) or window.__setView (other tech) — call get_guidelines topic 'workflow' first if unsure. Use distance_factor < 1 in a custom view for close-ups of textures/details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path to a self-contained .html file that renders a 3D scene into a <canvas>
viewsNoCamera views to capture (requires window.__scene or window.__setView; see get_guidelines topic 'workflow'). Ignored for 2D scenes and when animation_frames > 1.
animation_framesNoCapture N sequential frames of an animated scene instead of multiple camera views
frame_interval_msNoDelay between animation frame captures
formatNojpeg
widthNoViewport width in px
heightNoViewport height in px
settle_framesNorequestAnimationFrame frames to wait after load before capturing
extra_wait_msNoExtra fixed wait after settling, for slow async scenes
timeout_msNoHard cap for the whole operation
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that rendering happens in a headless browser and returns screenshots. It mentions the need for specific global objects for multi-angle views. However, it does not fully disclose side effects (e.g., whether the file is modified), error handling, rate limits, or authentication needs, which would be expected with no annotations.

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?

The description is concise at 6 sentences, front-loaded with the main action and purpose. It uses emphasis ('ALWAYS') to highlight critical guidance. Every sentence adds value with no redundant or irrelevant content.

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?

Given the tool's complexity (10 parameters, no output schema, no annotations), the description is mostly complete. It covers workflow, prerequisites, and specific usage tips. However, it lacks details about the return format of screenshots (e.g., base64, file paths) and does not address error conditions, which reduces completeness.

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 high (90%), so baseline is 3. The description adds value by explaining the multi-angle mechanism and hinting at distance_factor usage for close-ups. However, it does not compensate for the undocumented format parameter (no description in schema). Overall, it adds moderate context beyond 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?

The description clearly states the tool renders an HTML file with a 3D canvas and returns screenshots from multiple angles. It uses specific verbs ('renders', 'returns') and the resource (3D scene HTML). It distinguishes from siblings like get_guidelines (guidance), inspect_scene (inspect), interact_scene (interact), and validate_scene (validate) by focusing on rendering and image capture.

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?

The description explicitly advises when to use: 'ALWAYS call this after writing or editing scene HTML'. It mentions prerequisites for multi-angle views (window.__scene or window.__setView) and suggests calling get_guidelines topic 'workflow' for further guidance. It does not provide explicit when-not-to-use scenarios but gives clear context for when it's applicable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eduardosm123/mcp-3d-llm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server