Skip to main content
Glama

capture_scene_3d

Capture passive WebGL/canvas scene evidence—checkpoint screenshots, asset inventory, and optional Three/Spector summaries—and download observed assets only with a recorded rights assertion.

Instructions

Scene evidence in two strict operations. Passive capture and download_assets are stable; the adapters remain experimental. request.op:"capture" records a passive evidence pack for a WebGL/canvas page: at each checkpoint it scrolls the selected root, optionally moves the pointer, and saves a viewport screenshot plus a clipped canvas screenshot, with requested/actual scroll, canvas CSS rect/backing size/DPR and elapsed time. It also records a redacted inventory of the page's own responses (URL, MIME, size when declared, resource type, texture/model/HDR/shader/script/font/image guess, and an assetId per row) and passive framework hints (THREE.REVISION, BABYLON.Engine.Version, pc.version, matching script URLs, canvas count) without calling getContext or installing hooks. request.op:"download_assets" downloads up to 32 inventory assets from one capture: downloading is a licensing decision, so rights.basis (owned|licensed|permission) and rights.evidence are mandatory, are recorded with a timestamp in scene-captures//provenance.json, and are not verified by the server - do not download assets you may not use. It only fetches observed inventory URLs that carry no query string, fragment or credentials; there is no crawling, no guessed model or source-map URL and no credential use. Original bytes are written under scene-captures//assets with SHA-256 and an extension validated from MIME/magic (glb, gltf, bin, png, jpg, webp, ktx2, hdr, exr); unknown types are skipped unless allowUnknown saves them as .bin. Caps: 16 MiB per file, 64 MiB per run, 5 manual redirects, 1 request/second, one request at a time, 15s body deadline, 120s overall; every hop is DNS-validated and loopback/private/metadata/reserved addresses are refused. Honest scope: without the opt-in adapters no scene graph, camera, controls, shader source or geometry is recovered - frames show rendered output only. adapters are experimental and opt-in (at most two entries, each once): "three" reads objects reachable from window.THREE, window.scene/camera/renderer and window.app/experience/viewer/world after load (no heap crawl, no hooks, no network) and adds a bounded evidence.three summary (max 500 nodes, depth 20, 8 cameras, 8 lights, 32 materials, 200 texture URLs); "spector" needs the optional spectorjs package, installs its bundle as an init script before load and captures one WebGL frame into a bounded evidence.spector summary (command names/counts, context attributes, analyses, max 8 programs, 16 shaders, 64 KiB per shader source and 256 KiB of shader source total; command arguments, state, results, stack traces and memory are never transferred, and shader source is untrusted page text that is never executed). scene/camera/controls/geometry are marked available only for what three actually returned, shaders only when spector captured at least one source, and neither adapter promises scene recovery. Dossier: emit:"dossier" writes a scene-evidence-v2 dossier instead of the v1 pack, with 2-24 stops via samplePoints (2-10 via checkpoints), a conservative classification (R1-R4) and reasons, runtime/renderer evidence, the reachable Three graph, per-stop keyframes (camera, bounded transforms, SHA-256 of the canvas PNG), a metadata-only asset inventory with license unknown, bounded shader refs, coverage/blind spots and dossier.md. clock is recorded only by dossiers (v1 accepts and ignores clock:"real"), and virtual requires emit:"dossier"; capturePasses is accepted but renderer.passes is unavailable in 1.22 (no fake pass DAG), while captureShaders/maxDrawCalls are accepted for forward compatibility and not captured yet. workers are not inspected, OffscreenCanvas is not inspected; the renderer API is not probed, so renderer.api is usually "unknown" and WebGPU classification is not reached from capture, and a dossier is evidence only: no static or build_project replay. download_assets is unchanged and accepts a v1 or scene-evidence-v2 inventory. Evidence is written to scene-captures//evidence.json plus PNG frames; responses are compact JSON with assetIds and downloadability, paths, hashes, counts, coverage and limitations, never inline image or asset bodies. The capture op requires the optional playwright dependency; download_assets does not.

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": {
      "request": "<request>"
    },
    "name": "capture_scene_3d"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesExactly one scene operation: choose op and its fields

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.22.0
    • changedInput schema / properties / request / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "adapters": {
      -        "description": "Experimental, opt-in adapters (max 2, no duplicates): \"three\" reads objects reachable from window.THREE, window.scene/camera/renderer and window.app/experience/viewer/world after load (no hooks, no heap crawl) and adds a bounded evidence.three summary; \"spector\" needs the optional spectorjs package, installs its bundle as an init script before load and captures one WebGL frame into a bounded evidence.spector summary (command names/counts, context attributes, analyses and capped shader source). No network fetch and no UI",
      -        "items": {
      -          "enum": [
      -            "three",
      -            "spector"
      -          ],
      -          "type": "string"
      -        },
      -        "maxItems": 2,
      -        "type": "array"
      -      },
      -      "assetOrigins": {
      -        "description": "Up to 8 expected asset origins to flag in the inventory; nothing is fetched from them",
      -        "items": {
      -          "format": "uri",
      -          "type": "string"
      -        },
      -        "maxItems": 8,
      -        "type": "array"
      -      },
      -      "canvasSelector": {
      -        "description": "CSS selector of the canvas to track; omit to pick the largest visible <canvas>",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "checkpoints": {
      -        "description": "Up to 10 checkpoints (default 6 evenly spaced ratios from 0 to 1)",
      -        "items": {
      -          "properties": {
      -            "pointer": {
      -              "description": "Normalized viewport coordinates the mouse is moved to before the settle wait",
      -              "properties": {
      -                "x": {
      -                  "maximum": 1,
      -                  "minimum": 0,
      -                  "type": "number"
      -                },
      -                "y": {
      -                  "maximum": 1,
      -                  "minimum": 0,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "x",
      -                "y"
      -              ],
      -              "type": "object"
      -            },
      -            "scrollRatio": {
      -              "description": "Target scroll position as a fraction of the scroll range (0 = top, 1 = bottom)",
      -              "maximum": 1,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "waitMs": {
      -              "description": "Settle wait after scrolling/pointing (default 400, max 2000)",
      -              "maximum": 2000,
      -              "minimum": 0,
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "scrollRatio"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 10,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "includeViewportShots": {
      -        "default": true,
      -        "description": "Save a full-viewport screenshot beside each clipped canvas frame",
      -        "type": "boolean"
      -      },
      -      "op": {
      -        "const": "capture",
      -        "type": "string"
      -      },
      -      "scrollRoot": {
      -        "description": "CSS selector of the element to scroll (default: the window)",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "url": {
      -        "description": "Absolute http(s) page URL to capture",
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "viewport": {
      -        "default": "desktop",
      -        "description": "desktop = 1440x900 (default); mobile = 390x844 iPhone-class with deviceScaleFactor 3, isMobile + hasTouch",
      -        "enum": [
      -          "desktop",
      -          "mobile"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "allowUnknown": {
      -        "default": false,
      -        "description": "Save assets whose MIME and magic bytes identify no known type as .bin instead of skipping them",
      -        "type": "boolean"
      -      },
      -      "assetIds": {
      -        "description": "Up to 32 assetIds from that capture's inventory (resources[].assetId)",
      -        "items": {
      -          "pattern": "^asset-\\d{1,4}$",
      -          "type": "string"
      -        },
      -        "maxItems": 32,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "captureId": {
      -        "description": "captureId returned by a previous op:\"capture\" run",
      -        "pattern": "^scene-[a-z0-9]{1,24}-[0-9a-f]{8}$",
      -        "type": "string"
      -      },
      -      "op": {
      -        "const": "download_assets",
      -        "type": "string"
      -      },
      -      "rights": {
      -        "additionalProperties": false,
      -        "description": "Mandatory licensing assertion; recorded with a timestamp in provenance.json",
      -        "properties": {
      -          "basis": {
      -            "description": "Why you may download: you own it, a licence covers it, or you have permission",
      -            "enum": [
      -              "owned",
      -              "licensed",
      -              "permission"
      -            ],
      -            "type": "string"
      -          },
      -          "evidence": {
      -            "description": "Concrete evidence: licence reference, ownership statement or permission source",
      -            "maxLength": 2000,
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "basis",
      -          "evidence"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "captureId",
      -      "assetIds",
      -      "rights"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "adapters": {
      +        "description": "Experimental, opt-in adapters (max 2, no duplicates): \"three\" reads objects reachable from window.THREE, window.scene/camera/renderer and window.app/experience/viewer/world after load (no hooks, no heap crawl) and adds a bounded evidence.three summary; \"spector\" needs the optional spectorjs package, installs its bundle as an init script before load and captures one WebGL frame into a bounded evidence.spector summary (command names/counts, context attributes, analyses and capped shader source). No network fetch and no UI",
      +        "items": {
      +          "enum": [
      +            "three",
      +            "spector"
      +          ],
      +          "type": "string"
      +        },
      +        "maxItems": 2,
      +        "type": "array"
      +      },
      +      "assetOrigins": {
      +        "description": "Up to 8 expected asset origins to flag in the inventory; nothing is fetched from them",
      +        "items": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "maxItems": 8,
      +        "type": "array"
      +      },
      +      "canvasSelector": {
      +        "description": "CSS selector of the canvas to track; omit to pick the largest visible <canvas>",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "capturePasses": {
      +        "description": "Accepted for forward compatibility; render passes are not captured yet (default false)",
      +        "type": "boolean"
      +      },
      +      "captureShaders": {
      +        "description": "Accepted for forward compatibility; shader programs are not captured yet (default false)",
      +        "type": "boolean"
      +      },
      +      "checkpoints": {
      +        "description": "Up to 10 checkpoints (default 6 evenly spaced ratios from 0 to 1)",
      +        "items": {
      +          "properties": {
      +            "pointer": {
      +              "description": "Normalized viewport coordinates the mouse is moved to before the settle wait",
      +              "properties": {
      +                "x": {
      +                  "maximum": 1,
      +                  "minimum": 0,
      +                  "type": "number"
      +                },
      +                "y": {
      +                  "maximum": 1,
      +                  "minimum": 0,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "x",
      +                "y"
      +              ],
      +              "type": "object"
      +            },
      +            "scrollRatio": {
      +              "description": "Target scroll position as a fraction of the scroll range (0 = top, 1 = bottom)",
      +              "maximum": 1,
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "waitMs": {
      +              "description": "Settle wait after scrolling/pointing (default 400, max 2000)",
      +              "maximum": 2000,
      +              "minimum": 0,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "scrollRatio"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 10,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "clock": {
      +        "description": "Timestamp source recorded only by dossiers: \"real\" (default) or \"virtual\". v1 accepts and ignores \"real\"; \"virtual\" requires emit:\"dossier\" and is rejected for v1 evidence output",
      +        "enum": [
      +          "real",
      +          "virtual"
      +        ],
      +        "type": "string"
      +      },
      +      "emit": {
      +        "description": "Output shape: \"evidence\" (default, v1 pack) or \"dossier\" (scene-evidence-v2 dossier)",
      +        "enum": [
      +          "evidence",
      +          "dossier"
      +        ],
      +        "type": "string"
      +      },
      +      "includeViewportShots": {
      +        "default": true,
      +        "description": "Save a full-viewport screenshot beside each clipped canvas frame",
      +        "type": "boolean"
      +      },
      +      "maxDrawCalls": {
      +        "description": "Accepted for forward compatibility; no pass or shader capture consumes this budget yet (default 500)",
      +        "maximum": 2000,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "op": {
      +        "const": "capture",
      +        "type": "string"
      +      },
      +      "samplePoints": {
      +        "description": "Ordered scroll ratios from 0 to 1 (2-24 for dossier, 2-10 otherwise, strictly increasing) used instead of checkpoints",
      +        "items": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "maxItems": 24,
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "scrollRoot": {
      +        "description": "CSS selector of the element to scroll (default: the window)",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "Absolute http(s) page URL to capture",
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "viewport": {
      +        "default": "desktop",
      +        "description": "desktop = 1440x900 (default); mobile = 390x844 iPhone-class with deviceScaleFactor 3, isMobile + hasTouch",
      +        "enum": [
      +          "desktop",
      +          "mobile"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "allowUnknown": {
      +        "default": false,
      +        "description": "Save assets whose MIME and magic bytes identify no known type as .bin instead of skipping them",
      +        "type": "boolean"
      +      },
      +      "assetIds": {
      +        "description": "Up to 32 assetIds from that capture's inventory (resources[].assetId)",
      +        "items": {
      +          "pattern": "^asset-\\d{1,4}$",
      +          "type": "string"
      +        },
      +        "maxItems": 32,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "captureId": {
      +        "description": "captureId returned by a previous op:\"capture\" run",
      +        "pattern": "^scene-[a-z0-9]{1,24}-[0-9a-f]{8}$",
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "download_assets",
      +        "type": "string"
      +      },
      +      "rights": {
      +        "additionalProperties": false,
      +        "description": "Mandatory licensing assertion; recorded with a timestamp in provenance.json",
      +        "properties": {
      +          "basis": {
      +            "description": "Why you may download: you own it, a licence covers it, or you have permission",
      +            "enum": [
      +              "owned",
      +              "licensed",
      +              "permission"
      +            ],
      +            "type": "string"
      +          },
      +          "evidence": {
      +            "description": "Concrete evidence: licence reference, ownership statement or permission source",
      +            "maxLength": 2000,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "basis",
      +          "evidence"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "captureId",
      +      "assetIds",
      +      "rights"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Addedv1.17.0

TDQS

A3.8/5.0
Behavior5/5

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

With annotations present the bar is lower, yet the description still adds substantial behavioral detail beyond them: provenance.json recording with timestamps, hard caps (16 MiB/file, 64 MiB/run, 5 redirects, 1 req/s, 15s body deadline, 120s overall), DNS validation with loopback/private/metadata refusal, SHA-256 plus MIME/magic extension validation, and an explicit 'honest scope' statement that no scene graph or geometry is recovered without adapters. It also discloses that several accepted parameters are no-ops in 1.22. Nothing here contradicts the annotations (readOnlyHint=false is consistent with writing evidence files to disk).

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

Conciseness2/5

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

The content is delivered as one enormous unbroken paragraph of roughly 600 words with no headings, bullets, or paragraph breaks. The core purpose is buried after a preamble about stable versus experimental components, and caveats are interleaved with operational details so an agent must read the entire block to find the mandatory licensing rule. Much of the information is valuable, but the presentation is not front-loaded and is far longer than it needs to be.

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 complex two-op tool with no output schema, the description is nearly complete: it states where evidence is written (scene-captures/<captureId>/evidence.json plus PNG frames), what the response contains ('compact JSON with assetIds and downloadability, paths, hashes, counts, coverage and limitations, never inline image or asset bodies'), and enumerates known limitations. The density makes some of this hard to extract, but little an agent needs is actually missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description earns extra credit by explaining parameter semantics the schema cannot: that clock is recorded only by dossiers and 'virtual' requires emit:'dossier', that capturePasses/captureShaders/maxDrawCalls are accepted for forward compatibility and not captured yet, and that samplePoints allows 2-24 stops for dossiers versus 2-10 for checkpoints. These are meaningful disambiguations rather than restatements.

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?

The description names two concrete operations with specific verbs and resources: capture 'records a passive evidence pack for a WebGL/canvas page' and download_assets 'downloads up to 32 inventory assets from one capture'. The two ops are clearly distinguished from each other. It does not, however, explicitly contrast against neighboring tools such as capture_pose_3d or capture_live_site, so sibling differentiation is only partial.

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?

There is real conditional guidance: 'downloading is a licensing decision, so rights.basis ... are mandatory', 'do not download assets you may not use', and 'The capture op requires the optional playwright dependency; download_assets does not'. But there is no explicit when-to-use-this-vs-another-tool routing, and the choice between emit:'evidence' and emit:'dossier' is described in terms of outputs rather than in terms of when an agent should pick each.

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