Arrange, align, and fit collection items
reprocess_assetFREE and SYNCHRONOUS (no jobId — do not poll), no AI. Rebuild a staged, tileset, or terrain collection's presentation layout: anchor chooses the shared fixed point and cellOffsets apply per-item nudges. Modern manifest revisions are recomposed from their independent item PNGs and are never re-sliced; legacy staged and tileset revisions retain the source-sheet re-cut path, where cellInset can remove separator bleed. For a manifest revision, fitItemIndices makes those items fill their shared cell as much as possible while preserving aspect ratio. Legacy terrain must be upgraded to independent items first. Omitted fields keep the revision's current values; send cellOffsets:[] or cellInset:0 to clear. Returns a grid summary; call get_asset afterwards for fresh presigned tile URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchor | No | Where each sprite is placed inside its cell. "bottom-middle" is the default for sprites that stand on the ground. | |
| assetId | Yes | Asset id or slug (staged, tileset, or manifest-backed terrain). | |
| cellInset | No | Legacy source sheets only: pixels shaved off every side of each cell to drop neighbouring bleed (0-32). Ignored for independent-item manifests. Pass 0 to clear. | |
| cellOffsets | No | Per-cell pixel nudges, in tile-index order. Pass [] to clear all nudges. | |
| iterationId | Yes | Collection revision (iteration) id to arrange. | |
| fitItemIndices | No | Independent-item manifests only: itemIndex values to fit to the shared cell while preserving aspect ratio. This is a one-shot operation; omitted items keep their saved size. |