ps_do
Run a named Photoshop operation with arguments and return its result as JSON instead of writing ExtendScript.
Instructions
Run one Photoshop operation by name (see ps_catalog), e.g. {"operation":"create_text_layer","args":{"text":"Hi"}}. Returns the operation result JSON. Prefer this over writing ExtendScript.
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": {
"operation": "<operation>"
},
"name": "ps_do"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | operation parameters | |
| operation | Yes | operation name from ps_catalog (without the photoshop_ prefix) |