@slates-integrations/cloudflare-workers
v0.2.0-rc.6
Published
Manage Cloudflare Workers serverless scripts, versions, and deployments on Cloudflare's global edge network. Create, list, update, download, and delete Worker scripts. Manage versions and deployments independently, supporting gradual rollouts. Configure b
Readme
Cloudflare Workers
Manage Cloudflare Workers serverless scripts, versions, and deployments on Cloudflare's global edge network. Create, list, update, download, and delete Worker scripts. Manage versions and deployments independently, supporting gradual rollouts. Configure bindings to external resources like KV, D1, R2, Durable Objects, Queues, and environment variables. Add, list, and delete encrypted secrets. Set up and update cron triggers for scheduled execution. Manage custom domains, routes, and workers.dev subdomains. Stream real-time logs via Tail, configure Logpush for log forwarding, and query observability telemetry data. Supports Workers for Platforms (dispatch namespaces) for multi-tenant use cases.
Tools
Delete Worker
Delete a Worker script from the account. Optionally force-deletes associated resources like bindings and durable objects.
Get Worker Details
Retrieve detailed metadata and settings for a specific Worker script including bindings, compatibility settings, observability config, and placement.
Get Worker Version
Retrieve detailed information about a specific Worker version, including its bindings, runtime configuration, and startup time.
List Workers
List all Worker scripts in the account. Returns metadata for each script including handlers, compatibility settings, and deployment info.
Upload Worker Module
Create or replace a Worker script by uploading code and multipart metadata. Supports bindings, compatibility settings, observability, placement, Logpush, and version annotations.
Download Worker Script Content
Download a Worker's script content as a Slate attachment without exposing full file content in tool output fields.
Update Worker Script Content
Replace a Worker's script content without changing its existing configuration or metadata.
List Worker Versions
List all versions of a Worker script. Optionally filter to only deployable versions. Versions are created separately from deployments—a version can exist without being deployed.
Upload Worker Version
Upload a new deployable Worker version without deploying it. Use Deploy Worker Version afterwards to route traffic to the returned version ID.
List Deployments
List all deployments for a Worker script. The first deployment in the list is the active one serving traffic. Each deployment shows the version(s) and their traffic percentages for gradual rollouts.
Get Deployment
Retrieve a specific Worker deployment, including its traffic strategy and version split.
Delete Deployment
Delete a specific Worker deployment from a script.
List Worker Domains
List all custom domains attached to Workers in the account. Each domain maps a hostname on a Cloudflare zone to a specific Worker.
Get Worker Domain
Retrieve a specific custom domain attachment for a Worker.
List Worker Routes
List all Worker routes for a Cloudflare zone. Routes map URL patterns to Worker scripts.
Get Cron Triggers
Retrieve all cron trigger schedules configured for a Worker. Cron Triggers run the Worker's scheduled() handler on a recurring schedule (UTC).
List Secrets
List all secret bindings on a Worker script. Returns secret names and types only — secret values are never exposed after creation.
Get Secret Metadata
Retrieve metadata for a secret binding on a Worker script. Secret values are not exposed in tool output.
Get Worker Settings
Retrieve the full settings and bindings configuration for a Worker script, including environment variables, KV namespaces, R2 buckets, D1 databases, Queues, Durable Objects, and other bindings.
Get Workers Subdomain
Retrieve the account's workers.dev subdomain and optionally check whether a specific Worker is enabled on it.
Start Tail Session
Start a real-time log tail for a Worker script. Returns a WebSocket URL that streams logs and exceptions from the Worker as they occur. Useful for live debugging.
Query Observability
Run an observability query against Workers telemetry data. Query logs, metrics, and analytics across all Workers in the account within a time range.
License
This integration is licensed under the FSL-1.1.
