photoshop_play_action
Automate repetitive Photoshop edits by replaying a named action from an action set, executing its recorded steps.
Instructions
Play a named action from a named action set in the Actions panel. The action runs whatever steps were recorded; this tool does not limit them.
Use when: the user names an existing action and action set to replay. Do NOT use when: no recorded action exists — use a photoshop_recipe_* tool or an atomic photoshop_* tool. Do NOT use when: you need to run arbitrary JSX — use photoshop_execute_script.
Returns: the action result text. Preconditions: actionName and actionSetName must match the Actions panel; an open document if the action expects one. Side effects: whatever the action recorded (it may delete layers, change pixels, or save). photoshop_undo reverts only the history steps the action left behind.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actionName | Yes | Name of the action to play | |
| 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. | |
| actionSetName | Yes | Name of the action set containing the action |