execute_script
Execute custom JavaScript in the browser to inspect, modify, or extract front-end elements and data.
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": {
"script": "<script>"
},
"name": "execute_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | 要执行的JavaScript代码 |