Vector kit command

clipboard.importText

Load Text into Clipboard

Replaces the kit's clipboard with point text of the given text in the default type style; run edit.paste afterwards.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of clipboard.importText
NameTypeRequiredDescription
artboardintegernoread by the command beside its listed parameters
centernumber[]no
dxnumbernoread by the command beside its listed parameters
dynumbernoread by the command beside its listed parameters
textstringno

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "clipboard.importText" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: artboard, center, dx, dy, text. vector_run answers the step’s result in completed[i].result.

Result

Result of clipboard.importText
NameTypeRequiredDescription
countnumberno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "count": {
      "type": "number"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "artboard": {
      "description": "read by the command beside its listed parameters",
      "type": "integer"
    },
    "center": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "dx": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "dy": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "text": {
      "type": "string"
    }
  },
  "returns": "{count}; then run edit.paste",
  "type": "object"
}

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