cloudflare_api
Call Cloudflare API directly with method, path, and body. Auto-injects token and account_id; {account_id} placeholders are replaced automatically.
Instructions
Cloudflare REST API 通用网关:用 method/path/body 直接调用 Cloudflare API(自动注入 token/account_id)。path 里可用 {account_id} 占位符(自动替换)。常用路径见工作区 CF_API.md。示例:GET /zones、GET /accounts/{account_id}/workers/scripts、GET /accounts/{account_id}/kv/namespaces、POST /zones。⚠️ 全权限直通,删除类操作需用户明确授权。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | 请求体(POST/PATCH/PUT 时传),如 {"type":"full"} | |
| path | Yes | API 路径,如 /zones、/accounts/{account_id}/workers/scripts、/accounts/{account_id}/dns | |
| method | No | HTTP 方法:GET/POST/PATCH/PUT/DELETE,默认 GET |