chrome-open-tabs
从 Chrome 或其他 Chromium 浏览器(Arc、Brave、Edge 等)读取当前打开的浏览器选项卡。当您需要知道用户打开了哪些 URL,或者想要列出同步设备(例如手机上的 Chrome)中的选项卡时使用。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~mindsocket-open-chrome-tabscURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~mindsocket-open-chrome-tabs/file -o mindsocket-open-chrome-tabs.md## 概述(中文) 从 Chrome 或其他 Chromium 浏览器(Arc、Brave、Edge 等)读取当前打开的浏览器选项卡。当您需要知道用户打开了哪些 URL,或者想要列出同步设备(例如手机上的 Chrome)中的选项卡时使用。 ## 原文 # chrome-open-tabs Install once: `npm install -g @mindsocket/chrome-open-tabs` Or one-off: `npx @mindsocket/chrome-open-tabs ...` ## Hierarchy `--user-data` (browser) → `--profile` → `--device` | Option | Default | Notes | |---|---|---| | `--user-data` | Chrome | path to browser's User Data dir | | `--profile` | `Default` | Try `Profile 1`, `Profile 2` etc if Default not right | | `--device` | all | filter to one synced device; requires browser to be closed | ## Mode Always prints to stderr: `[sync-data]` or `[session-files]` - **sync-data** — reads Chrome sync LevelDB; shows tabs across all synced devices - **session-files** — reads local SNSS session file; local tabs only, no device info; used when browser has no sync data or is running ## Common workflow ```bash # 1. Find which devices are synced chrome-open-tabs --profile "Profile 1" devices # → MacBook Air # → Pixel 9a # 2. Get tabs from a specific device chrome-open-tabs --profile "Profile 1" --device "Pixel 9a" --json # 3. Get all tabs across all devices chrome-open-tabs --profile "Profile 1" --json ``` ## Other browsers ```bash # Arc chrome-open-tabs --user-data "$HOME/Library/Application Support/Arc/User Data" ``` ## Notes - `--device` and `devices` require sync data — both error if the browser is running - If the browser is running, falls back to session files automatically (local tabs only)