Observe Javascript Runtime
observe_javascript_runtimePassively attach to a Node/Electron V8 Inspector target to capture script and execution-context metadata without evaluating, pausing, or instrumenting code.
Instructions
Attach passively to one Node/Electron V8 Inspector target by supplying its loopback Inspector endpoint and target ID. The provider rechecks target presence and attachability; a Node discovery file location may remain unresolved. Loaded script locations are validated independently from Debugger.scriptParsed. Captures script and Runtime execution-context metadata. REA never evaluates, pauses, resumes, reads source, or instruments the target; require/import edges, EventEmitter activity, and Electron IPC remain explicit unknowns. Reconcile the result with static Application Graph Evidence using reconcile_javascript_runtime. The selected endpoint exposes every target it serves to this tool.
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_JAVASCRIPT_RUNTIME_TARGETS",
"inspector_endpoint": "http://127.0.0.1:9229"
},
"name": "observe_javascript_runtime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes | Exact CDP target identifier selected from the endpoint's target listing. | |
| runtime_kind | No | ||
| observation_ms | No | ||
| inspector_endpoint | Yes |