browser_execute_in_frame
Execute JavaScript code within a targeted iframe using its frame ID, HTML id, or name to inspect or modify embedded page content.
Instructions
Execute JavaScript code inside a specific 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": {
"frameId": "<frameId>",
"code": "<code>"
},
"name": "browser_execute_in_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript expression to evaluate in the frame | |
| frameId | Yes | Target frame ID, HTML id attribute, or name |