@wecom/wecom-openclaw-plugin 2026.6.23-beta.0 → 2026.7.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,88 +0,0 @@
1
- # get_doc_content API
2
-
3
- 获取企业微信文档、表格的完整内容数据,以 Markdown 格式返回。该接口采用异步轮询机制:首次调用无需传 task_id,接口会返回 task_id;若 task_done 为 false,需携带该 task_id 再次调用,直到 task_done 为 true 时返回完整内容。
4
-
5
- ## 技能定义
6
-
7
- ```json
8
- {
9
- "name": "get_doc_content",
10
- "description": "获取企业微信文档的完整内容数据,以 Markdown 格式返回。该接口采用异步轮询机制:首次调用无需传 task_id,接口会返回 task_id;若 task_done 为 false,需携带该 task_id 再次调用,直到 task_done 为 true 时返回完整内容。",
11
- "inputSchema": {
12
- "properties": {
13
- "docid": {
14
- "description": "文档的 docid,与 url 二选一传入",
15
- "title": "Doc ID",
16
- "type": "string"
17
- },
18
- "url": {
19
- "description": "文档的访问链接,与 docid 二选一传入",
20
- "title": "URL",
21
- "type": "string"
22
- },
23
- "type": {
24
- "description": "内容返回格式。2: Markdown 格式",
25
- "enum": [2],
26
- "title": "Type",
27
- "type": "integer"
28
- },
29
- "task_id": {
30
- "description": "任务 ID,用于异步轮询。初次调用时不填,后续轮询时填写上次返回的 task_id",
31
- "title": "Task ID",
32
- "type": "string"
33
- }
34
- },
35
- "oneOf": [
36
- { "required": ["docid", "type"] },
37
- { "required": ["url", "type"] }
38
- ],
39
- "title": "get_doc_contentArguments",
40
- "type": "object"
41
- }
42
- }
43
- ```
44
-
45
- ## 参数说明
46
-
47
- | 参数 | 类型 | 必填 | 说明 |
48
- |---|---|---|---|
49
- | docid | string | 与 url 二选一 | 文档的 docid |
50
- | url | string | 与 docid 二选一 | 文档的访问链接 |
51
- | type | integer | 是 | 内容返回格式,固定传 `2`(Markdown 格式) |
52
- | task_id | string | 否 | 任务 ID,初次调用不填,后续轮询时填写上次返回的 task_id |
53
-
54
- ## 异步轮询机制
55
-
56
- 1. **首次调用**:传入 `docid`/`url` 和 `type: 2`,不传 `task_id`
57
- 2. **检查响应**:若 `task_done` 为 `false`,记录返回的 `task_id`
58
- 3. **轮询调用**:携带 `task_id` 再次调用,直到 `task_done` 为 `true`
59
- 4. **获取内容**:当 `task_done` 为 `true` 时,`content` 字段包含完整的 Markdown 内容
60
-
61
- ## 请求示例
62
-
63
- ```json
64
- // 首次调用
65
- {
66
- "docid": "DOCID",
67
- "type": 2
68
- }
69
-
70
- // 轮询调用
71
- {
72
- "docid": "DOCID",
73
- "type": 2,
74
- "task_id": "xxx"
75
- }
76
- ```
77
-
78
- ## 响应示例
79
-
80
- ```json
81
- {
82
- "errcode": 0,
83
- "errmsg": "ok",
84
- "content": "# 文档标题\n\n文档正文内容...",
85
- "task_id": "xxxxx",
86
- "task_done": true
87
- }
88
- ```