send_ark_share

send_ark_share只读扩展
分享用户/群 Ark 卡片(NapCat 标准名)

Call via POST http://127.0.0.1:3000/send_ark_share (JSON params as the body) or WebSocket.

Parameters

Param Type Required Default Description
user_id uint
group_id uint
phone_number string ""

Returns (data)

{ arkMsg }:服务端生成的推荐联系人 Ark 卡片 JSON 字符串。

Every response is wrapped in the standard envelope: { "status": "ok", "retcode": 0, "data": ... }. The table below describes data.

Field Type Required Description
arkMsg string Ark 卡片 JSON 字符串
Raw JSON Schema
{
  "type": "object",
  "properties": {
    "arkMsg": {
      "type": "string",
      "description": "Ark 卡片 JSON 字符串"
    }
  },
  "required": [
    "arkMsg"
  ]
}

Examples

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/send_ark_share \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"user_id":10001,"group_id":123456,"phone_number":""}'
Using an AI assistant?

MCP-capable clients can discover and call this action directly — no hand-written HTTP. See MCP.