get_page_item_script_labels
Reads script labels from InDesign page items using current selection, page/item indices, or object ID, so you can inspect metadata without manual searching.
Instructions
Read script labels from page items using selection or explicit identifiers
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_page_item_script_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Selection mode: current selection, page/item indices, page number and object id, or sweep all labelled items | CURRENT_SELECTION |
| objectId | No | When mode=PAGE_NUMBER_AND_OBJECT_ID, InDesign object id of the page item | |
| itemIndex | No | When mode=PAGE_ITEM, index of the page item (zero-based) | |
| pageIndex | No | When mode=PAGE_ITEM, index of the page containing the item (zero-based) | |
| pageNumber | No | When mode=PAGE_NUMBER_AND_OBJECT_ID, page number using documentOffset+1 |