encode_base64
Encode or decode Base64 data for text strings and images. Convert local images to data URLs, or decode Base64 back into image files using an output path.
Instructions
Base64 编码/解码。mode=text 处理字符串;mode=image 时:encode 将本地图片转为 dataURL,decode 将 base64 写回图片文件(需 output_path)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | text | |
| text | Yes | ||
| action | No | encode | |
| output_path | No | image 模式 decode 时的输出文件路径 |