adoptConnectionPageFile
Seed an existing committed connection-page file into the Extentos dashboard config. Validates the file, persists it, and if the server config differs, returns needs_confirmation for a guarded overwrite.
Instructions
Adopt the committed extentos.connection-page.json UP to the dashboard/server (file → server) — the deliberate one-time seed of an existing code/file theme into the managed config. Reads the file at projectPath, validates it, and persists it (requires a linked account — run extentos-mcp login). DRIFT-PROTECTED: if the app already has a managed server config that DIFFERS from the file, it returns status: needs_confirmation with both versions and does NOT clobber — re-call with confirm: true to let the file win (or run regenerateConnectionPageFile to let the server win). Android-only for now (iOS is Phase 4). USE to seed an existing committed theme into the dashboard. DON'T USE for routine edits (author via setConnectionPageConfig / dashboard, then regenerateConnectionPageFile).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set true to overwrite an existing, DIFFERING server config with the committed file. Omit on the first call to get the drift check (status: needs_confirmation). | |
| platform | No | Defaults to android. iOS file-sync is Phase 4. | |
| appPackage | Yes | The app's package / bundle id (project_install_id). | |
| projectPath | Yes | Absolute path to the project root (required — reads app/src/main/assets/extentos.connection-page.json). |