update_config
Set Pi-hole settings by specifying an element and value, with a preview unless confirmed. Optionally defer FTL restarts; authentication settings are rejected.
Instructions
Set a Pi-hole setting, e.g. element='dns.upstreams', value=['9.9.9.9'].
Preview (current value) unless confirm=true. Some settings restart FTL; restart=false defers that. Authentication settings (webserver.api.*) are refused.
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": {
"element": "<element>",
"value": "<value>"
},
"name": "update_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| confirm | No | ||
| element | Yes | ||
| restart | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||