Loading...
Loading...
WeCom Document Public Management: Search documents (recently viewed/created), rename documents, add document member permissions, and set document joining rules. Applicable to all document types (doc documents / online spreadsheets / smart spreadsheets / smart documents). Use wecomcli-doc to create or import doc documents; use wecomcli-sheet to create or import online spreadsheets; use wecomcli-smartsheet for smart spreadsheet content CRUD; use wecomcli-smartpage to generate smart documents. For requirements like 'which documents have been viewed/browsing history', use this skill instead of wecom_get_user_memory.
npx skill4agent add wecomteam/wecom-cli wecomcli-doc-manageBefore executing anycommand, you must read and complete the public pre-checks of thewecom-cliskill.wecomcli-shared
docsheetsmartsheetsmartpagedoc_typecollectpptmindflowjournalpdfdoc_typesreferences/xxx.mdread| User Intent | Reference Location |
|---|---|
| Search documents (including recently viewed/created) | See "Search Documents" below |
| Rename document | +names-update |
| Add document members / modify permissions | +members-update |
| Set link joining rules | +rules-update |
Regarding "viewers" and "members": In the search semantics of this interface, they are equivalent —hits documents where "the userid is a viewer/member/stakeholder". It can be used to express "includes X", "participated by X", "related to X", "X as a member", etc. Note on Permission Constraints: No matter whose userid is passed, the final results will only return documents that the current caller has permission to access; documents that others have permission to access but you don't will not appear in the results, so this interface cannot be used to "snoop on others' exclusive document lists".visitor_userids
wecom-cli doc search --json '<JSON parameters>'| Field | Type | Required | Default Value | Semantics |
|---|---|---|---|---|
| string[] | Yes | — | Array of keywords, in OR relationship. Pass an empty array |
| string | No | | Search scope enumeration: |
| string[] | No | — | Restrict types, subset of |
| string[] | No | — | Restrict list of creator userids (typical: pass current user's userid to check "my recently created") |
| string[] | No | — | Restrict list of "viewer / member" userids |
| string | No | — | Creation time window, |
| string | No | — | Recent opening time window, |
| string | No | | Sorting enumeration: |
| int | No | | Return upper limit, no more than 100 |
| string | No | — | Pagination cursor; pass empty for the first time, take |
| Field | Type | Description |
|---|---|---|
| boolean | Whether there is a next page; use |
| string | Next page cursor |
| array | Result document list, see the table below for fields of each item |
docs[]| Field | Type | Description |
|---|---|---|
| string | Unique document ID |
| string | Document name |
| string | Document type |
| string | Accessible document link |
| string | Document creator userid |
| string | Creation / recent modification time |
| string[] | Hit highlighted fragments |
pptjournalcollectmindflowdoc_url{}keywordssearch_scope=title_contentsort_by=best_matchvisitor_userids=[<current userid>]sort_by=best_matchopened_aftervisitor_userids=[<other userid>]wecomcli-contactsort_by=best_matchcreator_userids=[<current userid>]created_*sort_by=create_timecreated_afterkeywordsuseridwouseridreading the wecomcli-contact skilluseridkeywordskeywordskeywords = ["待办 tool", "待办", "tool"]keywords = ["周报"]wecom-cli doc search --json '{"keywords":["待办 tool","待办","tool","产品"],"search_scope":"title_content","limit":10}'- [doc_name](url)urlurlcreator_userid| Dependent Skill | Typical Collaboration Scenario | Data Flow |
|---|---|---|
| When adding document members, the user only provides a name, which needs to be resolved to | |
dociddocwecomcli-docsmartpagewecomcli-smartpagesheetwecomcli-sheetsmartsheetwecomcli-smartsheetWhen multiple search candidates need confirmation / search intent needs confirmation / mandatory parameters (such as, permission role, etc.) are missing, use concise natural language to only ask for the missing or ambiguous information; when there are candidates, list them in the text for the user to choose, do not guess on your own.docid