text_getContent
Read the text content from a specific InDesign text frame by page and frame index, with options to target a document and include control characters.
Instructions
Get content from a text frame
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": {
"pageIndex": "<pageIndex>",
"frameIndex": "<frameIndex>"
},
"name": "text_getContent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Custom timeout in ms | |
| pageIndex | Yes | ||
| frameIndex | Yes | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. | |
| includeControlChars | No | Include BOM (\ufeff) and control chars (\u0004) in output |