runtime_evaluate
Execute JavaScript code in the page context to automate form filling, trigger login events, or perform dynamic analysis for reverse engineering.
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": "runtime_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | 要执行的JS代码 | |
| awaitPromise | No | 是否等待Promise完成,默认false |