Collect page JavaScript
collect_codeEnables debugging and collects script metadata and source code from a Chrome tab session, making page scripts available for inspection.
Instructions
Enable Debugger on an existing Raw session, collect script metadata, and optionally fetch bounded script sources into the local MCP process.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| waitMs | No | ||
| sessionId | Yes | ||
| maxScripts | No | ||
| urlIncludes | No | ||
| includeSource | No | ||
| maxSourceBytes | No | ||
| targetSessionId | No |