desktop_cdp_eval
Executes JavaScript in the current browser page and returns the result as JSON, enabling agents to retrieve page data that UI inspection cannot access.
Instructions
在当前页面执行 JavaScript 并返回结果(JSON 化)。 这是 CDP 相对 UIA 的杀手锏:拿不到的信息可以直接问页面要。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | 会话 id,省略则用当前会话 | |
| expression | Yes | JS 表达式或 IIFE,如 document.title | |
| awaitPromise | No | 表达式返回 Promise 时是否等待 |