run_simulation
Execute NetLogo simulations for a specified number of ticks, collecting data from reporters each tick, with options for summary statistics or decimated output to manage context limits.
Instructions
Run the simulation for N ticks and collect reporter data each tick.
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>",
"reporters": "<reporters>"
},
"name": "run_simulation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticks | Yes | Number of ticks to run (1-10000). | |
| max_rows | No | If > 0 and the run produces more rows than this, the output is decimated by evenly-spaced sampling (always keeps the final tick). Use to keep a long run's output below the client's context budget without losing the shape. | |
| reporters | Yes | List of NetLogo reporter expressions to collect each tick. | |
| go_command | No | The go command to use (default: "go"). | go |
| summary_only | No | If True, return only min/mean/max/std/final per reporter — much smaller than the full per-tick table. Use this when you don't need the time series, e.g. parameter sweeps that only care about the final state. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |