describe_image_to_file
Describes image content and writes the result to a UTF-8 text file, bypassing terminal encoding issues on Windows. Automatically generates a .md file next to the image when no output path is specified.
Instructions
识别图片内容并保存到文件(解决 Windows 终端中文乱码问题)。
将AI识别结果直接写入UTF-8编码的文本文件,完全绕过终端编码问题。 如果未指定输出路径,默认在原图同目录下生成同名的 .md 文件。
参数:
image_path: 图片的绝对路径
output_path: 输出文件的路径(可选,默认与原图同名 .md)
prompt: 自定义提示词
max_tokens: 最大输出长度
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | ||
| output_path | No | ||
| prompt | No | ||
| max_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |