index_addEntry
Adds an index entry for the current selection in Adobe InDesign, using a specified topic, optional subtopic, sort order, and page range settings to build a document index.
Instructions
Add an index entry for the current selection
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": {
"topic": "<topic>"
},
"name": "index_addEntry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | ||
| sortBy | No | ||
| subTopic | No | ||
| pageRange | No | single | |
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. | |
| pageReferenceType | No | regular |