Xpersona
D

Dingtalk File Send

CLAWHUB · Unverified

Upload and send files to DingTalk users. Auto-detects account from current session. Use when: user asks to send/forward a file/document/PDF/image via DingTalk.

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.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 s17abm5q1xz0zmfzhmpwvvbhdd83k1s1:dingtalk-file-send
  1. Install using `clawhub skill install s17abm5q1xz0zmfzhmpwvvbhdd83k1s1:dingtalk-file-send` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/kenriou/dingtalk-file-send before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-kenriou-dingtalk-file-send/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

47,229 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: dingtalk-file-send
description: "Upload and send files to DingTalk users. Auto-detects account from current session. Use when: user asks to send/forward a file/document/PDF/image via DingTalk."
metadata:
  openclaw:
    emoji: "📤"
    requires:
      bins: ["curl", "jq"]
    config:
      read:
        - "~/.openclaw/openclaw.json (channels.dingtalk.accounts, bindings)"
    env:
      read:
        - "OPENCLAW_AGENT_ID (optional, auto-set by runtime)"
---

# DingTalk File Send Skill

Upload files to DingTalk media server and send them to specified users.

**Automatically detects DingTalk account from current session binding.**

## When to Use

✅ **USE this skill when:**

- "Send this PDF to [user]"
- "Forward this document via DingTalk"
- "Share this file with my boss"
- "Upload and send [filename]"

## Configuration (Automatic)

This skill **automatically detects** the DingTalk account from your current session:

**How it works:**
1. Reads current agent ID from OpenClaw runtime context
2. Looks up the binding in `~/.openclaw/openclaw.json`
3. Matches `agentId` → `accountId` → DingTalk credentials

**Binding example:**
```json
{
  "bindings": [
    {
      "agentId": "dingtalk-office",
      "match": {
        "channel": "dingtalk",
        "accountId": "office"
      }
    }
  ],
  "channels": {
    "dingtalk": {
      "accounts": {
        "office": {
          "clientId": "your_client_id",
          "clientSecret": "xxx",
          "robotCode": "your_robot_code"
        }
      }
    }
  }
}
```

**Note:** In DingTalk's API, `clientId` is used as `appKey` for authentication.

## Workflow

```
1. Detect current agentId from session context
2. Look up binding: agentId → accountId
3. Read credentials from OpenClaw config by accountId
4. Get access token
5. Upload file to DingTalk media server
6. Send file message to recipient
```

## Commands

### Step 1: Detect Account from Current Session

```bash
OPENCLAW_CONFIG=~/.openclaw/openclaw.json

# Get current agent ID from environment (set by OpenClaw runtime)
AGENT_ID="${OPENCLAW_AGENT_ID:-dingtalk-office}"

# Look up accountId from bindings
ACCOUNT_ID=$(jq -r ".bindings[] | select(.agentId == \"$AGENT_ID\") | .match.accountId" $OPENCLAW_CONFIG)

# Fallback: if no binding found, use agent ID suffix
if [ -z "$ACCOUNT_ID" ] || [ "$ACCOUNT_ID" = "null" ]; then
  # Extract account from agent ID (e.g., "dingtalk-office" → "office")
  ACCOUNT_ID=$(echo "$AGENT_ID" | sed 's/dingtalk-//')
fi

# Read credentials (clientId is used as appKey)
APP_KEY=$(jq -r ".channels.dingtalk.accounts[\"$ACCOUNT_ID\"].clientId" $OPENCLAW_CONFIG)
APP_SECRET=$(jq -r ".channels.dingtalk.accounts[\"$ACCOUNT_ID\"].clientSecret" $OPENCLAW_CONFIG)
ROBOT_CODE=$(jq -r ".channels.dingtalk.accounts[\"$ACCOUNT_ID\"].robotCode" $OPENCLAW_CONFIG)

# Validate
if [ "$APP_KEY" = "null" ] || [ "$APP_SECRET" = "null" ] || [ "$ROBOT_CODE" = "null" ]; then
  echo "❌ Account '$ACCOUNT_ID' not found in OpenClaw config."
  echo "Current 

_meta.json

{
  "ownerId": "kn7d1ef97s0dv6bnqf40he4jdn83k489",
  "slug": "dingtalk-file-send",
  "version": "1.2.2",
  "publishedAt": 1774414889115
}

skill-card.md

## Description:

Upload and send files to DingTalk users. Auto-detects account from current session. Use when: user asks to send/forward a file/document/PDF/image via DingTalk.

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

Employees and agents use this skill to upload local files to DingTalk and send them to specified DingTalk users through a configured OpenClaw DingTalk account.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can automatically use local OpenClaw DingTalk credentials and upload selected local files to DingTalk.

Mitigation: Require explicit confirmation that shows the file path, recipient user ID, and resolved DingTalk account before upload or send.

Risk: Fallback account selection can send through an unintended DingTalk account when no binding is found.

Mitigation: Remove fallback account selection behavior or require the account binding to resolve before continuing.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/kenriou/skills/dingtalk-file-send)
- [DingTalk access token API](https://api.dingtalk.com/v1.0/oauth2/accessToken)
- [DingTalk media upload API](https://oapi.dingtalk.com/media/upload)
- [DingTalk robot message API](https://api.dingtalk.com/v1.0/robot/oToMessages/batchSend)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown with inline bash code blocks]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Includes command examples for selecting a DingTalk account, uploading a file, sending the message, and checking delivery status.]

## Skill Version(s):

1.2.2 (source: server release evidence)

## 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 Dingtalk File Send and adjacent AI workflows.