[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FKESDGGRACBWYQGKYXANE4":3,"skill-same:01M6FKESDGGRACBWYQGKYXANE4":47},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M6FKESDGGRACBWYQGKYXANE4","cobrowse-sdk",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fcobrowse-sdk\u002FSKILL.md",[],[18,19],"sdk","cobrowse sdk","2026-11-10 10:12:30",false,"# Zoom Cobrowse SDK - Web Development\n\nExpert guidance for implementing collaborative browsing with the Zoom Cobrowse SDK. This SDK enables support agents to view and interact with a customer's browser session in real-time, with privacy controls and annotation tools.\n\n**Official Documentation**: https:\u002F\u002Fdevelopers.zoom.us\u002Fdocs\u002Fcobrowse-sdk\u002F  \n**API Reference**: https:\u002F\u002Fmarketplacefront.zoom.us\u002Fsdk\u002Fcobrowse\u002F  \n**Quickstart Repository**: https:\u002F\u002Fgithub.com\u002Fzoom\u002FCobrowseSDK-Quickstart  \n**Auth Endpoint Sample**: https:\u002F\u002Fgithub.com\u002Fzoom\u002Fcobrowsesdk-auth-endpoint-sample\n\n## Quick Links\n\n**New to Cobrowse SDK? Follow this path:**\n\n1. **[Get Started Guide](get-started.md)** - Complete setup from credentials to first session\n2. **[Session Lifecycle](concepts\u002Fsession-lifecycle.md)** - Understanding customer and agent flows\n3. **[JWT Authentication](concepts\u002Fjwt-authentication.md)** - Token generation and security\n4. **[Customer Integration](examples\u002Fcustomer-integration.md)** - Integrate SDK into your website\n5. **[Agent Integration](examples\u002Fagent-integration.md)** - Set up agent portal (iframe or npm)\n\n**Core Concepts:**\n- **[Two Roles Pattern](concepts\u002Ftwo-roles-pattern.md)** - Customer vs Agent architecture\n- **[Session Lifecycle](concepts\u002Fsession-lifecycle.md)** - PIN generation, connection, reconnection\n- **[JWT Authentication](concepts\u002Fjwt-authentication.md)** - SDK Key vs API Key, role_type, claims\n- **[Distribution Methods](concepts\u002Fdistribution-methods.md)** - CDN vs npm (BYOP)\n\n**Features:**\n- **[Annotation Tools](examples\u002Fannotations.md)** - Drawing, highlighting, pointer tools\n- **[Privacy Masking](examples\u002Fprivacy-masking.md)** - Hide sensitive fields from agents\n- **[Remote Assist](examples\u002Fremote-assist.md)** - Agent can scroll customer's page\n- **[Multi-Tab Persistence](examples\u002Fmulti-tab-persistence.md)** - Session continues across tabs\n- **[BYOP Mode](examples\u002Fbyop-custom-pin.md)** - Bring Your Own PIN with npm integration\n\n**Troubleshooting:**\n- **[Common Issues](troubleshooting\u002Fcommon-issues.md)** - Quick diagnostics and solutions\n- **[Error Codes](troubleshooting\u002Ferror-codes.md)** - Complete error reference\n- **[CORS and CSP](troubleshooting\u002Fcors-csp.md)** - Cross-origin and security policy configuration\n- **[Browser Compatibility](troubleshooting\u002Fbrowser-compatibility.md)** - Supported browsers and limitations\n- **[5-Minute Runbook](RUNBOOK.md)** - Fast preflight checks before deep debugging\n\n**Reference:**\n- **[API Reference](references\u002Fapi-reference.md)** - Complete SDK methods and events\n- **[Settings Reference](references\u002Fsettings-reference.md)** - All initialization settings\n- **Integrated Index** - see the section below in this file\n\n## SDK Overview\n\nThe Zoom Cobrowse SDK is a JavaScript library that provides:\n\n- **Real-Time Co-Browsing**: Agent sees customer's browser activity live\n- **PIN-Based Sessions**: Secure 6-digit PIN for customer-to-agent connection\n- **Annotation Tools**: Drawing, highlighting, vanishing pen, rectangle, color picker\n- **Privacy Masking**: CSS selector-based masking of sensitive form fields\n- **Remote Assist**: Agent can scroll customer's page (with consent)\n- **Multi-Tab Persistence**: Session continues when customer opens new tabs\n- **Auto-Reconnection**: Session recovers from page refresh (2-minute window)\n- **Session Events**: Real-time events for session state changes\n- **HTTPS Required**: Secure connections (HTTP only works on loopback\u002Flocal development hosts)\n- **No Plugins**: Pure JavaScript, no browser extensions needed\n\n## Two Roles Architecture\n\nCobrowse has **two distinct roles**, each with different integration patterns:\n\n| Role | role_type | Integration | JWT Required | Purpose |\n|------|-----------|-------------|--------------|---------|\n| **Customer** | 1 | Website integration (CDN or npm) | Yes | User who shares their browser session |\n| **Agent** | 2 | Iframe (CDN) or npm (BYOP only) | Yes | Support staff who views\u002Fassists customer |\n\n**Key Insight**: Customer and agent use **different integration methods** but the same JWT authentication pattern.\n\n## Read This First (Critical)\n\nFor customer\u002Fagent demos, treat the PIN from customer SDK event `pincode_updated` as the only user-facing PIN.\n\n- Show one clearly labeled value in UI (for example, **Support PIN**).\n- Use that same PIN for agent join.\n- Do not expose provisional\u002Fdebug PINs from backend pre-start records to users.\n\nIf these rules are ignored, agent desk often fails with `Pincode is not found` \u002F code `30308`.\n\n### Typical Production Flow (Most Common)\n\nThis is the flow most teams implement first, and what users usually expect in demos:\n\n1. **Customer starts session first** (`role_type=1`)\n   - Backend creates\u002Frecords session\n   - Backend returns customer JWT\n   - Customer SDK starts and receives a PIN\n2. **Agent joins second** (`role_type=2`)\n   - Agent enters customer PIN\n   - Backend validates PIN and session state\n   - Backend returns agent JWT\n   - Agent opens Zoom-hosted desk iframe (or custom npm agent UI in BYOP)\n\nIf a demo only has one generic \"session\" user, it is incomplete for real cobrowse operations.\n\n## Prerequisites\n\n### Platform Requirements\n\n- **Supported Browsers**:\n  - Chrome 80+ ✓\n  - Firefox 78+ ✓\n  - Safari 14+ ✓\n  - Edge 80+ ✓\n  - Internet Explorer ✗ (not supported)\n\n- **Network Requirements**:\n  - HTTPS required (HTTP works on loopback\u002Flocal development hosts only)\n  - Allow cross-origin requests to `*.zoom.us`\n  - CSP headers must allow Zoom domains (see [CORS and CSP guide](troubleshooting\u002Fcors-csp.md))\n\n- **Third-Party Cookies**:\n  - Must enable third-party cookies for refresh reconnection\n  - Privacy mode may limit certain features\n\n### Zoom Account Requirements\n\n1. **Zoom Workplace Account** with SDK Universal Credit\n2. **Video SDK App** created in Zoom Marketplace\n3. **Cobrowse SDK Credentials** from the app's Cobrowse tab\n\n**Note**: Cobrowse SDK is a **feature of Video SDK** (not a separate product).\n\n### Credentials Overview\n\nYou'll receive **4 credentials** from Zoom Marketplace → Video SDK App → Cobrowse tab:\n\n| Credential | Type | Used For | Exposure Safe? |\n|------------|------|----------|----------------|\n| **SDK Key** | Public | CDN URL, JWT `app_key` claim | ✓ Yes (client-side) |\n| **SDK Secret** | Private | Sign JWTs | ✗ No (server-side only) |\n| **API Key** | Private | REST API calls (optional) | ✗ No (server-side only) |\n| **API Secret** | Private | REST API calls (optional) | ✗ No (server-side only) |\n\n**Critical**: SDK Key is **public** (embedded in CDN URL), but SDK Secret must **never** be exposed client-side.\n\n## Quick Start\n\n### Step 1: Get SDK Credentials\n\n1. Go to [Zoom Marketplace](https:\u002F\u002Fmarketplace.zoom.us\u002F)\n2. Open your **Video SDK App** (or create one)\n3. Navigate to the **Cobrowse** tab\n4. Copy your credentials:\n   - SDK Key\n   - SDK Secret\n   - API Key (optional)\n   - API Secret (optional)\n\n### Step 2: Set Up Token Server\n\nDeploy a server-side endpoint to generate JWTs. Use the official sample:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fzoom\u002Fcobrowsesdk-auth-endpoint-sample.git\ncd cobrowsesdk-auth-endpoint-sample\nnpm install\n\n# Create .env file\ncat > .env \u003C\u003C EOF\nZOOM_SDK_KEY=your_sdk_key_here\nZOOM_SDK_SECRET=your_sdk_secret_here\nPORT=4000\nEOF\n\nnpm start\n```\n\n**Token endpoint:**\n```javascript\n\u002F\u002F POST https:\u002F\u002FYOUR_TOKEN_SERVICE_BASE_URL\n{\n  \"role\": 1,           \u002F\u002F 1 = customer, 2 = agent\n  \"userId\": \"user123\",\n  \"userName\": \"John Doe\"\n}\n\n\u002F\u002F Response\n{\n  \"token\": \"eyJhbGciOiJIUzI1NiIs...\"\n}\n```\n\n### Step 3: Customer Side Integration (CDN)\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n  \u003Ctitle>Customer - Cobrowse Demo\u003C\u002Ftitle>\n  \u003Cscript type=\"module\">\n    const ZOOM_SDK_KEY = 'YOUR_SDK_KEY';\n    \n    \u002F\u002F Load SDK from CDN\n    (function(r, a, b, f, c, d) {\n      r[f] = r[f] || { init: function() { r.ZoomCobrowseSDKInitArgs = arguments }};\n      var fragment = a.createDocumentFragment();\n      function loadJs(url) {\n        c = a.createElement(b);\n        d = a.getElementsByTagName(b)[0];\n        c[\"async\"] = false;\n        c.src = url;\n        fragment.appendChild(c);\n      }\n      loadJs(`https:\u002F\u002Fus01-zcb.zoom.us\u002Fstatic\u002Fresource\u002Fsdk\u002F${ZOOM_SDK_KEY}\u002Fjs\u002F2.13.2`);\n      d.parentNode.insertBefore(fragment, d);\n    })(window, document, \"script\", \"ZoomCobrowseSDK\");\n  \u003C\u002Fscript>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Ch1>Customer Support\u003C\u002Fh1>\n  \u003Cbutton id=\"cobrowse-btn\" disabled>Loading...\u003C\u002Fbutton>\n  \n  \u003C!-- Sensitive fields - will be masked from agent -->\n  \u003Clabel>SSN: \u003Cinput type=\"text\" class=\"pii-mask\" placeholder=\"XXX-XX-XXXX\">\u003C\u002Flabel>\n  \u003Clabel>Credit Card: \u003Cinput type=\"text\" class=\"pii-mask\" placeholder=\"XXXX-XXXX-XXXX-XXXX\">\u003C\u002Flabel>\n  \n  \u003Cscript type=\"module\">\n    let sessionRef = null;\n    \n    const settings = {\n      allowAgentAnnotation: true,\n      allowCustomerAnnotation: true,\n      piiMask: {\n        maskCssSelectors: \".pii-mask\",\n        maskType: \"custom_input\"\n      }\n    };\n    \n    ZoomCobrowseSDK.init(settings, function({ success, session, error }) {\n      if (success) {\n        sessionRef = session;\n        \n        \u002F\u002F Listen for PIN code\n        session.on(\"pincode_updated\", (payload) => {\n          console.log(\"PIN Code:\", payload.pincode);\n          \u002F\u002F IMPORTANT: this is the PIN agent should use\n          alert(`Share this PIN with agent: ${payload.pincode}`);\n        });\n        \n        \u002F\u002F Listen for session events\n        session.on(\"session_started\", () => console.log(\"Session started\"));\n        session.on(\"agent_joined\", () => console.log(\"Agent joined\"));\n        session.on(\"agent_left\", () => console.log(\"Agent left\"));\n        session.on(\"session_ended\", () => console.log(\"Session ended\"));\n        \n        document.getElementById(\"cobrowse-btn\").disabled = false;\n        document.getElementById(\"cobrowse-btn\").innerText = \"Start Cobrowse Session\";\n      } else {\n        console.error(\"SDK init failed:\", error);\n      }\n    });\n    \n    document.getElementById(\"cobrowse-btn\").addEventListener(\"click\", async () => {\n      \u002F\u002F Fetch JWT from your server\n      const response = await fetch(\"https:\u002F\u002FYOUR_TOKEN_SERVICE_BASE_URL\", {\n        method: \"POST\",\n        headers: { \"Content-Type\": \"application\u002Fjson\" },\n        body: JSON.stringify({\n          role: 1,\n          userId: \"customer_\" + Date.now(),\n          userName: \"Customer\"\n        })\n      });\n      const { token } = await response.json();\n      \n      \u002F\u002F Start cobrowse session\n      sessionRef.start({ sdkToken: token });\n    });\n  \u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Step 4: Agent Side Integration (Iframe)\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml>\n\u003Chead>\n  \u003Ctitle>Agent Portal\u003C\u002Ftitle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Ch1>Agent Portal\u003C\u002Fh1>\n  \u003Ciframe \n    id=\"agent-iframe\"\n    width=\"1024\" \n    height=\"768\"\n    allow=\"autoplay *; camera *; microphone *; display-capture *; geolocation *;\"\n  >\u003C\u002Fiframe>\n  \n  \u003Cscript>\n    async function connectAgent() {\n      \u002F\u002F Fetch JWT from your server\n      const response = await fetch(\"https:\u002F\u002FYOUR_TOKEN_SERVICE_BASE_URL\", {\n        method: \"POST\",\n        headers: { \"Content-Type\": \"application\u002Fjson\" },\n        body: JSON.stringify({\n          role: 2,\n          userId: \"agent_\" + Date.now(),\n          userName: \"Support Agent\"\n        })\n      });\n      const { token } = await response.json();\n      \n      \u002F\u002F Load Zoom agent portal\n      const iframe = document.getElementById(\"agent-iframe\");\n      iframe.src = `https:\u002F\u002Fus01-zcb.zoom.us\u002Fsdkapi\u002Fzcb\u002Fframe-templates\u002Fdesk?access_token=${token}`;\n    }\n    \n    connectAgent();\n  \u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Step 5: Test the Integration\n\n1. Open **two separate browsers** (or incognito + normal)\n2. **Customer browser**: Open customer page, click \"Start Cobrowse Session\"\n3. **Customer browser**: Note the 6-digit PIN displayed\n4. **Agent browser**: Open agent page, enter the PIN code\n5. **Both browsers**: Session connects, agent can see customer's page\n6. **Test features**: Annotations, data masking, remote assist\n\n## Key Features\n\n### 1. Annotation Tools\n\nBoth customer and agent can draw on the shared screen:\n\n```javascript\nconst settings = {\n  allowAgentAnnotation: true,      \u002F\u002F Agent can draw\n  allowCustomerAnnotation: true    \u002F\u002F Customer can draw\n};\n```\n\n**Available tools**:\n- Pen (persistent)\n- Vanishing pen (disappears after 4 seconds)\n- Rectangle\n- Color picker\n- Eraser\n- Undo\u002FRedo\n\n### 2. Privacy Masking\n\nHide sensitive fields from agents using CSS selectors:\n\n```javascript\nconst settings = {\n  piiMask: {\n    maskType: \"custom_input\",           \u002F\u002F Mask specific fields\n    maskCssSelectors: \".pii-mask, #ssn\", \u002F\u002F CSS selectors\n    maskHTMLAttributes: \"data-sensitive=true\" \u002F\u002F HTML attributes\n  }\n};\n```\n\n**Supported masking**:\n- Text nodes ✓\n- Form inputs ✓\n- Select elements ✓\n- Images ✗ (not supported)\n- Links ✗ (not supported)\n\n### 3. Remote Assist\n\nAgent can scroll the customer's page:\n\n```javascript\nconst settings = {\n  remoteAssist: {\n    enable: true,\n    enableCustomerConsent: true,        \u002F\u002F Customer must approve\n    remoteAssistTypes: ['scroll_page'], \u002F\u002F Only scroll supported\n    requireStopConfirmation: false      \u002F\u002F Confirmation when stopping\n  }\n};\n```\n\n### 4. Multi-Tab Session Persistence\n\nSession continues when customer opens new tabs:\n\n```javascript\nconst settings = {\n  multiTabSessionPersistence: {\n    enable: true,\n    stateCookieKey: '$$ZCB_SESSION$$'  \u002F\u002F Cookie key (base64 encoded)\n  }\n};\n```\n\n## Session Lifecycle\n\n### Customer Flow\n\n1. **Load SDK** → CDN script loads `ZoomCobrowseSDK`\n2. **Initialize** → `ZoomCobrowseSDK.init(settings, callback)`\n3. **Fetch JWT** → Request token from your server (role_type=1)\n4. **Start Session** → `session.start({ sdkToken })`\n5. **PIN Generated** → `pincode_updated` event fires\n6. **Share PIN** → Customer gives 6-digit PIN to agent\n7. **Agent Joins** → `agent_joined` event fires\n8. **Session Active** → Real-time synchronization begins\n9. **End Session** → `session.end()` or agent leaves\n\n### Agent Flow\n\n1. **Fetch JWT** → Request token from your server (role_type=2)\n2. **Load Iframe** → Point to Zoom agent portal with token\n3. **Enter PIN** → Agent inputs customer's 6-digit PIN\n4. **Connect** → `session_joined` event fires\n5. **View Session** → Agent sees customer's browser\n6. **Use Tools** → Annotations, remote assist, zoom\n7. **Leave Session** → Click \"Leave Cobrowse\" button\n\n### Session Recovery (Auto-Reconnect)\n\nWhen customer refreshes the page:\n\n```javascript\nZoomCobrowseSDK.init(settings, function({ success, session, error }) {\n  if (success) {\n    const sessionInfo = session.getSessionInfo();\n    \n    \u002F\u002F Check if session is recoverable\n    if (sessionInfo.sessionStatus === 'session_recoverable') {\n      session.join();  \u002F\u002F Auto-rejoin previous session\n    } else {\n      \u002F\u002F Start new session\n      session.start({ sdkToken });\n    }\n  }\n});\n```\n\n**Recovery window**: 2 minutes. After 2 minutes, session ends.\n\n## Critical Gotchas and Best Practices\n\n### ⚠️ CRITICAL: SDK Secret Must Stay Server-Side\n\n**Problem**: Developers often accidentally embed SDK Secret in frontend code.\n\n**Solution**:\n- ✓ **SDK Key** → Safe to expose (embedded in CDN URL)\n- ✗ **SDK Secret** → Never expose (use for JWT signing server-side)\n\n```javascript\n\u002F\u002F ❌ WRONG - Secret exposed in frontend\nconst jwt = signJWT(payload, 'YOUR_SDK_SECRET');  \u002F\u002F Security risk!\n\n\u002F\u002F ✅ CORRECT - Secret stays on server\nconst response = await fetch('\u002Fapi\u002Ftoken', {\n  method: 'POST',\n  body: JSON.stringify({ role: 1, userId, userName })\n});\nconst { token } = await response.json();\n```\n\n### SDK Key vs API Key (Different Purposes!)\n\n| Credential | Used For | JWT Claim |\n|------------|----------|-----------|\n| **SDK Key** | CDN URL, JWT `app_key` | `app_key: \"SDK_KEY\"` |\n| **API Key** | REST API calls (optional) | Not used in JWT |\n\n**Common mistake**: Using API Key instead of SDK Key in JWT `app_key` claim.\n\n### Session Limits\n\n| Limit | Value | What Happens |\n|-------|-------|--------------|\n| Customers per session | 1 | Error 1012: `SESSION_CUSTOMER_COUNT_LIMIT` |\n| Agents per session | 5 | Error 1013: `SESSION_AGENT_COUNT_LIMIT` |\n| Active sessions per browser | 1 | Error 1004: `SESSION_COUNT_LIMIT` |\n| PIN code length | 10 chars max | Error 1008: `SESSION_PIN_INVALID_FORMAT` |\n\n### Session Timeout Behavior\n\n| Event | Timeout | What Happens |\n|-------|---------|--------------|\n| Agent waiting for customer | 3 minutes | Session ends automatically |\n| Page refresh reconnection | 2 minutes | Session ends if not reconnected |\n| Reconnection attempts | 2 times max | Session ends after 2 failed attempts |\n\n### HTTPS Requirement\n\n**Problem**: SDK doesn't load on HTTP sites.\n\n**Solution**:\n- Production: Use HTTPS ✓\n- Development: Use a loopback host for local HTTP testing ✓\n- Development: Use a local HTTPS endpoint with a trusted\u002Fself-signed cert if required ✓\n\n### Third-Party Cookies Required\n\n**Problem**: Refresh reconnection doesn't work.\n\n**Solution**: Enable third-party cookies in browser settings.\n\n**Affected scenarios**:\n- Browser privacy mode\n- Safari with \"Prevent cross-site tracking\" enabled\n- Chrome with \"Block third-party cookies\" enabled\n\n### Distribution Method Confusion\n\n| Method | Use Case | Agent Integration | BYOP Required |\n|--------|----------|-------------------|---------------|\n| **CDN** | Most use cases | Zoom-hosted iframe | No (auto PIN) |\n| **npm** | Custom agent UI, full control | Custom npm integration | Yes (required) |\n\n**Key Insight**: If you want **npm** integration, you **must** use BYOP (Bring Your Own PIN) mode.\n\n### Cross-Origin Iframe Handling\n\n**Problem**: Cobrowse doesn't work in cross-origin iframes.\n\n**Solution**: Inject SDK snippet into cross-origin iframes:\n\n```html\n\u003Cscript>\nconst ZOOM_SDK_KEY = \"YOUR_SDK_KEY_HERE\";\n\n(function(r,a,b,f,c,d){r[f]=r[f]||{init:function(){r.ZoomCobrowseSDKInitArgs=arguments}};\nvar fragment=a.createDocumentFragment();function loadJs(url) {c=a.createElement(b);d=a.getElementsByTagName(b)[0];c.async=false;c.src=url;fragment.appendChild(c);};\nloadJs('https:\u002F\u002Fus01-zcb.zoom.us\u002Fstatic\u002Fresource\u002Fsdk\u002F${ZOOM_SDK_KEY}\u002Fjs');d.parentNode.insertBefore(fragment,d);})(window,document,'script','ZoomCobrowseSDK');\n\u003C\u002Fscript>\n```\n\n**Same-origin iframes**: No extra setup needed.\n\n## Known Limitations\n\n### Synchronization Limits\n\n**Not synchronized**:\n- HTML5 Canvas elements\n- WebGL content\n- Audio and Video elements\n- Shadow DOM\n- PDF rendered with Canvas\n- Web Components\n\n**Partially synchronized**:\n- Drop-down boxes (only selected result)\n- Date pickers (only selected result)\n- Color pickers (only selected result)\n\n### Rendering Limits\n\n- High-resolution images may be compressed\n- Different screen sizes may cause CSS media query differences\n- Cross-origin images may not render (CORS restrictions)\n- Cross-origin fonts may not render (CORS restrictions)\n\n### Masking Limits\n\n**Supported**:\n- Text nodes ✓\n- Form inputs ✓\n- Select elements ✓\n\n**Not supported**:\n- `\u003Cimg>` elements ✗\n- Links ✗\n\n## Complete Documentation Library\n\nThis skill includes comprehensive guides organized by category:\n\n### Core Concepts\n- **[Two Roles Pattern](concepts\u002Ftwo-roles-pattern.md)** - Customer vs Agent architecture\n- **[Session Lifecycle](concepts\u002Fsession-lifecycle.md)** - Complete flow from start to end\n- **[JWT Authentication](concepts\u002Fjwt-authentication.md)** - Token structure and signing\n- **[Distribution Methods](concepts\u002Fdistribution-methods.md)** - CDN vs npm (BYOP)\n\n### Examples\n- **[Customer Integration](examples\u002Fcustomer-integration.md)** - Complete customer-side setup\n- **[Agent Integration](examples\u002Fagent-integration.md)** - Iframe and npm agent setups\n- **[Annotations](examples\u002Fannotations.md)** - Drawing tools configuration\n- **[Privacy Masking](examples\u002Fprivacy-masking.md)** - Field masking patterns\n- **[Remote Assist](examples\u002Fremote-assist.md)** - Agent page control\n- **[Multi-Tab Persistence](examples\u002Fmulti-tab-persistence.md)** - Cross-tab sessions\n- **[BYOP Custom PIN](examples\u002Fbyop-custom-pin.md)** - Custom PIN codes\n\n### References\n- **[API Reference](references\u002Fapi-reference.md)** - Complete SDK methods and events\n- **[Settings Reference](references\u002Fsettings-reference.md)** - All initialization settings\n- **[Error Codes](references\u002Ferror-codes.md)** - Complete error reference\n- **[Session Events](references\u002Fsession-events.md)** - All event types\n\n### Troubleshooting\n- **[Common Issues](troubleshooting\u002Fcommon-issues.md)** - Quick diagnostics\n- **[Error Codes](troubleshooting\u002Ferror-codes.md)** - Error code reference\n- **[CORS and CSP](troubleshooting\u002Fcors-csp.md)** - Cross-origin configuration\n- **[Browser Compatibility](troubleshooting\u002Fbrowser-compatibility.md)** - Browser support\n\n## Resources\n\n- **Official Docs**: https:\u002F\u002Fdevelopers.zoom.us\u002Fdocs\u002Fcobrowse-sdk\u002F\n- **API Reference**: https:\u002F\u002Fmarketplacefront.zoom.us\u002Fsdk\u002Fcobrowse\u002F\n- **Quickstart Repo**: https:\u002F\u002Fgithub.com\u002Fzoom\u002FCobrowseSDK-Quickstart\n- **Auth Endpoint Sample**: https:\u002F\u002Fgithub.com\u002Fzoom\u002Fcobrowsesdk-auth-endpoint-sample\n- **Dev Forum**: https:\u002F\u002Fdevforum.zoom.us\u002F\n- **Developer Blog**: https:\u002F\u002Fdevelopers.zoom.us\u002Fblog\u002F?category=zoom-cobrowse-sdk\n\n---\n\n**Need help?** Start with Integrated Index section below for complete navigation.\n\n---\n\n## Integrated Index\n\n_This section was migrated from `SKILL.md`._\n\n**Complete navigation guide for all Cobrowse SDK documentation.**\n\n## Getting Started (Start Here!)\n\nIf you're new to Zoom Cobrowse SDK, follow this learning path:\n\n1. **[SKILL.md](SKILL.md)** - Main overview and quick start\n2. **[5-Minute Runbook](RUNBOOK.md)** - Preflight checks for common failures\n3. **[Get Started Guide](get-started.md)** - Step-by-step setup from credentials to first session\n4. **[Session Lifecycle](concepts\u002Fsession-lifecycle.md)** - Understand the complete customer and agent flow\n5. **[Customer Integration](examples\u002Fcustomer-integration.md)** - Integrate SDK into your website\n6. **[Agent Integration](examples\u002Fagent-integration.md)** - Set up agent portal\n\n## Core Concepts\n\nFoundational concepts you need to understand:\n\n- **[Two Roles Pattern](concepts\u002Ftwo-roles-pattern.md)** - Customer (role_type=1) vs Agent (role_type=2) architecture\n- **[Session Lifecycle](concepts\u002Fsession-lifecycle.md)** - Complete flow: init → start → PIN → connect → end\n- **[JWT Authentication](concepts\u002Fjwt-authentication.md)** - Token structure, signing, SDK Key vs API Key\n- **[Distribution Methods](concepts\u002Fdistribution-methods.md)** - CDN vs npm (BYOP mode)\n\n## Examples and Patterns\n\nComplete working examples for common scenarios:\n\n### Session Management\n- **[Customer Integration](examples\u002Fcustomer-integration.md)** - Complete customer-side implementation (CDN and npm)\n- **[Agent Integration](examples\u002Fagent-integration.md)** - Iframe and npm agent setup patterns\n- **[Session Events](examples\u002Fsession-events.md)** - Handle all session lifecycle events\n- **[Auto-Reconnection](examples\u002Fauto-reconnection.md)** - Page refresh and session recovery\n\n### Features\n- **[Annotation Tools](examples\u002Fannotations.md)** - Enable drawing, highlighting, vanishing pen\n- **[Privacy Masking](examples\u002Fprivacy-masking.md)** - Mask sensitive fields with CSS selectors\n- **[Remote Assist](examples\u002Fremote-assist.md)** - Agent can scroll customer's page\n- **[Multi-Tab Persistence](examples\u002Fmulti-tab-persistence.md)** - Session continues across browser tabs\n- **[BYOP Custom PIN](examples\u002Fbyop-custom-pin.md)** - Bring Your Own PIN with npm integration\n\n## References\n\nComplete API and configuration references:\n\n### SDK Reference\n- **[API Reference](references\u002Fapi-reference.md)** - All SDK methods and interfaces\n  - ZoomCobrowseSDK.init()\n  - session.start()\n  - session.join()\n  - session.end()\n  - session.on()\n  - session.getSessionInfo()\n  \n- **[Settings Reference](references\u002Fsettings-reference.md)** - All initialization settings\n  - allowAgentAnnotation\n  - allowCustomerAnnotation\n  - piiMask\n  - remoteAssist\n  - multiTabSessionPersistence\n\n- **[Session Events Reference](references\u002Fsession-events.md)** - All event types\n  - pincode_updated\n  - session_started\n  - session_ended\n  - agent_joined\n  - agent_left\n  - session_error\n  - session_reconnecting\n  - remote_assist_started\n  - remote_assist_stopped\n\n### Error Reference\n- **[Error Codes](references\u002Ferror-codes.md)** - Complete error code reference\n  - 1001-1017: Session errors\n  - 2001: Token errors\n  - 9999: Service errors\n\n### Official Documentation\n- **[Get Started](references\u002Fget-started.md)** - Official get started documentation (crawled)\n- **[Features](references\u002Ffeatures.md)** - Official features documentation (crawled)\n- **[Authorization](references\u002Fauthorization.md)** - Official JWT authorization docs (crawled)\n- **[API Documentation](references\u002Fapi.md)** - Crawled API reference docs\n\n## Troubleshooting\n\nQuick diagnostics and common issue resolution:\n\n- **[Common Issues](troubleshooting\u002Fcommon-issues.md)** - Quick fixes for frequent problems\n  - SDK not loading\n  - Token generation fails\n  - Agent can't connect\n  - Fields not masked\n  - Session doesn't reconnect after refresh\n\n- **[Error Codes](troubleshooting\u002Ferror-codes.md)** - Error code lookup and solutions\n  - Session start\u002Fjoin failures (1001, 1011, 1016)\n  - Session limit errors (1002, 1004, 1012, 1013, 1015)\n  - PIN code errors (1006, 1008, 1009, 1010)\n  - Token errors (2001)\n\n- **[CORS and CSP](troubleshooting\u002Fcors-csp.md)** - Cross-origin and Content Security Policy setup\n  - Access-Control-Allow-Origin headers\n  - Content-Security-Policy headers\n  - Cross-origin iframe handling\n  - Same-origin iframe handling\n\n- **[Browser Compatibility](troubleshooting\u002Fbrowser-compatibility.md)** - Browser requirements and limitations\n  - Supported browsers (Chrome 80+, Firefox 78+, Safari 14+, Edge 80+)\n  - Internet Explorer not supported\n  - Privacy mode limitations\n  - Third-party cookie requirements\n\n## By Use Case\n\nFind documentation by what you're trying to do:\n\n### I want to...\n\n**Set up cobrowse for the first time:**\n- [Get Started Guide](get-started.md)\n- [JWT Authentication](concepts\u002Fjwt-authentication.md)\n- [Customer Integration](examples\u002Fcustomer-integration.md)\n- [Agent Integration](examples\u002Fagent-integration.md)\n\n**Add annotation tools:**\n- [Annotation Tools Example](examples\u002Fannotations.md)\n- [Settings Reference - allowAgentAnnotation](references\u002Fsettings-reference.md#allowa gentannotation)\n- [Settings Reference - allowCustomerAnnotation](references\u002Fsettings-reference.md#allowcustomerannotation)\n\n**Hide sensitive data from agents:**\n- [Privacy Masking Example](examples\u002Fprivacy-masking.md)\n- [Settings Reference - piiMask](references\u002Fsettings-reference.md#piimask)\n\n**Let agents control customer's page:**\n- [Remote Assist Example](examples\u002Fremote-assist.md)\n- [Settings Reference - remoteAssist](references\u002Fsettings-reference.md#remoteassist)\n\n**Use custom PIN codes:**\n- [BYOP Custom PIN Example](examples\u002Fbyop-custom-pin.md)\n- [JWT Authentication - enable_byop](concepts\u002Fjwt-authentication.md#enable-byop)\n\n**Handle page refreshes:**\n- [Auto-Reconnection Example](examples\u002Fauto-reconnection.md)\n- [Session Lifecycle - Recovery](concepts\u002Fsession-lifecycle.md#session-recovery)\n\n**Integrate with npm (not CDN):**\n- [BYOP Custom PIN Example](examples\u002Fbyop-custom-pin.md)\n- [Distribution Methods](concepts\u002Fdistribution-methods.md#npm-integration)\n\n**Debug session connection issues:**\n- [Common Issues](troubleshooting\u002Fcommon-issues.md)\n- [Error Codes](troubleshooting\u002Ferror-codes.md)\n- [Session Events - session_error](examples\u002Fsession-events.md#session-error)\n\n**Configure CORS and CSP headers:**\n- [CORS and CSP Guide](troubleshooting\u002Fcors-csp.md)\n- [Browser Compatibility](troubleshooting\u002Fbrowser-compatibility.md)\n\n## By Error Code\n\nQuick lookup for error code solutions:\n\n### Session Errors\n- **1001** (SESSION_START_FAILED) → [Error Codes](troubleshooting\u002Ferror-codes.md#1001-session-start-failed)\n- **1002** (SESSION_CONNECTING_IN_PROGRESS) → [Error Codes](troubleshooting\u002Ferror-codes.md#1002-session-connecting-in-progress)\n- **1004** (SESSION_COUNT_LIMIT) → [Error Codes](troubleshooting\u002Ferror-codes.md#1004-session-count-limit)\n- **1011** (SESSION_JOIN_FAILED) → [Error Codes](troubleshooting\u002Ferror-codes.md#1011-session-join-failed)\n- **1012** (SESSION_CUSTOMER_COUNT_LIMIT) → [Error Codes](troubleshooting\u002Ferror-codes.md#1012-session-customer-count-limit)\n- **1013** (SESSION_AGENT_COUNT_LIMIT) → [Error Codes](troubleshooting\u002Ferror-codes.md#1013-session-agent-count-limit)\n- **1015** (SESSION_DUPLICATE_USER) → [Error Codes](troubleshooting\u002Ferror-codes.md#1015-session-duplicate-user)\n- **1016** (NETWORK_ERROR) → [Error Codes](troubleshooting\u002Ferror-codes.md#1016-network-error)\n- **1017** (SESSION_CANCELING_IN_PROGRESS) → [Error Codes](troubleshooting\u002Ferror-codes.md#1017-session-canceling-in-progress)\n\n### PIN Errors\n- **1006** (SESSION_JOIN_PIN_NOT_FOUND) → [Error Codes](troubleshooting\u002Ferror-codes.md#1006-session-join-pin-not-found)\n- **1008** (SESSION_PIN_INVALID_FORMAT) → [Error Codes](troubleshooting\u002Ferror-codes.md#1008-session-pin-invalid-format)\n- **1009** (SESSION_START_PIN_REQUIRED) → [Error Codes](troubleshooting\u002Ferror-codes.md#1009-session-start-pin-required)\n- **1010** (SESSION_START_PIN_CONFLICT) → [Error Codes](troubleshooting\u002Ferror-codes.md#1010-session-start-pin-conflict)\n\n### Auth Errors\n- **2001** (TOKEN_INVALID) → [Error Codes](troubleshooting\u002Ferror-codes.md#2001-token-invalid)\n\n### Service Errors\n- **9999** (UNDEFINED) → [Error Codes](troubleshooting\u002Ferror-codes.md#9999-undefined)\n\n## Official Resources\n\nExternal documentation and samples:\n\n- **Official Docs**: https:\u002F\u002Fdevelopers.zoom.us\u002Fdocs\u002Fcobrowse-sdk\u002F\n- **API Reference**: https:\u002F\u002Fmarketplacefront.zoom.us\u002Fsdk\u002Fcobrowse\u002F\n- **Quickstart Repo**: https:\u002F\u002Fgithub.com\u002Fzoom\u002FCobrowseSDK-Quickstart\n- **Auth Endpoint Sample**: https:\u002F\u002Fgithub.com\u002Fzoom\u002Fcobrowsesdk-auth-endpoint-sample\n- **Dev Forum**: https:\u002F\u002Fdevforum.zoom.us\u002F\n- **Developer Blog**: https:\u002F\u002Fdevelopers.zoom.us\u002Fblog\u002F?category=zoom-cobrowse-sdk\n\n## Documentation Structure\n\n```\ncobrowse-sdk\u002F\n├── SKILL.md                    # Main skill entry point\n├── SKILL.md                    # This file - complete navigation\n├── get-started.md              # Step-by-step setup guide\n│\n├── concepts\u002F                   # Core concepts\n│   ├── two-roles-pattern.md\n│   ├── session-lifecycle.md\n│   ├── jwt-authentication.md\n│   └── distribution-methods.md\n│\n├── examples\u002F                   # Working examples\n│   ├── customer-integration.md\n│   ├── agent-integration.md\n│   ├── annotations.md\n│   ├── privacy-masking.md\n│   ├── remote-assist.md\n│   ├── multi-tab-persistence.md\n│   ├── byop-custom-pin.md\n│   ├── session-events.md\n│   └── auto-reconnection.md\n│\n├── references\u002F                 # API and config references\n│   ├── api-reference.md        # SDK methods\n│   ├── settings-reference.md   # Init settings\n│   ├── session-events.md       # Event types\n│   ├── error-codes.md          # Error reference\n│   ├── get-started.md          # Official docs (crawled)\n│   ├── features.md             # Official docs (crawled)\n│   ├── authorization.md        # Official docs (crawled)\n│   └── api.md                  # API docs (crawled)\n│\n└── troubleshooting\u002F            # Problem resolution\n    ├── common-issues.md\n    ├── error-codes.md\n    ├── cors-csp.md\n    └── browser-compatibility.md\n```\n\n## Search Tips\n\n**Find by keyword:**\n- \"annotation\" → [Annotation Tools](examples\u002Fannotations.md)\n- \"mask\" or \"privacy\" → [Privacy Masking](examples\u002Fprivacy-masking.md)\n- \"PIN\" or \"custom PIN\" → [BYOP Custom PIN](examples\u002Fbyop-custom-pin.md)\n- \"JWT\" or \"token\" → [JWT Authentication](concepts\u002Fjwt-authentication.md)\n- \"error\" → [Error Codes](troubleshooting\u002Ferror-codes.md)\n- \"CORS\" or \"CSP\" → [CORS and CSP](troubleshooting\u002Fcors-csp.md)\n- \"iframe\" → [Agent Integration](examples\u002Fagent-integration.md)\n- \"npm\" → [Distribution Methods](concepts\u002Fdistribution-methods.md), [BYOP](examples\u002Fbyop-custom-pin.md)\n- \"refresh\" or \"reconnect\" → [Auto-Reconnection](examples\u002Fauto-reconnection.md)\n- \"agent\" → [Agent Integration](examples\u002Fagent-integration.md), [Two Roles Pattern](concepts\u002Ftwo-roles-pattern.md)\n- \"customer\" → [Customer Integration](examples\u002Fcustomer-integration.md), [Two Roles Pattern](concepts\u002Ftwo-roles-pattern.md)\n\n---\n\n**Not finding what you need?** Check the [Official Documentation](https:\u002F\u002Fdevelopers.zoom.us\u002Fdocs\u002Fcobrowse-sdk\u002F) or ask on the [Dev Forum](https:\u002F\u002Fdevforum.zoom.us\u002F).\n\n## Environment Variables\n\n- See [references\u002Fenvironment-variables.md](references\u002Fenvironment-variables.md) for standardized `.env` keys and where to find each value.\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fzoom\u002Fskills\u002Fcobrowse-sdk",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill cobrowse-sdk",{"tool":39,"command":40},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill cobrowse-sdk",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill cobrowse-sdk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fcobrowse-sdk\u002FSKILL.md",true,[],[48,57,66,74,80,86],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":20},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[54,55,56],"model","model hierarchy","model hierarchy skill",{"skillNo":58,"name":59,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":20},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[63,64,65],"MCP","zoom","zoom mcp",{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":20},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[18,72,73,64],"zoom apps sdk","apps",{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":20},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[76],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":20},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[82],{"skillNo":87,"name":88,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":20},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[88]]