Get generation
get_generationFetch a generation by UUID (GET /api/gens/{uuid}/).
Args:
uuid: The UUID returned by ``generate``.
Returns:
The full generation record. If terminal, ``image_urls[]`` holds the
finished outputs and ``processing_result.slots[]`` the per-slot detail.
NOTE: a generation that failed server-side is a SUCCESSFUL tool call
returning ``processing_state: "failed"`` — always check the state,
never infer success from the absence of a tool error.
**Follow-up actions:** A completed generation's
``processing_result.available_actions`` maps slot indices to valid
action types. E.g. ``{"0": ["upscale_2x", "vary_strong", ...],
"global": ["reroll"]}``. Use ``execute_action`` with the ``uuid``,
a chosen ``action_type``, and the ``parent_image_index`` (the slot
key as an int) to run an action.
Hosted: a key obtained mid-session may be passed as
``_meta["maginary/api_key"]``.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Generation UUID from generate or execute_action. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||