post_process
Converts downloaded manga albums into ZIP, PDF, or long-image files with configurable output paths, optional encryption, and original-file cleanup.
Instructions
对已下载的本子进行后处理(生成 Zip、PDF 或长图)。
参数:
album_id: 要处理的本子 ID。
process_type: 后处理类型,可选值为 "zip", "img2pdf", "long_img"。
params: 后处理参数字典。支持:
- dir_rule: 输出路径规则。格式: {"rule": "Bd/{Atitle}.zip", "base_dir": "D:/Comics"}。
- delete_original_file: 布尔值,处理完成后是否删除原始文件。
- level: album(默认整本)或 photo(每章单独导出)。
- filename_rule: 同目录 DSL 的单段规则;默认使用 [JM车号]标题。
- encrypt: ZIP/PDF 加密参数,可用 password 或 type: random。
返回: 包含以下内容的字典: - status: "success" 或 "error" - process_type: 后处理类型 - album_id: 本子 ID - output_path: 输出文件/目录的绝对路径 - output_paths: 插件实际生成的全部文件绝对路径 - is_directory: 输出是否为目录 - message: 成功或错误消息
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": {
"album_id": "<album_id>",
"process_type": "<process_type>"
},
"name": "post_process"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| album_id | Yes | ||
| process_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||