---
title: "shortcut.registerExternal: Register Frontend Commands — Film kit command — Kition"
description: "Registers host-side (frontend) commands so they can be given keyboard shortcuts; host use only."
canonical: "https://developer.kition.ai/docs/kits/film/commands/shortcut.registerExternal"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/shortcut.registerExternal](https://developer.kition.ai/docs/kits/film/commands/shortcut.registerExternal)

# shortcut.registerExternal

**Register Frontend Commands.** Registers host-side (frontend) commands so they can be given keyboard shortcuts; host use only.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `commands` | `object[]` | no |  |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "shortcut.registerExternal" }]
}
```

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

## Result



```json
{
  "description": "The command's answer"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "commands": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "menu": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "shortcut": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
