watch_simulation
Run NetLogo simulation step by step with pauses for live observation. Use for demos and teaching to watch dynamics unfold in the GUI.
Instructions
Run the simulation SLOWLY so a human can watch it in the GUI window.
Unlike run_simulation (full speed, returns data), this steps go once
per tick with a pause between steps — use it for demos and teaching when
the user wants to see the dynamics unfold live. In headless mode it
works but there's nothing to watch; prefer run_simulation there.
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": {
"ticks": "<ticks>"
},
"name": "watch_simulation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticks | Yes | Steps to run (1-2000). | |
| delay_ms | No | Pause between steps in milliseconds (10-2000, default 150). ticks x delay_ms must stay under 120 seconds — chain calls for longer demos. | |
| go_command | No | The command to run each step (default "go"). | go |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |