fetch_custom_face

fetch_custom_face只读扩展
获取自定义表情

通过 POST http://127.0.0.1:3000/fetch_custom_face(请求体为 JSON 参数)或 WebSocket 调用。

输入参数

参数 类型 必填 默认 说明
count int 10
return_type string "url"

返回 (data)

字符串数组:return_type=url 时为图片 URL,return_type=id 时为 emoji_id。

datastring[]

原始 JSON Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "description": "图片 URL 或 emoji_id(取决于 return_type)"
  }
}

调用示例

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/fetch_custom_face \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"count":10,"return_type":"url"}'
在用 AI 助手?

支持 MCP 的客户端可直接发现并调用本动作,无需手写 HTTP。见 MCP 接入