360 Secure SkillHub
360 安全技能中心

Open Chrome Tabs

这是一个命令行工具,安装后可从 Chrome、Arc、Brave、Edge 等 Chromium 浏览器的 User Data 目录读取当前打开的标签页及 URL。支持 --user-data、--profile、--device 参数与 devices 子命令,优先读取同步数据,否则回退到本地会话文件,并可用 --json 输出结构化结果。

mindsocket
mindsocket
热度 78.32
最近更新 2026-05-17 12:31:45
分类:搜索依赖:代码执行 / 读写文件应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add open-chrome-tabs
Metadata
name
chrome-open-tabs
description
Read currently open browser tabs from Chrome or other Chromium browsers (Arc, Brave, Edge, etc.). Use when you need to know what URLs the user has open, or want to list tabs from a synced device (e.g. Chrome on their phone).

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

# 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

# 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)