Xpersona
F

Feishu Send Media

CLAWHUB · Unverified

Send images, files, audio, video and other media to Feishu users or chats. Use when user asks to send, share, or transfer media files via Feishu direct messa... Skill: Feishu Send Media Owner: yaqiangsun Summary: Send images, files, audio, video and other media to Feishu users or chats. Use when user asks to send, share, or transfer media files via Feishu direct messa... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-31T10:51:10.131Z | user 优化发送流程:强制复制到workspace、验证步骤更严格、自动错误恢复(重试/base64/云盘)、错误处理表、5条强制规则 v1.0.1 | 2026-03-25T01:59:57.474Z | auto - Added high-reliability

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17068xhshg5natv4qvygqc1a583gd5x:feishu-send-media
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-yaqiangsun-feishu-send-media/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

12,684 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: feishu-send-media
description: |
  Send images, files, audio, video and other media to Feishu users or chats. Use when user asks to send, share, or transfer media files via Feishu direct message or group chat.
---

# Feishu Send Media

Send media files (images, documents, audio, video) directly to Feishu users or chats using the `message` tool.

## Sending Media

### Basic File Send

Use the `message` tool with `action: send` and `path` parameter:

```json
{
  "action": "send",
  "target": "ou_xxx",  // user open_id or chat_id
  "path": "/path/to/file.pdf"
}
```

**Supported types:**
- Images: `.png`, `.jpg`, `.jpeg`, `.gif`, `.webp`
- Documents: `.doc`, `.docx`, `.pdf`, `.txt`, `.rtf`
- Audio: `.mp3`, `.wav`, `.m4a`
- Video: `.mp4`, `.mov`

**Parameters:**
- `target`: User `open_id` (e.g., `ou_3ac66d1ad7b8c1xxxxxxxxxxxxxxs`) or chat ID
- `path`: Absolute path to local file
- Optional `filename`: Override display name

### Sending to Group Chats

Use chat_id as target:

```json
{
  "action": "send",
  "target": "oc_xxx",  // group chat ID
  "path": "/path/to/file.pdf"
}
```

### Inline Images

For images to display inline in the message (not as attachments), use the `image` parameter with base64:

```json
{
  "action": "send",
  "target": "ou_xxx",
  "image": "data:image/png;base64,..."
}
```

## High-Reliability Workflow (Recommended)

**Follow these steps exactly for maximum success rate:**

### Step 1: Copy file to workspace (with deduplication)

```bash
# Extract filename from source path
filename=$(basename "/source/path/to/file.png")

# Copy to workspace (overwrite if exists)
cp -f "/source/path/to/file.png" "~/.openclaw/workspace/${filename}"

# Verify copy succeeded
if [ ! -f "~/.openclaw/workspace/${filename}" ]; then
  echo "ERROR: File copy failed"
  exit 1
fi
```

**Why overwrite (-f):** Ensures fresh copy every time, avoids stale file issues.

### Step 2: Get absolute path and validate

```bash
# Get absolute path
abs_path=$(cd ~/.openclaw/workspace && pwd)/${filename}

# Validate file exists and is readable
if [ ! -r "$abs_path" ]; then
  echo "ERROR: File not readable: $abs_path"
  exit 1
fi

# Log for debugging
echo "Sending: $abs_path"
```

### Step 3: Send with message tool

```json
{
  "action": "send",
  "target": "ou_xxx",
  "path": "/Users/casia/.openclaw/workspace/filename.png"
}
```

### Step 4: Verify response

Check tool response:
- ✅ Success: `"messageId"` field present
- ❌ Failure: `"error"` field present

## Automatic Error Recovery (Critical)

If Step 4 fails, automatically attempt fallbacks in order:

### Fallback 1: Retry once with workspace path
```bash
# Sometimes transient failure, retry
cp -f "/source/path/to/file.png" "~/.openclaw/workspace/${filename}"
# Resend
```

### Fallback 2: Use base64 for images (especially .png, .gif)
```bash
# Convert to base64
base64_string=$(base64 -i "$abs_path")

# Send as inline image
{
  "action": "send",
  "target": "ou_xxx",
  "image": "data:image/png;base64,${base

_meta.json

{
  "ownerId": "kn75btn180w2vhgvk1awrqbwwh83gkxa",
  "slug": "feishu-send-media",
  "version": "1.0.2",
  "publishedAt": 1774954270131
}

skill-card.md

## Description:

Send images, files, audio, video, and other media to Feishu users or chats via direct message or group chat.

This skill is ready for commercial/non-commercial use.

## Publisher:

[yaqiangsun](https://clawhub.ai/user/yaqiangsun)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to send local media files to Feishu users or group chats, including path-based attachments and base64 inline images.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Media may be sent or uploaded to Feishu Drive without a clear confirmation step.

Mitigation: Require explicit user confirmation of recipient, file path, and upload method before sending or using the Drive fallback.

Risk: Suggested permission changes can broaden local file readability.

Mitigation: Avoid changing permissions unless necessary, confirm before running permission changes, and clean up workspace copies after sending.

## Reference(s):


## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown with inline bash and JSON examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Includes path-based send instructions, base64 image fallback, Feishu Drive fallback, and verification checklist.]

## Skill Version(s):

1.0.2 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Feishu Send Media and adjacent AI workflows.