get_text_content
Extract raw text from any selected frame, insertion point, or specific frame in Adobe InDesign, normalizing line breaks to spaces for clean output.
Instructions
Extract raw text content from selected text frame, insertion point, or specific frame. Automatically handles different selection types and normalizes line breaks to spaces. RECOMMENDED for text extraction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxLength | No | Maximum text length to return (0 = unlimited) | |
| pageIndex | No | Page index for frameIndex | |
| frameIndex | No | Optional: specific frame index if nothing selected | |
| normalizeSpaces | No | Convert line breaks to spaces and remove multiple spaces |