Change Thing State
change_thing_stateUpdate a thing's state in Donetick by setting a new value or incrementing/decrementing the current numeric state.
Instructions
Change a thing's state.
Provide set_value to set it directly, or op as a signed integer to add to a numeric state.
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": {
"thing_id": "<thing_id>"
},
"name": "change_thing_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | Signed integer to add to the current numeric state (e.g. '-1') | |
| thing_id | Yes | The ID of the thing | |
| set_value | No | New state value to set |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |