← Tools Reference

Cloudflare Worker

Cloudflare Worker integration (Developer Tools). Imported from open-connector.

OAuth18 toolshttps://api.cloudflare.com/client/v4
GET
cloudflare_worker_list_accounts
List Cloudflare accounts visible to the current credential.

/accounts

2 parameters
ParamTypeRequiredDescription
pageintegeroptionalThe result page number.
perPageintegeroptionalThe page size.
GET
cloudflare_worker_list_workers
List Workers in a Cloudflare account using the Workers beta API.

/accounts/{accountId}/workers/workers

5 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
pageintegeroptionalThe result page number.
perPageintegeroptionalThe page size.
orderstringoptionalThe sort direction.
orderBystringoptionalThe field to order by.
GET
cloudflare_worker_get_worker
Get one Worker by Worker ID using the Workers beta API.

/accounts/{accountId}/workers/workers/{workerId}

2 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
workerIdstringrequiredThe Cloudflare Worker ID.
POST
cloudflare_worker_create_worker
Create a Cloudflare Worker using the Workers beta API.

/accounts/{accountId}/workers/workers

7 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
namestringrequiredThe Worker name.
logpushbooleanoptionalWhether logpush should be enabled for the Worker.
observabilityobjectoptionalA free-form object accepted by the Cloudflare API.
subdomainobjectoptionalA free-form object accepted by the Cloudflare API.
tagsarrayoptionalTags to set on the Worker.
tailConsumersarrayoptionalTail consumer definitions to set on the Worker.
PUT
cloudflare_worker_update_worker
Replace a Cloudflare Worker using the Workers beta API, setting omitted fields to API defaults.

/accounts/{accountId}/workers/workers/{workerId}

8 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
workerIdstringrequiredThe Cloudflare Worker ID.
namestringrequiredThe Worker name.
logpushbooleanoptionalWhether logpush should be enabled for the Worker.
observabilityobjectoptionalA free-form object accepted by the Cloudflare API.
subdomainobjectoptionalA free-form object accepted by the Cloudflare API.
tagsarrayoptionalTags to set on the Worker.
tailConsumersarrayoptionalTail consumer definitions to set on the Worker.
PATCH
cloudflare_worker_edit_worker
Partially update a Cloudflare Worker using the Workers beta API while leaving omitted fields unchanged.

/accounts/{accountId}/workers/workers/{workerId}

8 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
workerIdstringrequiredThe Cloudflare Worker ID.
namestringoptionalThe Worker name.
logpushbooleanoptionalWhether logpush should be enabled for the Worker.
observabilityobjectoptionalA free-form object accepted by the Cloudflare API.
subdomainobjectoptionalA free-form object accepted by the Cloudflare API.
tagsarrayoptionalTags to set on the Worker.
tailConsumersarrayoptionalTail consumer definitions to set on the Worker.
DELETE
cloudflare_worker_delete_worker
Delete a Cloudflare Worker and its associated resources using the Workers beta API.

/accounts/{accountId}/workers/workers/{workerId}

2 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
workerIdstringrequiredThe Cloudflare Worker ID.
GET
cloudflare_worker_list_worker_scripts
List Worker scripts in a Cloudflare account.

/accounts/{accountId}/workers/scripts

3 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
pageintegeroptionalThe result page number.
perPageintegeroptionalThe page size.
GET
cloudflare_worker_search_worker_scripts
Search Worker scripts in a Cloudflare account by name or script tag.

/accounts/{accountId}/workers/scripts-search

6 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
idstringoptionalSearch by exact Worker script tag.
namestringoptionalSearch by Worker script name.
orderBystringoptionalThe search sort field.
pageintegeroptionalThe result page number.
perPageintegeroptionalThe page size.
PUT
cloudflare_worker_put_worker_script_content
Replace only the content of a Cloudflare Worker script without changing metadata.

/accounts/{accountId}/workers/scripts/{scriptName}/content

5 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
scriptNamestringrequiredThe Cloudflare Worker script name.
mainModuleNamestringoptionalThe multipart part name and file name for the Worker entry module.
contentstringrequiredThe raw Worker script content.
contentTypestringoptionalThe MIME type for the Worker entry module part.
GET
cloudflare_worker_get_worker_script_content
Fetch the raw source content for a Cloudflare Worker script.

/accounts/{accountId}/workers/scripts/{scriptName}/content/v2

2 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
scriptNamestringrequiredThe Cloudflare Worker script name.
GET
cloudflare_worker_get_worker_script_settings
Get Worker metadata and configuration for a Cloudflare Worker script.

/accounts/{accountId}/workers/scripts/{scriptName}/settings

2 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
scriptNamestringrequiredThe Cloudflare Worker script name.
PATCH
cloudflare_worker_patch_worker_script_settings
Patch Worker metadata and configuration for a Cloudflare Worker script.

/accounts/{accountId}/workers/scripts/{scriptName}/settings

13 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
scriptNamestringrequiredThe Cloudflare Worker script name.
bindingsarrayoptionalThe full bindings array to set on the script.
compatibilityDatestringoptionalThe compatibility date.
compatibilityFlagsarrayoptionalThe compatibility flags.
logpushbooleanoptionalWhether logpush should be enabled.
observabilityobjectoptionalA free-form object accepted by the Cloudflare API.
placementModestringoptionalThe placement mode.
tagsarrayoptionalThe script tags.
tailConsumersarrayoptionalTail consumer definitions.
usageModelstringoptionalThe usage model.
limitsobjectoptionalA free-form object accepted by the Cloudflare API.
migrationsobjectoptionalA free-form object accepted by the Cloudflare API.
GET
cloudflare_worker_list_worker_script_secrets
List secret bindings attached to a Cloudflare Worker script.

/accounts/{accountId}/workers/scripts/{scriptName}/secrets

2 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
scriptNamestringrequiredThe Cloudflare Worker script name.
GET
cloudflare_worker_get_worker_script_secret
Get one secret binding attached to a Cloudflare Worker script.

/accounts/{accountId}/workers/scripts/{scriptName}/secrets/{secretName}

3 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
scriptNamestringrequiredThe Cloudflare Worker script name.
secretNamestringrequiredThe Cloudflare Worker secret name.
PUT
cloudflare_worker_put_worker_script_secret
Add or replace a secret_text binding on a Cloudflare Worker script.

/accounts/{accountId}/workers/scripts/{scriptName}/secrets

5 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
scriptNamestringrequiredThe Cloudflare Worker script name.
namestringrequiredThe Cloudflare Worker secret name.
textstringrequiredThe secret text value.
typestringoptionalThe Worker secret binding type.
DELETE
cloudflare_worker_delete_worker_script_secret
Delete a secret binding from a Cloudflare Worker script.

/accounts/{accountId}/workers/scripts/{scriptName}/secrets/{secretName}

3 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
scriptNamestringrequiredThe Cloudflare Worker script name.
secretNamestringrequiredThe Cloudflare Worker secret name.
DELETE
cloudflare_worker_delete_worker_script
Delete a Cloudflare Worker script.

/accounts/{accountId}/workers/scripts/{scriptName}

3 parameters
ParamTypeRequiredDescription
accountIdstringrequiredThe Cloudflare account ID. Custom-credential connections reuse the connected ac…
scriptNamestringrequiredThe Cloudflare Worker script name.
forcebooleanoptionalWhether to force deletion of associated service bindings, Durable Objects, or o…