get_text
Extract text from InDesign frames, pages, or the entire document for reading, analysis, or further processing.
Instructions
Reads text from frames, paragraphs, or pages in the active document.
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": {
"target": "<target>"
},
"name": "get_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (when target='page') | |
| target | Yes | What to read: current selection, entire page, entire document, or a specific frame | |
| frameIndex | No | Frame index on the page (when target='frame') |