brand_brandcode_connect
Synchronize a local .brand/ directory with Brandcode Studio: pull a hosted brand by URL or save local changes to Studio after authentication.
Instructions
Connect a local .brand/ to Brandcode Studio. Two modes: "pull" (default) downloads an existing hosted brand by URL/slug. "save" uploads the local .brand/ to Studio (requires prior auth via brand_brandcode_auth). Use when the user says "connect to Brandcode", "pull from Studio", "save brand to Studio", or "upload my brand". Returns brand name, slug, sync token, and connection details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "pull" connects to an existing hosted brand and downloads it. "save" uploads the local .brand/ to Studio (requires auth via brand_brandcode_auth). | pull |
| url | No | Brandcode Studio brand URL or slug. Required for mode="pull". Examples: "https://brandcode.studio/start/brands/pendium", "pendium" | |
| share_token | No | Share token for protected brands (x-brand-share-token) |