execute_in_frame
Run JavaScript inside a specific frame or iframe, selecting it by URL, name, or index, to automate frame-scoped browser tasks.
Instructions
Execute JavaScript in a specific frame/iframe.
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_in_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | ||
| script | Yes | JavaScript to execute | |
| frameUrl | No | Frame URL substring to match | |
| frameName | No | Frame name | |
| frameIndex | No | Frame index from list_frames |