Set server settings
pz_set_settingsUpdate individual settings such as PublicName, MaxPlayers, or PVP in the Project Zomboid config, preserving comments and ordering while appending missing keys.
Instructions
Update individual keys in the main .ini while preserving comments, ordering and every other option; missing keys are appended. Call this for any change to server settings such as PublicName, Password, MaxPlayers or PVP.
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": {
"settings": "<settings>"
},
"name": "pz_set_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| settings | Yes | Key/value pairs to set, e.g. {"PublicName": "Retrox", "MaxPlayers": 16, "PVP": false}. Keys are case-sensitive and must match PZ's ini names. | |
| service_id | No | Nitrado service id. Defaults to NITRADO_SERVICE_ID when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |