Skip to main content
Glama

debugger.inspect_object

Read-only

Expand a remote object or scope handle into its properties to inspect browser state, optionally targeting a specific page or browser.

Instructions

Expand a remote object or scope handle into its properties.

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": {
      "object_id": "<object_id>"
    },
    "name": "debugger.inspect_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
object_idYes
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
own_properties_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds that the result is the object's properties, which hints at the return shape. It says nothing about expansion depth, truncation of large objects, or handle expiration, which are the real behavioral risks for a remote-object inspector.

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?

A single front-loaded sentence with no filler. The core action and resource appear in the first few words, and nothing is repeated from the schema or annotations.

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

Completeness5/5

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

Missing.

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 description coverage is only 50%: target_id and browser_id are documented in the schema, but object_id and own_properties_only are not. The description implies object_id must be a remote object or scope handle but never explains own_properties_only or handle formats, so it does not compensate for the coverage gap.

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?

States a specific verb and resource: expand a remote object or scope handle into its properties. An agent knows it is a property-enumeration operation on an object handle. It does not distinguish itself from sibling readers such as dom.inspect or debugger.evaluate_on_frame, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this over dom.inspect or debugger.evaluate_on_frame, nor on prerequisites like the debugger being enabled or paused. The phrase 'object or scope handle' weakly implies the input comes from an evaluation result, but the agent must infer that.

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