claim_cloudflare_preview
Claim or create a Cloudflare Pages or Workers project on this company's standing deploy token so the operator-agent does not need a founder dashboard click. Idempotent: existing projects are left in place (Workers scripts are never overwritten). Optional GitHub source (Pages) and hostname (CNAME). Use when an operator-agent needs a Cloudflare preview or hosting bind. First Connect is request_connector Cloudflare if get_cloudflare_hosting_status says not connected.
Routing: Claim Cloudflare Pages/Workers preview or bind hosting DNS → this tool (standing grant). Connect token → request_connector Cloudflare. Status → get_cloudflare_hosting_status. Not invoke_integration.
[write-tier — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a just-once approval re-asks next time.]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | pages (default) or workers. | |
| hostname | No | Optional DNS name to CNAME at the Pages/Workers host (must be a zone on this Cloudflare account). | |
| companyId | Yes | FreedomOS company id to act within (you must be a member). Required for company-scoped tools. | |
| github_repo | No | Optional GitHub repo name to attach as Pages source. | |
| github_owner | No | Optional GitHub org/user to attach as Pages source (requires Cloudflare GitHub app on that account). | |
| project_name | Yes | Cloudflare project/script slug (lowercase, numbers, hyphens). | |
| production_branch | No | Git production branch for Pages (default main). |