Set preferences
set_preferencesStore up to 20 of the user's toggle, text, number, choice or time_rule preferences at once. Only call this when the user has stated the preference clearly. Values are validated against each key's type. Only existing keys can be set; create a new one with define_preference.
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": {
"preferences": "<preferences>",
"reason": "<reason>"
},
"name": "set_preferences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | one sentence on why these values are being set, usually what the user said | |
| preferences | Yes | preference keys mapped to their new values, such as {"profile.timezone": "Europe/London", "format.time_24h": true} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pending | No | changes waiting for the user's approval; they take effect only if approved | |
| updated | Yes | the normalized values that were stored |