Set a counter
set_counterAssign an exact numeric value to a counter variable, creating it if it doesn't exist. Ideal for resetting counters like deaths to zero.
Instructions
Set a counter variable to an exact numeric value, e.g. reset a death counter to 0. Creates the counter if it doesn't exist yet.
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_counter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The counter variable name, e.g. "deaths". | |
| value | Yes | The exact value to set it to. |