sim_restart
Restart the simulation from time 0 to reset the simulation state for debugging or testing purposes.
Instructions
Restart the simulation from time 0.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/xcelium_mcp/server.py:107-112 (handler)The tool `sim_restart` is defined as an async function in `src/xcelium_mcp/server.py` and decorated with `@mcp.tool()`, which registers it as an MCP tool. The handler logic calls the `restart` command through the `TclBridge`.
@mcp.tool() async def sim_restart() -> str: """Restart the simulation from time 0.""" bridge = _get_bridge() await bridge.execute("restart") return "Simulation restarted to time 0."