Run / solve
run_actionLaunches photonic simulation solvers, parameter sweeps, and analysis scripts, and polls job status to manage runs without duplicate starts.
Instructions
Run solvers, sweeps, or analysis scripts.
Confirm with the user before action=run / run_sweep / eme_sweep. If the call blocks until done and the MCP request times out, the solver may still be running in SimWorks — do not issue a second start to "retry" a timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | run: launch simulation (confirm with user first). status: poll FDTD simulation status (use after run / timeout). solve_mode: FDE mode solve. run_setup: structure-group setup script. run_analysis: analysis-group script. eme_propagate: EME propagation. run_sweep: runsweep — all sweeps, or named sweep via object_name (confirm first; long-running). eme_sweep: emesweep — optional eme_sweep_mode (propagation / wavelength / mode convergence); confirm first. resource_info: getresourceinfo — CPU/GPU resource listing. IMPORTANT: an MCP/client timeout on run / run_sweep / eme_sweep does NOT mean the job failed to start — do NOT call the same action again. Poll status when applicable. Only re-run if the user explicitly asks. | |
| object_name | No | Optional target: solve_mode / run_analysis object path; run_sweep sweep name (omit = all sweeps). | |
| eme_sweep_mode | No | For action=eme_sweep only. Omit or 'propagation sweep' for default; 'wavelength sweep'; 'mode convergence sweep'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |