list_scripts
List JavaScript scripts loaded in the selected debugger context, including external, inline, and eval scripts. Filter by URL substring and paginate results.
Instructions
Discovers JavaScript currently loaded in the selected debugger context—the main frame by default, or the frame chosen with select_frame. Use select_frame first for iframe-specific source/debugger work. Includes external, inline, and eval scripts in that context; if you already know a function name, endpoint, or code literal, use search_in_sources instead. Each result includes a context-scoped scriptId that expires on reload, navigation, or debugger target change and, for external scripts, a URL that is the preferred selector for get_script_source or save_script_source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Case-insensitive URL substring used to narrow external scripts. It does not search source text or match unnamed inline/eval scripts; use search_in_sources for code-content queries. | |
| pageIdx | No | Page number (0-based). Defaults to 0. | |
| pageSize | No | Maximum items per page. Defaults to 20. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool completed successfully. | |
| data | No | ||
| tool | Yes | Stable MCP tool name. | |
| error | No | ||
| summary | Yes | Concise human-readable outcome. |