download_file

download_file写操作扩展
下载文件(url 或 base64)到 data/downloads

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

Parameters

Param Type Required Default Description
url string ""
base64 string ""
name string ""

Returns (data)

{ file }

Returns the standard OneBot envelope; the data shape is not yet documented.

Examples

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/download_file \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"url":"","base64":"","name":""}'
Using an AI assistant?

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