cloudflare_search_api
Search Cloudflare API endpoints by running a JavaScript function against the resolved OpenAPI spec and return matching paths and summaries for a chosen account.
Instructions
Find Cloudflare API endpoints. code is a JavaScript async arrow function that searches spec.paths (the OpenAPI description, $refs resolved) and returns what it finds, e.g. the paths tagged "workers" with their summaries.
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": {
"account": "<account>",
"code": "<code>"
},
"name": "cloudflare_search_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | async () => { ...search spec.paths... } | |
| account | Yes | Which connected account (alias) to act as, e.g. "business". |