toc_createStyle
Create or modify a Table of Contents style in an InDesign document, defining entry and title styles, page numbering, and included paragraph styles.
Instructions
Create or modify a Table of Contents style 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": {
"name": "<name>"
},
"name": "toc_createStyle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| title | No | ||
| entryStyle | No | ||
| titleStyle | No | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. | |
| pageNumberStyle | No | afterEntry | |
| replaceExisting | No | ||
| betweenEntryAndNumber | No | ||
| includeParagraphStyles | No |