/install chrome-bookmarks
chrome-bookmarks
Search, browse, and open Chrome bookmarks directly from the local Bookmarks JSON file.
When to use
- User asks to find or search their Chrome bookmarks by keyword
- User wants to open a bookmarked URL (e.g., "打开我收藏的 TAPD 链接", "open my GitHub bookmark")
- User wants to browse bookmark folders (e.g., "看看我书签栏 Code 文件夹下有什么")
- User wants to see the overall bookmark tree structure
Prerequisites
- Chrome browser installed (data at
~/Library/Application Support/Google/Chrome/) - macOS (uses
opencommand to launch URLs) — for Linux, replaceopenwithxdg-open - Python 3.8+ (system python3)
Steps
1. Search bookmarks by keyword
python3 @scripts/chrome_bookmarks.py search "\x3Ckeyword>" --limit 10
--limit N: max results (default 20)--folder \x3Cname>: restrict search to a specific folder
Example: Search for TAPD-related bookmarks
python3 @scripts/chrome_bookmarks.py search "TAPD" --limit 10
2. Browse bookmark folder contents
python3 @scripts/chrome_bookmarks.py list --folder "\x3Cfolder_name>" --depth 2
- Omit
--folderto list all top-level items --depth N: how deep to traverse the tree (default 2)
Example: List items in the "Code" folder
python3 @scripts/chrome_bookmarks.py list --folder "Code" --depth 2
3. Show bookmark tree structure
python3 @scripts/chrome_bookmarks.py tree --depth 1
Shows top-level folders with bookmark counts. Increase --depth for more detail.
4. Open a bookmark in the browser
python3 @scripts/chrome_bookmarks.py open "\x3Ckeyword>"
Opens the first matching bookmark URL in the default browser using the open command.
Example:
python3 @scripts/chrome_bookmarks.py open "iWiki"
This will find the first bookmark whose name or URL contains "iWiki" and open it.
Typical workflow
- User asks to find a bookmark → run
searchwith the keyword - Present results to user — show name, URL, and folder path
- User picks one → run
openwith a more specific keyword or confirm the exact name - Bookmark opens in Chrome
Pitfalls
- Chrome must not be running a profile lock that prevents reading the Bookmarks file (rare on macOS — the file is always readable)
- The Bookmarks file is only updated when Chrome writes it (on bookmark changes or browser close). Very recent additions may not appear until Chrome flushes to disk.
- For users with multiple Chrome profiles, the script auto-detects
Defaultfirst, thenProfile 1, etc. - The
opencommand only works on macOS. On Linux, the script would need to usexdg-openinstead. - With large bookmark collections, the
opencommand opens the first match. Usesearchfirst to verify the right bookmark if unsure.
Verification
After running search, confirm the output is a JSON array of bookmark objects with name, url, folder, and path fields. After running open, confirm the output contains "opened": true.
Script reference
@scripts/chrome_bookmarks.py— Main CLI script (Python 3, zero external dependencies)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install chrome-bookmarks - 安装完成后,直接呼叫该 Skill 的名称或使用
/chrome-bookmarks触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Chrome Bookmarks 是什么?
Search, browse, and open Chrome bookmarks via AI assistant. Trigger when user asks to find/open a bookmarked URL, search their Chrome bookmarks by keyword, b... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。
如何安装 Chrome Bookmarks?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install chrome-bookmarks」即可一键安装,无需额外配置。
Chrome Bookmarks 是免费的吗?
是的,Chrome Bookmarks 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Chrome Bookmarks 支持哪些平台?
Chrome Bookmarks 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Chrome Bookmarks?
由 truesnow(@truesnow)开发并维护,当前版本 v1.0.0。