photoshop_apply_gradient_map
Creates a Gradient Map adjustment layer to remap tones for duotone or black-and-white looks, with an option to reverse the gradient from white to black.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "photoshop_apply_gradient_map"
}
}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. |