Film kit command
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)
- 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
Result JSON Schema
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/[email protected] and the kit itself (film_commands through @kition/[email protected], built from KitionAI/kition-film@375db59). As data: commands.jsonl.