text_splitter
Divide large text files into smaller segments using line count or a specific delimiter. Specify input file, output directory, and splitting method for efficient document organization.
Instructions
Split text file by specified delimiter or line count
Input Schema
Name | Required | Description | Default |
---|---|---|---|
inputPath | Yes | Path to the input text file | |
outputDir | Yes | Directory where split files should be saved | |
splitBy | Yes | Split method: by line count or delimiter | |
value | Yes | Line count (number) or delimiter string |
Input Schema (JSON Schema)
{
"properties": {
"inputPath": {
"description": "Path to the input text file",
"type": "string"
},
"outputDir": {
"description": "Directory where split files should be saved",
"type": "string"
},
"splitBy": {
"description": "Split method: by line count or delimiter",
"enum": [
"lines",
"delimiter"
],
"type": "string"
},
"value": {
"description": "Line count (number) or delimiter string",
"type": "string"
}
},
"required": [
"inputPath",
"outputDir",
"splitBy",
"value"
],
"type": "object"
}