CAD kit command

command.list

Command List

Answers the commands the command line knows: each id with the name a person types for it, its aliases, its title, its menu path, whether it asks for its input in prompts, and whether the command line may start it; `search` keeps the commands whose id, name, title or an alias contains it.

Kit
CAD 0.1.0 (.dxf)
Changes the document
no

Parameters

Parameters of command.list
NameTypeRequiredDescription
searchstringno

Call through cad_run

text
cad_run {
  "path": "<file>.dxf",
  "steps": [{ "command": "command.list" }]
}

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

Result

Result of command.list
NameTypeRequiredDescription
commandsobject[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "commands": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "aliases": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "commandLine": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "interactive": {
            "type": "boolean"
          },
          "menu": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "search": {
      "type": "string"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (cad_commands through @kition/[email protected], built from KitionAI/kition-cad@1ec542d). As data: commands.jsonl.