Photo kit command

action.play

Play Action

Runs action `action` from step `from` (0-based), stopping at the first error; answers {action, ran, failed?}.

Kit
Photo 0.1.0 (PSD, PSB, or .kphoto)
Changes the document
yes

Parameters

Parameters of action.play
NameTypeRequiredDescription
actionanynoname|index
coalescestringnoMerges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.
fromanynostep?

Call through photo_run

text
photo_run {
  "path": "<file>.psd",
  "steps": [{ "command": "action.play" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: action, coalesce, from. photo_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "action": {
      "description": "name|index"
    },
    "coalesce": {
      "description": "Merges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.",
      "type": "string"
    },
    "from": {
      "description": "step?"
    }
  },
  "returns": "{action, ran, failed?:{step, id, error}}. step and from are 0-based. Stops at the first error (the command still returns ok, with failed set) and leaves one history step per step that ran. Nested calls are supported up to 16 levels; cycles are rejected. Recording stores a named call rather than its expanded commands. Each step is checked with Session::authorize when one is installed.",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (photo_commands through @kition/[email protected], built from KitionAI/kition-photo@abe3f30). As data: commands.jsonl.