Motion kit command

window.assignWorkspaceShortcut

Assign Shortcut to Workspace

Window ▸ Assign Shortcut to "<workspace>" Workspace: Shift+F10, Shift+F11 or Shift+F12. The frontend fills in the current workspace.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of window.assignWorkspaceShortcut
NameTypeRequiredDescription
slotstringnoShift+F10|Shift+F11|Shift+F12
workspacestringno

Call through motion_run

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

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

Result

Result JSON Schema
json
{
  "description": "The command's answer"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "slot": {
      "description": "Shift+F10|Shift+F11|Shift+F12",
      "type": "string"
    },
    "workspace": {
      "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.