layer_reorder
Move a layer to a new position in the layer stack. Reorder layers in an open InDesign document by specifying current and target indices.
Instructions
Move a layer to a new position in the layer stack
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": {
"layerIndex": "<layerIndex>",
"newIndex": "<newIndex>"
},
"name": "layer_reorder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newIndex | Yes | ||
| layerIndex | 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. |