extract_from_text
Extract text file contents along with word count, line count, and key phrases. Provides structured data for further analysis or validation.
Instructions
Extract content from a text file (.txt).
Args:
text_path: Path to the text file
mode: Extraction mode (currently only 'content' supported)
Returns:
Dictionary with content, word_count, line_count, and key_phrases
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": {
"text_path": "<text_path>"
},
"name": "extract_from_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | content | |
| text_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||