coze-docs-sync
by LcpMarvel
Mirror the official Coze docs (docs.coze.cn) to local Markdown, preserving the site's exact directory tree. Use whenever the user wants to sync / update / pull / archive Coze (扣子) docs, grab every page of a docs space (cozespace, guides, tutorial, …), or needs an offline copy of the Coze documentation. Works without a browser or login: it calls the same arcosite API the site uses — GetBusStructureById for the nav tree, then /api/open/docs/{business_id}/{_id} for each page's raw Markdown (the "open markdown" button) — and writes a numbered directory mirror. Idempotent: a manifest tracks output so each run reconciles local with live (stale files removed).