photoshop_recipe_sky_blend
Fix a blown-out or dull sky by placing an external sky image and blending it with a gradient mask in a single undoable step.
Instructions
One-shot sky composite: places an external sky image, adds a layer mask, and applies a horizon gradient fade. Wrapped in a single undoable history step.
Users often say: replace sky, fix blown sky, better clouds, swap sky background.
Use when: the user provides a sky image path and native sky replacement is unavailable or manual blend is preferred. Do NOT use when: no sky_image_path is available — ask the user for an absolute file path first. Do NOT use when: fading the active subject layer only — use photoshop_recipe_gradient_fade.
Returns: { ok, summary, undo_history_states_consumed, details: { sky_image_path, layer_name, horizon_pct, feather_pct, direction } }.
Preconditions: active document; sky image file must exist on disk. Side effects: adds a placed sky layer with gradient mask; one undo reverts everything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Placement X offset in pixels (default 0) | |
| y | No | Placement Y offset in pixels (default 0) | |
| document_id | No | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. | |
| feather_pct | No | Half-width of the transition zone around the horizon (0-50, default 15) | |
| horizon_pct | No | Document-height percentage where sky meets landscape (0-100, default 50) | |
| sky_image_path | Yes | Absolute path to the sky image file (JPEG, PNG, etc.) | |
| use_native_sky | No | Try native Sky Replacement first when supported (default true when capable) |