Purge Cache Tool
purge_cache_toolPurge cached content from Cloudflare's edge by files, tags, hosts, or prefixes, or purge everything to clear a zone.
Instructions
Purge cached content from Cloudflare's edge.
Use one of: purge_everything, files, tags, hosts, or prefixes. Every method works on every plan, Free included. Prefer hosts, prefixes, tags or files over purge_everything when only part of a zone is stale.
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": {
"zone_id": "<zone_id>"
},
"name": "purge_cache_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Cache tags to purge | |
| files | No | URLs to purge (max 30) | |
| hosts | No | Hostnames to purge | |
| zone_id | Yes | Zone ID (32-character hex string) | |
| prefixes | No | URL prefixes to purge | |
| purge_everything | No | Purge all cached content |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||