set_collection_positions
Set the order of articles in a collection (e.g. a book's chapters): a list sorted by position (list_entries with the collection's subscriptionId and sortBy: position) shows lower positions first, then articles without one. Pass exactly one of entryIds or positions; articles you don't name keep their positions, so clear stale ones with null. Articles must already be in the collection (add_to_collection). Returns the IDs whose position changed and those not in the collection. Fails with a not-found error if the collection isn't the user's.
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": {
"collectionId": "<collectionId>"
},
"name": "set_collection_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entryIds | No | Entry IDs in order: they get positions 1, 2, 3, … | |
| positions | No | Entries and their positions, to move a few without renumbering the rest | |
| collectionId | Yes | The collection's subscription ID |