ps_runMenuCommand
Runs a Photoshop menu command by its stringID through app.runMenuItem, enabling MCP clients to trigger actions like flattenImage, copyMerged, or toggleRulers without manual UI navigation.
Instructions
Photoshop: run a menu item by its stringID (e.g. "flattenImage", "newPlacedLayer", "copyMerged", "selectAllLayers", "toggleRulers") via app.runMenuItem.
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": {
"command": "<command>"
},
"name": "ps_runMenuCommand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes |