Motion kit command
edit.history.list
History
Returns the branching undo history: every state with index, id, label, parent, depth, whether it is current or in the future, plus the current index and the number of branches.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- no
Parameters
None.
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "edit.history.list" }]
}The required parameters, with placeholders for their types: not a tested example. motion_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
branches | integer | no | |
current | integer | no | |
states | object[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"branches": {
"type": "integer"
},
"current": {
"type": "integer"
},
"states": {
"items": {
"additionalProperties": true,
"properties": {
"current": {
"type": "boolean"
},
"depth": {
"type": "integer"
},
"future": {
"type": "boolean"
},
"id": {
"type": "string"
},
"index": {
"type": "integer"
},
"label": {
"type": "string"
},
"line": {
"type": "boolean"
},
"parent": {}
},
"type": "object"
},
"type": "array"
}
},
"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.