Run action on image
execute_actionRun a follow-up action on a completed generation's image.
After ``generate`` → ``wait_for_generation``, the response's
``processing_result.available_actions`` lists what's possible per slot.
Call this tool with one of those action types.
Args:
generation_uuid: UUID of the parent generation (from ``generate``).
action_type: One of the values from ``available_actions`` — e.g.
``"upscale_2x"``, ``"upscale_1_5x"``, ``"vary_strong"``,
``"vary_subtle"``, ``"pan_left"``, ``"pan_right"``,
``"pan_up"``, ``"pan_down"``, ``"zoom_out_2x"``,
``"zoom_out_1_5x"``, ``"img2vid_basic"``, ``"reroll"``.
parent_image_index: The slot index of the image to act on (0, 1,
2, or 3 for a 4-image grid). Required for per-slot actions;
omit for ``"reroll"`` (global action).
prompt: Optional replacement prompt. For ``vary_*`` you can steer
the variation with a new prompt; for ``img2vid_basic`` you can
describe the desired motion.
callback_url: Optional webhook URL (same as ``generate``).
Returns:
The newly created child generation record (same shape as
``generate``'s return — poll it with ``wait_for_generation``).
On failure, same ``isError`` contract as ``generate``:
``"auth"``, ``"payment_required"`` (with x402 challenge),
or ``"failed"``.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | Optional replacement prompt for vary/img2vid actions. | |
| action_type | Yes | Action from available_actions, e.g. upscale_2x, vary_strong, img2vid_basic, reroll. | |
| callback_url | No | HTTPS webhook URL for done/failed notifications. | |
| generation_uuid | Yes | UUID of the parent generation. | |
| parent_image_index | No | Slot index (0-3) of the image to act on. Omit for global actions like reroll. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||