---
title: "window.assignWorkspaceShortcut: Assign Shortcut to Workspace — Motion kit command — Kition"
description: "Window ▸ Assign Shortcut to \"<workspace>\" Workspace: Shift+F10, Shift+F11 or Shift+F12. The frontend fills in the current workspace."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/window.assignWorkspaceShortcut"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/window.assignWorkspaceShortcut](https://developer.kition.ai/docs/kits/motion/commands/window.assignWorkspaceShortcut)

# 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); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `slot` | `string` | no | Shift+F10\|Shift+F11\|Shift+F12 |
| `workspace` | `string` | no |  |

## 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



```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/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
