photoshop_apply_gradient_map
Add a Gradient Map adjustment layer to remap tones for duotone or black-and-white looks, with optional reversed white-to-black gradient.
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 | Yes | Photoshop document id from photoshop_get_state / photoshop_list_documents. Send null or 0 to use the active document. A positive number activates that document before the tool runs. When no document is open, a stale id does not block the call. |