decompile_files
Decompile Java .class and .jar files into readable source code using the CFR decompiler. Supports batch processing with configurable multi-threading and output options.
Instructions
反编译多个 .class 或 .jar 文件(支持多线程)
Args:
file_paths: 要反编译的文件路径列表
output_dir: 输出目录,默认为当前目录下的 decompiled 文件夹
save_to_file: 是否直接保存到文件系统(推荐),默认为 True
show_progress: 是否显示详细进度信息,默认为 True
max_workers: 最大并发线程数,默认为 4(设为 1 则单线程处理)
Returns:
反编译结果信息
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": {
"file_paths": "<file_paths>"
},
"name": "decompile_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_paths | Yes | ||
| output_dir | No | ||
| save_to_file | No | ||
| show_progress | No | ||
| max_workers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |