Design kit command

annotation.editCategory

Edit annotation category

Renames or recolours an annotation category.

Kit
Design 0.1.0 (.kdesign)
Changes the document
yes

Parameters

Parameters of annotation.editCategory
NameTypeRequiredDescription
assetsbooleannoread by the command beside its listed parameters
colorstringno
idinteger | stringnoan id; id or name
namestringno
pagestringnoread by the command beside its listed parameters
querystringnoread by the command beside its listed parameters
serverstringnoread by the command beside its listed parameters

Call through design_run

text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "annotation.editCategory" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: assets, color, id, name, page, query, server. design_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "assets": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "color": {
      "type": "string"
    },
    "id": {
      "description": "an id; id or name",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ]
    },
    "name": {
      "type": "string"
    },
    "page": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "query": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "server": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    }
  },
  "type": "object"
}

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