gallery_page
Retrieves a page of image thumbnails for browsing generated or imported images in the gallery UI. Supports pagination with configurable page size and origin filter.
Instructions
Return a page of image thumbnails for the gallery UI.
App-only helper called by the gallery UI to load additional pages when the user paginates. Not intended for direct model invocation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number. | |
| origin | No | Which images to include. ``"generated"`` (default) shows images produced by ``generate_image``/``edit_image`` plus all pending generations (a pending generation always counts as generated). ``"imported"`` shows images brought in via upload/fetch/base64 ingestion. ``"all"`` shows both. | generated |
| page_size | No | Number of items per page (1-24, default 12). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |