Skip to main content
Glama

debugger.list_scripts

Read-only

Lists scripts parsed by the debugger, including inline and eval'd code, with script IDs to locate and inspect specific code on a page.

Instructions

Scripts the debugger has parsed, including inline and eval'd code, with script ids.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "debugger.list_scripts"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/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 the safety profile is covered. The description adds useful behavioral detail by stating that inline and eval'd code are included and that script ids are returned, but it says nothing about ordering, pagination, or result completeness when filters are applied.

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 definition is a single efficient sentence with the core resource and scope front-loaded. It is appropriately sized, though it is more a terse fragment than a structured explanation.

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?

For a read-only list tool with four parameters and no output schema, the description gives an adequate high-level picture and notes the returned script ids. However, it leaves the two undocumented filter parameters unexplained and does not describe how filtering affects the result set, leaving meaningful gaps.

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?

The input schema documents target_id and browser_id but leaves url_contains and include_anonymous entirely undescribed, giving 50% coverage. The description provides no explanation of these filters or of how target_id and browser_id interact with the active-page default, so it does not compensate for the 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?

The description names a specific verb and resource: listing scripts the debugger has parsed, and clarifies the scope includes inline and eval'd code. This distinguishes it somewhat from the JS-domain sibling, but it does not explicitly contrast with js.list_scripts or explain the difference in behavior.

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 explicit when-to-use guidance, no mention of prerequisites, and no named alternative such as js.list_scripts. The agent must infer usage from the debugger domain and the parameter names alone.

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