Evaluate
browser_evaluateExecute JavaScript in a page context to return values and extract text or attributes for read-only inspection and automation.
Instructions
在页面里执行一段 JS 并返回结果(只读用得多:取文本、取属性)。默认 ego 引擎。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expression": "<expression>"
},
"name": "browser_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | 浏览器引擎:ego(默认,真实浏览器 + 登录态)/ edge(Playwright/Edge,需另装 playwright) | ego |
| expression | Yes | 在页面上下文里求值的表达式或函数体 |