Board kit command

edit.copy

Copy

Reads the elements into a board clipboard payload without changing the board; pass the payload to edit.paste to place copies on any page.

Kit
Board 0.1.0 (.kboard)
Changes the document
no
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of edit.copy
NameTypeRequiredDescription
idsstring[]yesThe elements to copy; the answer is a board clipboard payload for edit.paste

Call through board_run

text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "edit.copy", "params": { "ids": <string[]> } }]
}

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

Result

Result of edit.copy
NameTypeRequiredDescription
elementsany[]yesThe copied elements, for edit.paste
typestringyesapplication/x-kition-board+json
versionintegeryes
Result JSON Schema
json
{
  "additionalProperties": false,
  "properties": {
    "elements": {
      "description": "The copied elements, for edit.paste",
      "items": {},
      "type": "array"
    },
    "type": {
      "description": "application/x-kition-board+json",
      "type": "string"
    },
    "version": {
      "type": "integer"
    }
  },
  "required": [
    "elements",
    "type",
    "version"
  ],
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "ids": {
      "description": "The elements to copy; the answer is a board clipboard payload for edit.paste",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-khp-types": [
        "Element"
      ]
    }
  },
  "required": [
    "ids"
  ],
  "type": "object"
}

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