Design kit command

annotation.removeCategory

Delete annotation category

Deletes an annotation category; its annotations stay uncategorised.

Kit
Design 0.1.0 (.kdesign)
Changes the document
yes

Parameters

Parameters of annotation.removeCategory
NameTypeRequiredDescription
assetsbooleannoread by the command beside its listed parameters
idinteger | stringnoan id; id or name
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.removeCategory" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: assets, id, 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"
    },
    "id": {
      "description": "an id; id or name",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "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"
    }
  },
  "returns": "{id, uncategorized (how many annotations were in it)}  (its annotations stay, without a category)",
  "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.