Photo kit command

edit.toolbar

Toolbar…

Sets which tools the toolbar shows and their `order`, or resets it; app-wide UI customisation.

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

Parameters

Parameters of edit.toolbar
NameTypeRequiredDescription
coalescestringnoMerges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.
hiddenstring[]no
orderstring[]no
resetbooleanno

Call through photo_run

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

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

Result

Result of edit.toolbar
NameTypeRequiredDescription
hiddenany[]no
orderany[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "hidden": {
      "type": "array"
    },
    "order": {
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "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"
    },
    "hidden": {
      "items": {
        "description": "like <tool>",
        "type": "string"
      },
      "type": "array"
    },
    "order": {
      "items": {
        "description": "like <tool>",
        "type": "string"
      },
      "type": "array"
    },
    "reset": {
      "default": false,
      "type": "boolean"
    }
  },
  "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.