Board kit command

card.setTarget

Change card target

Points an existing card at another workspace file or web address, keeping its place and size.

Kit
Board 0.1.0 (.kboard)
Changes the document
yes
Acts on
id (one id), which a run step’s on fills

Parameters

Parameters of card.setTarget
NameTypeRequiredDescription
filestringnoA workspace file, relative to the board's folder or rooted with /
idstringyesThe card
kind"note" | "table" | "board" | "file" | "link"noThe card's kind (from the file's extension when absent)
titlestringnoA link card's title
urlstringnoAn http, https or mailto address (instead of file)
viewobjectnoWhere in the target: { heading: [...] }, { blockId }, { page }

Call through board_run

text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "card.setTarget", "params": { "id": <string> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: file, kind, title, url, view. board_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": {
    "file": {
      "description": "A workspace file, relative to the board's folder or rooted with /",
      "type": "string",
      "x-khp-file": {
        "accept": [
          "md",
          "markdown",
          "ktable",
          "kboard"
        ],
        "access": "read"
      }
    },
    "id": {
      "description": "The card",
      "type": "string",
      "x-khp-types": [
        "Element"
      ]
    },
    "kind": {
      "description": "The card's kind (from the file's extension when absent)",
      "enum": [
        "note",
        "table",
        "board",
        "file",
        "link"
      ],
      "type": "string"
    },
    "title": {
      "description": "A link card's title",
      "type": "string"
    },
    "url": {
      "description": "An http, https or mailto address (instead of file)",
      "type": "string"
    },
    "view": {
      "additionalProperties": true,
      "description": "Where in the target: { heading: [...] }, { blockId }, { page }",
      "type": "object"
    }
  },
  "required": [
    "id"
  ],
  "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.