Install
openclaw skills install @cm-wenge/tencent-docs-readerRead Tencent Docs spreadsheet via agent-browser copy-paste method. Supports reading any sheet tab and returns tab-separated text. 腾讯文档在线表格读取工具,支持指定子表,返回制表符分隔的文本内容。
openclaw skills install @cm-wenge/tencent-docs-readerAuthor: Cm-wenge | License: MIT
读取腾讯文档在线表格内容,通过 agent-browser 的复制粘贴技巧绕过 Canvas 渲染。
Read content from Tencent Docs (腾讯文档) spreadsheets using agent-browser's copy-paste trick.
当你把腾讯文档的共享链接发给大模型(如 ChatGPT、Claude、GLM),模型无法直接读取文档内容——它只能看到一个 URL,无法"打开"链接去查看里面的表格数据。
When you share a Tencent Docs link with an LLM (ChatGPT, Claude, GLM, etc.), the model cannot read the document content — it only sees a URL and has no way to "open" and view the spreadsheet inside.
这个工具解决的问题:
This tool solves the problem by:
典型场景 / Typical use cases:
用户:帮我看看这个腾讯文档里谁还没交周报 https://docs.qq.com/sheet/xxx
Agent:(调用本工具读取表格)→ 解析内容 → 告诉你结果
腾讯文档用 Canvas 渲染表格,accessibility tree 读不到内容。这个工具通过以下方式绕过:
Tencent Docs renders tables with Canvas (unreadable by accessibility tree). This skill bypasses it by:
--tab,先切换到对应子表 / Switches to the specified tabpython {baseDir}/scripts/read_sheet.py --url "https://docs.qq.com/sheet/XXXX" --tab "SheetName"
| 参数 | 必填 | 说明 |
|---|---|---|
--url | ✅ | 腾讯文档表格 URL / Tencent Docs spreadsheet URL |
--tab | ❌ | 子表名称(如 "0328"),不填则读取当前活动子表 / Tab name |
--auto-tab | ❌ | 自动选择本周的周报标签页(本周五),找不到则选择当前日期前后两天内的标签页 |
--output | ❌ | 保存到文件,不指定则输出到 stdout / Save to file |
--auto-tab 逻辑说明:
# 读取指定子表 / Read a specific tab
python {baseDir}/scripts/read_sheet.py --url "https://docs.qq.com/sheet/YOUR_SHEET_ID" --tab "0328"
# 自动选择本周的周报标签页(本周五) / Auto-select current week tab (this Friday)
python {baseDir}/scripts/read_sheet.py --url "https://docs.qq.com/sheet/YOUR_SHEET_ID" --auto-tab
# 保存到文件 / Save to file
python {baseDir}/scripts/read_sheet.py --url "https://docs.qq.com/sheet/YOUR_SHEET_ID" --tab "0328" --output result.txt
# 读取当前活动子表 / Read active tab
python {baseDir}/scripts/read_sheet.py --url "https://docs.qq.com/sheet/YOUR_SHEET_ID"
npm install -g agent-browser)并启动守护进程(agent-browser start)制表符分隔,每行一条记录 / Tab-separated values, one row per line:
姓名 年龄 城市
张三 30 北京
李四 25 上海
可用 Python csv.reader(delimiter=\t)或标准文本工具解析。
npx clawhub install tencent-docs-reader