cf_list_zones
List Cloudflare zones visible to your token, filtered by account or name pattern. Returns zones with key details for SOC investigation.
Instructions
List Cloudflare zones (domains) the token can see.
Args:
account_id: optional account-ID filter. Defaults to CF_ACCOUNT_ID env
var when set, otherwise lists across all accessible accounts.
name_pattern: optional glob filter applied client-side (e.g.
"*.example.*"). Cloudflare's API does not support glob, so this
is a post-filter on the API response.
max_pages: pagination cap (default 5 × per_page 50 = 250 zones).
Calls: GET /zones (auto-paginated).
Returns: envelope with `data = {zones: [...], count, ...}`.
**Compact projection** — each zone is reduced to id, name, status, paused,
type, created_on, modified_on, activated_on, development_mode,
account_id, account_name, plan_name. Full zone config (name_servers,
name_servers_history, owner, permissions, meta, etc.) is dropped to keep
multi-page walks under the 20K-token response ceiling. For full config,
use `cf_get_zone(zone_id)`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | ||
| name_pattern | No | ||
| max_pages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |