set_parameter
Set the value of a NetLogo global variable, slider, or switch to control model parameters.
Instructions
Set a NetLogo global variable / slider / switch value.
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": {
"name": "<name>",
"value": "<value>"
},
"name": "set_parameter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the global variable (e.g. 'initial-number-sheep'). Must be a valid NetLogo identifier — letters, digits, and any of ``- _ . ? !`` only. Names with whitespace or shell/NetLogo meta-characters are rejected to prevent command injection. | |
| value | Yes | The value to set. Numbers, strings, booleans accepted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |