google_eval
Executes JavaScript in the current page, including async/await, to automate browser tasks and return JSON-serialized results.
Instructions
在当前页面执行 JS(表达式/函数体,支持 await)。返回值走 JSON 序列化。
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": {
"script": "<script>"
},
"name": "google_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| script | Yes | ||
| tab_id | No | ||
| timeout_ms | No |