一键导入
send-wecom-msg
Send a WeCom message to a user via the wecom CLI. Use when the user wants to send a WeCom message, notify someone, or communicate via WeCom.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Send a WeCom message to a user via the wecom CLI. Use when the user wants to send a WeCom message, notify someone, or communicate via WeCom.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Manage WeCom documents, smartpages, uploads, and smartsheets via the wecom CLI. Use when the user wants to read, create, edit, export, upload to, or manage WeCom docs, sheets, or smartpages, or when a doc.weixin.qq.com URL is mentioned.
Send a workspace file to a WeCom user via the wecom CLI. Use when the user wants to send a file, attachment, or document via WeCom.
| name | send-wecom-msg |
| description | Send a WeCom message to a user via the wecom CLI. Use when the user wants to send a WeCom message, notify someone, or communicate via WeCom. |
<quick_start> Send a message to a user:
wecom send --to-user USERID --message "Hello from the team" --session-id ${CLAUDE_SESSION_ID}
Send a markdown message:
wecom send --to-user USERID --message "**Bold** and `code`" --msg-type markdown --session-id ${CLAUDE_SESSION_ID}
If wecom is not in PATH, use npx wecom or the full path from WECOM_CLI_PATH.
</quick_start>
**Build Failed**
Error:
TypeError: Cannot read property 'id' of undefined at processData (src/utils.ts:42)
Please check the logs.
Send with:
wecom send --to-user LiSi --message "**Build Failed**\n\nError:\n\`\`\`\nTypeError: Cannot read property 'id' of undefined\n at processData (src/utils.ts:42)\n\`\`\`\n\nPlease check the logs." --msg-type markdown --session-id ${CLAUDE_SESSION_ID}
Send a greeting to WangWu
```bash
wecom send --to-user WangWu --message "Hello WangWu!" --session-id ${CLAUDE_SESSION_ID}
```
<anti_patterns> Never guess a user ID. If the recipient is unclear, ask: "Who should receive this message? Provide the WeCom user ID."
Always wrap the message in double quotes. Unquoted messages break when the shell interprets special characters. The wecom CLI returns specific exit codes: - `0`: Success - `1`: Invalid arguments or context file error - `2`: No WeCom bot context found - `3`: HTTP request failedReport the actual exit code and meaning to the user. </anti_patterns>
<success_criteria>
--to-user--session-id