text_setHyphenation
Set or disable paragraph hyphenation in an open InDesign document by page, frame, and paragraph index, with controls for word spacing, letter spacing, and minimum word length.
Instructions
Set hyphenation settings for a paragraph
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>",
"paragraphIndex": "<paragraphIndex>",
"hyphenation": "<hyphenation>"
},
"name": "text_setHyphenation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| hyphenation | Yes | ||
| wordSpacing | No | ||
| letterSpacing | No | ||
| minWordLength | No | ||
| paragraphIndex | Yes | ||
| maxConsecutiveHyphens | No |