add_list
Add a blocklist to Pi-hole by providing its URL, with optional comment and enabled status. Run update_gravity after to apply changes.
Instructions
Add a blocklist by URL.
address: URL of the blocklist (e.g., https://example.com/hosts.txt). comment: optional description. enabled: whether the list is active (default True).
After adding, run update_gravity to apply changes.
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": {
"address": "<address>"
},
"name": "add_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| comment | No | ||
| enabled | No |