Observe Web Execution
observe_web_executionArms a selected CDP page for a finite coverage window, resetting counters and returning precise UTF-16 execution ranges plus hashed script text and request initiators for externally driven activity.
Instructions
Instrument one selected CDP page for a finite, externally driven precise coverage window. Resets execution counters and prevents optimized execution until stopped. Returns complete nested UTF-16 ranges/counts, independently hashed script text and request initiator associations by session script ID. Does not navigate, click, evaluate selected code or close the externally owned page. Navigation ends document-scoped collection; workers and UI causality remain outside this claim. Emits an actual armed progress notification before external actions.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target_id": "TARGET_ID_FROM_LIST_BROWSER_TARGETS",
"cdp_endpoint": "http://127.0.0.1:9222",
"observation_ms": 10000
},
"name": "observe_web_execution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes | Exact CDP target identifier selected from the endpoint's target listing. | |
| cdp_endpoint | Yes | Literal loopback Chrome DevTools Protocol endpoint. | |
| observation_ms | No | ||
| allowed_origins | No |