osm_set_preference
Stores or updates a single OpenStreetMap user preference value for the authenticated account, using a key and string value up to 255 characters; requires write_prefs OAuth scope.
Instructions
Set one preference (value is a string up to 255 chars; a user may have at most 150). Needs the write_prefs OAuth scope (add it to OSM_SCOPES and the OSM app registration).
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": {
"key": "<key>",
"value": "<value>"
},
"name": "osm_set_preference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | Yes |