Motion kit command

project.select

Select Project Items

Selects project items by id or name (`items`); `add` adds to the selection. Returns the selected ids; item commands without `items` act on it.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of project.select
NameTypeRequiredDescription
addbooleanno
items(integer | string)[]no[id|name]

Call through motion_run

text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "project.select" }]
}

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

Result

Result JSON Schema
json
{
  "items": {},
  "type": "array"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "add": {
      "type": "boolean"
    },
    "items": {
      "description": "[id|name]",
      "items": {
        "oneOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ],
        "x-khp-name": "name",
        "x-khp-role": "object",
        "x-khp-types": [
          "Item"
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Item"
      ]
    }
  },
  "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.