<< All versions

Skill v1.0.1

currentAutomated scan100/100
espressif/esp-claw/cap-im-platform

+3 new

──Details
PublishedOctober 25, 2026 at 01:49 PM
Content Hashsha256:9bf764658a3470e0...
Git SHA9b23c15bc287
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 4.4 KB)
SKILL.md4.4 KBactive
SKILL.md · 101 lines · 4.4 KB

version: "1.0.1" { "name": "cap_im_platform", "description": "How to send additional text, images, or local files back to IM chats.", "metadata": { "cap_groups": [ "cap_im_feishu", "cap_im_qq", "cap_im_tg", "cap_im_wechat" ] } }


IM Messaging

Use this skill only when the user asks to send an extra text message, image, or local file through an IM channel. Normal agent replies are sent automatically and do not need IM send tools.

Channel Selection

Prefer the current request source_cap. Do not send through another IM channel unless the user explicitly asks. Do not invent a target chat when the current context or user request does not provide one.

ChannelTextImageFileChat target
Feishu cap_im_feishufeishu_send_messagefeishu_send_imagefeishu_send_fileMay omit chat_id for current inbound replies when context has it. Explicit targets may be Feishu chat_id values, or user open_id values beginning with ou_.
QQ cap_im_qqqq_send_messageqq_send_imageqq_send_fileMay omit chat_id for current inbound replies when context has it. Explicit targets are normalized as c2c:<openid> or group:<group_openid>.
Telegram cap_im_tgtg_send_messagetg_send_imagetg_send_fileMay omit chat_id for current inbound replies when context has it. Explicit targets are numeric strings such as 123456789 or -1001234567890.
WeChat cap_im_wechatwechat_send_messagewechat_send_imageNot supportedAlways requires explicit chat_id; the callable implementation does not fall back to runtime context. Preserve concrete room or contact ids exactly.

Chat Targets

For Feishu, QQ, and Telegram, pass explicit chat_id when starting a new outbound send or when the target would otherwise be ambiguous. For WeChat, always pass chat_id.

Rules

  • Call the direct channel capability: text tools for text, image tools for image files, and file tools for local non-image files.
  • For WeChat, always pass chat_id and use only wechat_send_message or wechat_send_image; generic non-image file send is not available.
  • Use image tools for .jpg, .jpeg, .png, .gif, or .webp. Use file tools for non-image files such as .txt, .json, .log, .csv, .pdf, or archives.
  • path must be a real local device path. If unknown, inspect storage first with file tools such as list_dir.
  • Do not pass remote URLs directly to IM send tools. Download or locate the file on local storage first.
  • In this demo app, inbound IM attachments are typically saved under <storage_root>/inbox.
  • caption is optional for image and file sends. For Feishu media sends, caption is delivered as a follow-up text message.
  • Feishu text is sent through a Markdown-capable interactive card when possible, with fallback to plain text if card construction or delivery fails.
  • If the send tool returns an error, report the error directly. Do not retry or switch channels unless the user asks.
  • If a capability returns success text or JSON such as {"ok":true}, tell the user the message or file has already been sent; do not phrase it as pending.
  • QQ generic file delivery may still depend on QQ platform-side support. If qq_send_file fails, report the failure clearly and only consider image send when the file is actually an image.

Workflow

  1. Confirm the target channel from source_cap or the user's explicit request.
  2. Determine whether the user wants text, an image, or a generic file.
  3. Resolve the target chat according to the channel rules above.
  4. Resolve the local file path when sending media.
  5. Call the matching send capability directly.
  6. After success, tell the user the message, image, or file has already been sent.

Examples

Reply with text to the current QQ, Feishu, or Telegram chat:

json
{
"message": "The task has been completed."
}

Send text to an explicit Feishu user:

json
{
"chat_id": "ou_xxx123456",
"message": "Latest status: device is online."
}

Send an image to an explicit Telegram chat:

json
{
"chat_id": "-1001234567890",
"path": "<storage_root>/inbox/capture.jpg",
"caption": "Here is the image."
}

Send a file to an explicit Feishu chat:

json
{
"chat_id": "oc_xxx123456",
"path": "<storage_root>/reports/status.json",
"caption": "Latest report."
}

Send text to a WeChat chat:

json
{
"chat_id": "room123",
"message": "Latest status: device is online."
}
← v1.0.0All versions