evaluate_script
Execute JavaScript code in a Tauri webview window to automate tests and interact with the UI, optionally targeting a specific window by label.
Instructions
Run JS in webview
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": "evaluate_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JS code | |
| window | No | Window label (default: focused window) |