add_domain
Add a domain to Pi-hole's allow or deny list by specifying domain, type (allow/deny), kind (exact/regex), and optional comment.
Instructions
Add a domain to the allow or deny list.
domain: the domain or regex pattern to add. type: "allow" (whitelist) or "deny" (blacklist). kind: "exact" (exact domain match) or "regex" (regular expression). comment: optional description.
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": {
"domain": "<domain>"
},
"name": "add_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| type | No | deny | |
| kind | No | exact | |
| comment | No |