sort_entities
Reorders triggers, actions, fields, list items, and other Albato Builder entities in one call by applying the desired ID order across a version; validates IDs before writing and supports dry runs.
Instructions
Entity order in one call — up to 100 sorts in one version: triggers and actions (resource "triggers", "actions"), their fields ("actions/fields" with parentIds {actionId}), row sections, list items and anything that has sorting in the builder. An item is {resource, parentIds, ids}: ids — the desired order. You may list only some: the named ones move to the start in this order, the rest follow them as they were. First all items are validated (a foreign or repeated ID — rejection, nothing is written); the response shows the order before and after with names. Revert — revert_fixes by applyId (confirmed: true). dryRun: true — only show the result. Status handlers are not here: the API has no sorting for them; how to reorder them — describe_resource "status-handlers".
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": {
"appId": "<appId>",
"versionId": "<versionId>",
"items": "<items>"
},
"name": "sort_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | App ID | |
| items | Yes | Sorts: [{resource, parentIds, ids}] | |
| dryRun | No | Only show the order before and after, write nothing | |
| versionId | Yes | Version ID, shared by all items |