Loading...
Loading...
WeCom Online Sheet Management Skill. Provides functions such as creating online sheets, reading content, modifying content, appending row data, and managing sub-sheets (adding/removing). Applicable scenarios: (1) Create a blank online sheet (2) Read the complete content of the sheet (Markdown) (3) Read basic information and sub-sheet list (4) Read sub-sheet data (5) Modify content in specified range (6) Append a row of data at the end (7) Add/delete sub-sheets. This skill is triggered when the user mentions 'WeCom Sheet', 'WeCom Online Sheet', 'WeCom Excel Sheet', or when the link is in the format `https://doc.weixin.qq.com/sheet/xxx`. Note: For smart sheets (`/smartsheet/*`), use `wecomcli-smartsheet`; for ordinary documents (`/doc/*`), use `wecomcli-doc`; for smart documents/smart homepage (`/smartpage/*`), use `wecomcli-smartpage`.
npx skill4agent add wecomteam/wecom-cli wecomcli-sheetis a command-line program provided by WeCom, all operations are completed by executingwecom-clicommands.wecom-cli
/sheet/*wecom-clidocwecom-cli doc <tool_name> '<json_params>'Hard Rule: If the second column is a link to, after hitting this row, firstreferences/xxx.mdthe corresponding references file, then construct the command. Before writing/reading sub-sheet data, usereadto get thesheet_get_infoof the target sub-sheet first.sheet_id
| User Intent | Reference Location |
|---|---|
| Read complete content of Online Sheet (Markdown overview) | See "Read Complete Content" below |
| Read basic information and sub-sheet list of Online Sheet | See "Read Basic Information" below |
| Create an Online Sheet from scratch (blank) | See "Create Online Sheet" below |
| Modify content in specified range of Online Sheet | references/sheet-update-range-data.md |
| Append a row of data at the end of Online Sheet | references/sheet-append-data.md |
| Add sub-sheet to Online Sheet | references/sheet-add-sub.md |
| Delete sub-sheet from Online Sheet | references/sheet-delete-sub.md |
docidurlwecom-cli doc create_doc '<JSON parameters>'| Parameter | Type | Required | Default Value | Description |
|---|---|---|---|---|
| int | Yes | — | Fixed value |
| string | Yes | — | Sheet title |
sheet_get_infosheet_idsheet_update_range_datasheet_append_datatask_idtask_idtask_donefalsetask_idtask_donetruewecom-cli doc get_doc_content '<JSON parameters>'| Field | Type | Required | Default Value | Semantics |
|---|---|---|---|---|
| string | Either | — | docid of the Online Sheet |
| string | Either | — | Access link of the Online Sheet |
| int | Yes | — | Content return format, fixed value |
| string | No | — | Task ID, not passed for the first call, fill in the |
| Field | Type | Description |
|---|---|---|
| string | Complete Markdown content returned when |
| string | Task ID, used for next polling when not completed |
| bool | Whether the task is completed; when |
task_idtask_donefalsetask_idtask_donetruecontentsheet_idsheet_idsheet_update_range_datasheet_append_datasheet_delete_subsheets[]wecom-cli doc sheet_get_info '<JSON parameters>'| Field | Type | Required | Default Value | Semantics |
|---|---|---|---|---|
| string | Either | — | docid of the Online Sheet |
| string | Either | — | Access link of the Online Sheet |
| Field | Type | Description |
|---|---|---|
| array | List of worksheets; each item contains basic information such as |
| string | Document access link |
| string | Document name |
docidurlsheet_update_range_datasheet_append_dataget_doc_contentsheet_idrow_countcolumn_countsheets[]sheet_idtitle| Dependent Skill | Typical Collaboration Scenario | Data Flow |
|---|---|---|
| When personnel information needs to be written into the sheet, query userid by name | |
| When the user requests to send the Online Sheet link to someone/some group | This skill returns |