Change module settings
settings_writeChanges the settings of a module of the site: updates only the passed keys and reports which of them changed. A dry run returns the current values of the keys without saving. Access keys of services (captcha, maps) are not taken: they are set in the site control panel.
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": {
"action": "<action>",
"site_id": "<site_id>",
"module": "<module>",
"values": "<values>"
},
"name": "settings_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Operation to run. Each oneOf entry describes one action and lists its parameters. | |
| module | Yes | Module code. site holds the general site settings. | |
| values | Yes | Flat setting keys and new values, e.g. { "name": "News", "entries_per_page": 10, "comments_enabled": true }. A flat key joins the nested path with _ (cover.thumb_width -> cover_thumb_width); list fields such as fields are sent whole. Key names are 1-64 letters, digits or _; field names are described in the module OpenAPI specification (docs_tool). Access keys of services (site captcha keys, shop map keys) are not accepted: the site owner sets them in the site control panel. | |
| confirm | No | Pass true only after the user approves this change. Required in some cases by: settings_update (see the action). | |
| dry_run | No | Return the current values of the requested keys without saving. | |
| site_id | Yes | Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose. |