translate_en2zh

translate_en2zh只读扩展
英译中

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

Parameters

Param Type Required Default Description
words raw

Returns (data)

{ words }:与输入等长的中文译文字符串数组。

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

Field Type Required Description
words string[] 译文数组
Raw JSON Schema
{
  "type": "object",
  "properties": {
    "words": {
      "type": "array",
      "description": "译文数组",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "words"
  ]
}

Examples

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

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