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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "photoshop_apply_gradient_map"
}
}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. |