text_to_txt
Merges all text files in the current directory into a single output file, auto-detecting encoding and labeling each file with its name.
Instructions
扫描当前目录下所有文本文件(自动检测 UTF-8/UTF-16/GBK/Latin-1 编码),将文件内容合并输出到一个文本文件中。格式:每个文件以【文件名】标记分隔。适用于:文档汇总、语料准备、文本分析、合并散落的文本资料。无参数,默认扫描当前目录,跳过自身输出文件,输出到 merged_texts.txt。自动跳过 .venv 目录及 .gitignore 中忽略的内容。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No |