browser_switch_to_frame
Switch browser context to an iframe by id, CSS, XPath, name, tag, class, or link so later Selenium commands act on the frame’s content. Provide locator type and value; timeout is optional.
Instructions
Switches to an iframe element
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": {
"by": "<by>",
"value": "<value>"
},
"name": "browser_switch_to_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | Locator strategy to find element | |
| value | Yes | Value for the locator strategy | |
| timeout | No | Maximum time to wait for element in milliseconds |