list_entries
Add, remove, turn on, or turn off domains in a NextDNS profile's allowlist or denylist; returns change ID so updates can be undone.
Instructions
Add, remove, turn on or turn off domains in a profile's denylist (always blocked) or allowlist (never blocked); a domain also covers its subdomains. Use it for single domains; use parental_control for whole apps or categories, privacy for blocklists, and check_domain first to see why a domain is blocked. Changes the profile within seconds and records it, so undo can put it back. Returns what was done, what was skipped (already there, not there) or failed (not a domain), and the change ID.
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": {
"list_name": "<list_name>",
"action": "<action>",
"domains": "<domains>"
},
"name": "list_entries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | add, remove, on (turn an entry back on) or off (keep it, but not in use). | |
| domains | Yes | Up to 100 domains, like example.com. A domain also covers its subdomains; links are cut down to the domain. | |
| profile | No | The profile's ID or name. Leave empty for the only profile, or the default one. | |
| list_name | Yes | Which list: denylist (always blocked) or allowlist (never blocked). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |