Summary
企业微信智能表格数据(记录)管理技能。提供智能表格记录的增删改查能力。适用场景:(1) 查询子表全部记录 (2) 添加一行或多行记录 (3) 更新已有记录 (4) 删除记录。当用户需要读取表格数据、写入新数据、修改或删除表格行时触发此 Skill。支持通过 docid 或文档 URL 定位文档。
stvlynn/qclaw-skills · Archived
企业微信智能表格数据(记录)管理技能。提供智能表格记录的增删改查能力。适用场景:(1) 查询子表?
npx skills add stvlynn/qclaw-skills --skill wecom-smartsheet-data
企业微信智能表格数据(记录)管理技能。提供智能表格记录的增删改查能力。适用场景:(1) 查询子表全部记录 (2) 添加一行或多行记录 (3) 更新已有记录 (4) 删除记录。当用户需要读取表格数据、写入新数据、修改或删除表格行时触发此 Skill。支持通过 docid 或文档 URL 定位文档。
This repository is archived — consider an actively maintained alternative.
[SYSTEM RULES - MANDATORY - ALWAYS LOAD - DO NOT SKIP] QClaw系统基础运行规则,强制加载,不可卸…
7 installsHolistic nutrition guidance — food-health relationships, eating behaviors, sustainable habits, …
6 installs?
5 installs[MANDATORY] 本环境没有? 定时任务、模型设置、Skills/Plugins 管理等)都? 禁止直接调用 `openclaw` …
5 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Other skills from stvlynn/qclaw-skills · top by installs.
npx skills add stvlynn/qclaw-skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Alternate registries and mirrors of this skill.
npx skills add https://github.com/wecomteam/wecom-openclaw-plugin
main
Files included with this skill beyond the listing page.
SKILL.md
4,075 B
SUMMARY.md
399 B
wecom_mcp是一个 MCP tool,所有操作通过调用该 tool 完成。
⚠️ 前置条件:首次调用
wecom_mcp前,必须按wecom-preflight技能执行前置条件检查,确保工具已加入白名单。
管理智能表格中的记录(行数据)。所有接口支持通过 docid 或 url 二选一定位文档。
通过 wecom_mcp tool 调用,品类为 doc:
使用 wecommcp tool 调用 wecommcp call doc <toolname> '<jsonparams>' 调用指定技能
所有接口返回 JSON 对象,包含以下公共字段:
| 字段 | 类型 | 说明 |
|---|---|---|
errcode |
integer | 返回码,0 表示成功,非 0 表示失败 |
errmsg |
string | 错误信息,成功时为 "ok" |
当 errcode 不为 0 时,说明接口调用失败,可重试 1 次;若仍失败,将 errcode 和 errmsg 展示给用户。
查询子表全部记录。
wecommcp tool 调用 wecommcp call doc smartsheetgetrecords '{"docid": "DOCID", "sheet_id": "SHEETID"}'wecommcp tool 调用 wecommcp call doc smartsheetgetrecords '{"url": "https://doc.weixin.qq.com/smartsheet/xxx", "sheet_id": "SHEETID"}'参见 [API 详情](references/api-get-records.md)。
添加一行或多行记录,单次建议 500 行内。
调用前必须先了解目标表的字段类型(通过 smartsheetgetfields)。
使用 wecommcp tool 调用 wecommcp call doc smartsheetaddrecords '{"docid": "DOCID", "sheet_id": "SHEETID", "records": [{"values": {"任务名称": [{"type": "text", "text": "完成需求文档"}], "优先级": [{"text": "高"}]}}]}'
各字段类型的值格式参见 [单元格值格式参考](references/cell-value-formats.md)。
更新一行或多行记录,单次必须在 500 行内。需提供 recordid(通过 smartsheetget_records 获取)。
使用 wecommcp tool 调用 wecommcp call doc smartsheetupdaterecords '{"docid": "DOCID", "sheetid": "SHEETID", "records": [{"recordid": "RECORDID", "values": {"任务名称": [{"type": "text", "text": "更新后的内容"}]}}]}'
注意:创建时间、最后编辑时间、创建人、最后编辑人字段不可更新。
删除一行或多行记录,单次必须在 500 行内。操作不可逆。recordid 通过 smartsheetget_records 获取。
使用 wecommcp tool 调用 wecommcp call doc smartsheetdeleterecords '{"docid": "DOCID", "sheetid": "SHEETID", "recordids": ["RECORDID1", "RECORDID2"]}'
wecommcp tool 调用 wecommcp call doc smartsheetgetrecords '{"docid":"DOCID","sheet_id":"SHEETID"}'smartsheetgetfields 了解列类型 → 若涉及成员(USER)字段,先通过 wecom-contact-lookup 的 getuserlist 查找人员 userid → smartsheetadd_records 写入smartsheetgetrecords 获取 recordid → 若涉及成员(USER)字段,先通过 wecom-contact-lookup 的 getuserlist 查找人员 userid → smartsheetupdaterecords 更新smartsheetgetrecords 确认 recordid → smartsheetdelete_records 删除注意:成员(USER)类型字段需要填写
userid,不能直接使用姓名。必须先通过wecom-contact-lookup技能的getuserlist接口按姓名查找到对应的userid后再使用。