create_isolated_world
Create an isolated JavaScript execution context in a frame to separate scripts from page variables while sharing DOM access for debugging or testing.
Instructions
Create an isolated JavaScript execution context in a frame. Scripts in isolated worlds cannot access page JS variables and vice versa, but both can access the DOM.
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>"
},
"name": "create_isolated_world"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frameId | Yes | Frame ID from get_frame_tree | |
| worldName | No | Name for the isolated world | |
| grantUniversalAccess | No | Grant universal access to the isolated world |