clean_imported_text
Remove common typography errors in imported InDesign text: double paragraph breaks, line breaks, trailing spaces, wrong dashes, manual formatting, bullet lists, hardcoded chapter numbers. Prepare text for consistent styles.
Instructions
Clean imported text from common typography sins: double paragraph breaks, line breaks instead of paragraphs, trailing spaces, hyphens instead of dashes, manual formatting, bullet lists, hardcoded chapter numbers, etc.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clean_imported_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixLists | No | Remove manual bullet lists and dashes | |
| fixDashes | No | Fix hyphens to proper n-dashes for ranges/thoughts | |
| fixSpaces | No | Remove trailing spaces and multiple spaces | |
| pageIndex | No | Page index | |
| frameIndex | No | Text frame index to clean | |
| fixFormatting | No | Remove manual bold/italic (prepare for character styles) | |
| fixParagraphs | No | Fix double paragraph breaks and line breaks | |
| useSelectedFrame | No | Clean currently selected text frame | |
| fixChapterNumbers | No | Remove hardcoded chapter numbers |