encode_utf8
Convert Chinese text to UTF-8 percent-encoded hex bytes with encode, or restore UTF-8 byte strings to Chinese with decode. Select via action parameter.
Instructions
UTF-8 编码与中文互转。encode=中文转 %XX 十六进制字节串;decode=字节串还原中文
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "encode_utf8"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| action | No | encode |