add_domain
Add an exact domain or regex to a Pi-hole allow or deny list, with optional group targeting, to control DNS filtering.
Instructions
Add an exact domain or a regex to the allow or deny list. groups are group IDs (default group 0).
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>",
"domain_type": "<domain_type>"
},
"name": "add_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | exact | |
| domain | Yes | ||
| groups | No | ||
| comment | No | ||
| enabled | No | ||
| domain_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||