Skip to main content
Glama

Look at and drive the live page

three_page

Inspect and interact with an active three.js page without reloading: evaluate JavaScript, simulate clicks/drags, wait for frames, capture screenshots, and read console or scene errors.

Instructions

Work with the page three_session started, without reloading it. op eval runs JS in the page and returns the value as compact JSON (vectors as [x,y,z], colours as hex, objects as type/name/position), with scene, camera, renderer (the last ones rendered), $('name') (getObjectByName), $$('Type') and THREE (when global) in scope; a single expression is returned, statements need return. op steps runs interactions (click, press, drag, wheel, wait, wait-for); op frames waits n animation frames; op until waits until a JS expression is true; op screenshot returns the picture; op inspect reads the scene graph and why objects are not visible; op reload loads edited files (state starts over); op errors lists the errors so far. Every answer ends with the new console and page errors.

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": {
      "op": "<op>"
    },
    "name": "three_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNoframes to wait
jsNofor eval and until, e.g. $('player').position or scene.children.length
opYes
nameNo
stepsNoInteractions before the screenshot: click (selector or x,y), press (key), drag, wheel, wait, wait-for.
timeoutNoms for until (default 5000)
max_nodesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare openWorldHint, non-idempotent and non-destructive behavior, but the description adds real context beyond them: the page is not reloaded on entry, 'op reload ... (state starts over)' warns that state is lost, and 'Every answer ends with the new console and page errors' discloses the appended diagnostic output. It does not state permissions or what a screenshot/inspect payload looks like, keeping it short of a 5.

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?

The text is dense but nearly every clause earns its place, covering eight operations without filler. The main weakness is structural: it is one long run-on sentence with semicolons rather than a scannable per-op list, which makes the op enumeration harder to parse 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 an eight-op, seven-parameter tool with no output schema, the description covers nearly all functional surface and even notes the trailing console/error output. The gaps are the undocumented `name` and `max_nodes` parameters and the absence of any detail on what screenshot or inspect returns.

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 coverage is 57%, and the description carries a lot of the load: it explains the JS scope (`scene`, `camera`, `renderer`, `$`, `$$`, `THREE`), the single-expression/`return` rule, the interaction types, and that `n` is frames to wait. It leaves `name` and `max_nodes` entirely unexplained, and `timeout` is only implied by 'until waits until a JS expression is true'.

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?

Opens with a specific verb and resource ('Work with the page three_session started') and then enumerates all eight operations by name (eval, steps, frames, until, screenshot, inspect, reload, errors). It explicitly ties itself to the sibling three_session, so an agent can distinguish it from the other three_* 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?

Each op is given a concrete job ('op inspect reads the scene graph and why objects are not visible', 'op reload loads edited files'), which tells the agent which op to pick for a given intent. However, there is no explicit when-not guidance or comparison against sibling tools such as three_inspect or three_play for overlapping inspection tasks.

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