Motion kit command
command.list
List Commands
Lists the engine's commands with id, label and menu path; `filter` matches ids and labels, `enabledOnly` drops disabled ones, `schemas: true` adds each parameter JSON Schema. Agents usually use <prefix>_commands instead.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
enabledOnly | boolean | no | |
filter | string | no | |
schemas | boolean | no | add each command's params JSON Schema |
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "command.list" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: enabledOnly, filter, schemas. motion_run answers the step’s result in completed[i].result.
Result
Result JSON Schema
json
{
"items": {
"additionalProperties": true,
"properties": {
"enabled": {
"type": "boolean"
},
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"menu": {
"items": {
"type": "string"
},
"type": "array"
},
"params": {
"type": "string"
},
"shortcut": {
"type": "string"
},
"why": {}
},
"type": "object"
},
"type": "array"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"enabledOnly": {
"type": "boolean"
},
"filter": {
"type": "string"
},
"schemas": {
"description": "add each command's params JSON Schema",
"type": "boolean"
}
},
"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.