run_cdp
Executes Chrome DevTools Protocol commands on the current tab for browser automation, eliminating the need to attach to targets manually. Supports methods like Page.navigate and Runtime.evaluate.
Instructions
对当前 tab 透传 Chrome DevTools Protocol 命令。method 如 'Page.captureScreenshot',params 为参数对象。命令始终作用于当前 tab,无需 attachToTarget(Target.createTarget/activateTarget 会自动切换操作 tab)。详见 get_manual。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | CDP 方法名,如 'Page.navigate'、'Runtime.evaluate' | |
| params | No | CDP 命令参数对象(可选) |