edge_evaluate
Executes JavaScript expressions in a browser page to retrieve values, test interactions, or update page state via the Edge DevTools protocol.
Instructions
在页面中执行JavaScript表达式
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": "edge_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | No | 会话ID(可选) | |
| expression | Yes | 要执行的JavaScript表达式 |