desktop_browser_launch
Launches a CDP-debuggable Edge or Chrome instance with an isolated profile and localhost-only debugging port, returning the port for automation without touching your active browser profile.
Instructions
启动一个"可被 CDP 调试"的浏览器实例(Edge / Chrome)。 带 --remote-debugging-port 和一次性的 --user-data-dir(不传时每个实例独立目录, 关闭时自动删除),不会抢你正在用的浏览器 profile。 端口只监听 127.0.0.1。返回端口号,之后用 desktop_cdp_open 连它。 headless=true 时不弹窗口,适合自动化;headless=false 时窗口会真的跳出来。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | 初始打开的页面,默认 about:blank | |
| waitMs | No | 等待 CDP 端点就绪的毫秒,默认 20000 | |
| headless | No | 是否无头,默认 false(会显示窗口) | |
| browserPath | No | 显式指定浏览器 exe 路径,默认自动找 Edge/Chrome | |
| userDataDir | No | 显式指定 profile 目录(需要保留登录态时用)。不传则用一次性目录 |