Switch layout
switch_layoutSwitches between run and design layouts, letting you return to design mode before editing after a simulation to prevent failed property changes and use run mode for results.
Instructions
Switch between run and design layout modes.
Workflow: run simulation → (extract results) → switch_layout('design') before further edits → switch_layout('run') only when you need the run/results UI again. Never assume set_property works while still in run layout after a solve.
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": {
"layout": "<layout>"
},
"name": "switch_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | Yes | run: analysis / results layout (after a finished simulation). design: edit geometry, materials, ports, wavelength points, mesh, etc. After simulation completes, call design BEFORE any set_property that changes the project — many edits fail in run layout. design may discard existing results: confirm with the user first if results exist and have not been extracted/saved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |