fileOperation
Perform file operations including delete, rename, read, write, list, JSON/Excel conversion, image compression, and OCR text extraction within the LuckyCola MCP Server environment.
Instructions
对FILE_PATH目录下的文件进行删除、重命名、读取和写入操作,以及图片压缩
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | 操作类型:delete/read/rename/write/list/json2xlsx/xlsx2json/compressImage/ocrToImageBase64 | |
| filename | Yes | 要操作的文件名(相对于FILE_PATH),当为json2xlsx任务时为.xlsx的文件名 | |
| newFilename | No | 新文件名,注意word文件以.docx结尾,excel文件以.xlsx结尾 | |
| content | No | 写入内容,仅在write时需要 | |
| mode | No | 写入模式,append为追加,overwrite为覆盖,默认覆盖 | |
| onlyFiles | No | list操作时是否只列普通文件,默认false | |
| quality | No | 图片压缩质量,1-100,默认80 | |
| output | No | 压缩后输出文件名,默认在原文件名后加_compressed |