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
| Name | Type | Required | Description |
|---|---|---|---|
artboard | integer | no | read by the command beside its listed parameters |
center | number[] | no | |
dx | number | no | read by the command beside its listed parameters |
dy | number | no | read by the command beside its listed parameters |
text | string | no |
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
| Name | Type | Required | Description |
|---|---|---|---|
count | number | no |
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.