photoshop_apply_gradient_map
Add a Gradient Map adjustment layer to remap image tones for duotone or black-and-white looks. Optionally reverse the gradient direction for inverted tonal mapping.
Instructions
Create a Gradient Map adjustment layer (black→white by default) for duotone/B&W tonal remapping.
Users often say: duotone look, gradient map B&W, remap tones.
Returns: JSON { ok, summary, details: { layer_name, reverse } }. Preconditions: active document. Side effects: adds a Gradient Map adjustment layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reverse | No | Reverse the gradient (white→black) | |
| 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. |