get_text_content
Extracts raw text from selected InDesign text frames, insertion points, or a specified frame, normalizing line breaks to spaces and optionally limiting output length.
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.
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": "get_text_content"
}
}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 |