stage_break
Arm a break on a specific dispatcher state to record bounded deep snapshots of arguments, return values, or filtered call stacks for focused JavaScript instrumentation debugging.
Instructions
Per-state deep capture for instrumentation(tap_stage_calls=True).
A stage tap only previews the first arguments. When one state has to be
inspected properly, arm a break for that state id: every hit then records a
bounded deep snapshot of the arguments (and optionally the return value and
a filtered call stack) as a tap_stage_break event.
Armed states stay armed for this MCP session until "clear": the live page is
updated at once, and every instrumented script served afterwards carries the
armed set, so states that run while a page loads are captured after a reload.
The limit counts hits per page load. Snapshots read own data properties
only and report getters as {"__t": "accessor"} without calling them; a Proxy
argument still sees its ownKeys/getOwnPropertyDescriptor traps.
Args:
action: "set" arm one state, "clear" disarm (all when p is omitted),
"list" show armed states and their hit counters.
p: Dispatcher state id (the integer from tap_stage events).
capture: "args_only" | "args_ret" (default) | "args_ret_stack".
limit: Maximum recorded hits, 0 means unlimited (default 0).
depth: Snapshot depth for nested objects/arrays (1-5, default 2).
max_items: Maximum keys/elements kept per object/array (1-500, default 50).
Returns:
dict with the states armed for later loads (session_armed), the live
page's armed set and hit counters, and whether the instrumentation
runtime is present on the page.
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": "stage_break"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p | No | ||
| depth | No | ||
| limit | No | ||
| action | No | list | |
| capture | No | args_ret | |
| frame_url | No | ||
| max_items | No | ||
| frame_name | No | ||
| frame_index | No |