Motion kit command

shortcut.preset

Keyboard Shortcut Preset

Manages keyboard shortcut presets: `op` select (`name`), new, duplicate (`from`), delete or rename (`newName`).

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of shortcut.preset
NameTypeRequiredDescription
fromstringno
namestringno
newNamestringno
op"select" | "new" | "duplicate" | "delete" | "rename"no

Call through motion_run

text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "shortcut.preset" }]
}

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

Result

Result of shortcut.preset
NameTypeRequiredDescription
presetstringno
presetsstring[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "preset": {
      "type": "string"
    },
    "presets": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "from": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "newName": {
      "type": "string"
    },
    "op": {
      "enum": [
        "select",
        "new",
        "duplicate",
        "delete",
        "rename"
      ],
      "type": "string"
    }
  },
  "type": "object"
}

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