brand_brandcode_sync
Synchronize local .brand/ directory with Brandcode Studio. Pull latest changes from Studio or push local modifications.
Instructions
Sync local .brand/ with a connected Brandcode Studio brand. Two directions: "pull" (default) fetches the latest from Studio, delta-aware via syncToken. "push" uploads local changes to Studio (requires auth via brand_brandcode_auth). Requires a prior brand_brandcode_connect. Use when the user says "sync brand", "push to Studio", "pull latest brand", or "update Studio". Returns sync mode, changed areas, and sync token. NOT for initial connection — use brand_brandcode_connect. NOT for checking status — use brand_brandcode_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | "pull" (default) fetches the latest from Studio. "push" uploads local .brand/ to Studio (requires auth). | pull |
| share_token | No | Share token for protected brands (only needed for pull) |