← 返回
未分类 中文

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...
通过AI助手搜索、浏览并打开Chrome书签。当用户请求查找或打开书签链接,或按关键词搜索Chrome书签时触发。
truesnow
未分类 clawhub v1.0.0 1 版本 99487.2 Key: 无需
★ 0
Stars
📥 194
下载
💾 0
安装
1
版本
#bookmarks#browser#chrome#latest#productivity

概述

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 open command to launch URLs) — for Linux, replace open with xdg-open
  • Python 3.8+ (system python3)

Steps

1. Search bookmarks by keyword

python3 @scripts/chrome_bookmarks.py search "<keyword>" --limit 10
  • --limit N: max results (default 20)
  • --folder : 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 "<folder_name>" --depth 2
  • Omit --folder to 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 "<keyword>"

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

  1. User asks to find a bookmark → run search with the keyword
  2. Present results to user — show name, URL, and folder path
  3. User picks one → run open with a more specific keyword or confirm the exact name
  4. 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 Default first, then Profile 1, etc.
  • The open command only works on macOS. On Linux, the script would need to use xdg-open instead.
  • With large bookmark collections, the open command opens the first match. Use search first 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)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-26 23:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,502
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,062 📥 799,761
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,219 📥 266,831