Skip to main content
Glama

Inspect the live three.js scene

three_inspect

Inspect a running three.js page headless to read scene graph, camera, renderer stats, and GPU memory, then diagnose why objects are invisible or the canvas is black/empty.

Instructions

Open the page headless and read the running scene through three's devtools hook: the scene graph (types, names, positions, geometry, materials, lights), the camera, renderer stats (draw calls, triangles, geometries, textures) and whether GPU memory keeps growing. Diagnoses why objects are not visible: no lights, camera inside or pointed away, behind the camera, beyond far, zero scale, NaN positions, invisible materials, wrong layers, stretched aspect, shadows switched off. Use it when a scene is black, empty or wrong, before guessing.

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": {
      "target": "<target>"
    },
    "name": "three_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNo
waitNo
entryNo
stepsNoInteractions before the screenshot: click (selector or x,y), press (key), drag, wheel, wait, wait-for.
targetYesFolder with the page (index.html), or the http(s) URL of a running dev server.
leak_msNoSample GPU memory this many ms apart (default 1500, 0 = off).
max_nodesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations flag it as non-readOnly, openWorld and non-idempotent, which is consistent with a headless browser that can click/drag per the steps param. The description adds real context: it drives a page headless, samples GPU memory over time, and returns an enumerated set of fault causes. It does not disclose side effects of the interactions, timing/cost of the headless run, or failure modes, so it only partly earns credit beyond the annotations.

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?

Two sentences, front-loaded with the action, then the return contents, then the diagnostic payoff and the trigger. The long enumeration of failure causes ('no lights, camera inside or pointed away...') is dense but each item maps to a real diagnostic, so little is wasted.

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

Completeness3/5

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

With no output schema and seven parameters, the description carries the burden; it does a good job of enumerating what is reported but says nothing about output shape, size limits (max_nodes), navigation setup (root/entry/wait) or how interaction steps affect the run. Enough to decide to call it, not enough to call it precisely without the schema.

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

Parameters2/5

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

Schema coverage is 43%, so the description should compensate, but it explains no parameters directly. 'Whether GPU memory keeps growing' gestures at leak_ms, which the schema already documents; root, entry, wait, max_nodes and the steps interaction vocabulary are left entirely to the schema. An agent must read the schema to know how to scope the inspection.

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?

Specific verb+resource: 'Open the page headless and read the running scene through three's devtools hook', followed by an itemized inventory of what is read (scene graph, camera, renderer stats, GPU memory trend). It distinguishes itself from generic siblings by emphasizing live runtime state rather than static model files, though it never names an alternative tool.

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?

Gives a clear triggering condition: 'Use it when a scene is black, empty or wrong, before guessing.' That is a strong when-to-use signal with a diagnostic framing. It does not say when not to use it or point to siblings like three_leaks or three_perf that overlap on stats.

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