Vector kit command
clipboard.exportPng
Clipboard as PNG
Answers the clipboard's objects as a PNG cropped to their visual bounds with a transparent background, at scale pixels per point.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
scale | integer | no | pixels per point, up to 64 |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "clipboard.exportPng" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: scale. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
dataBase64 | any | no | |
height | any | no | |
width | any | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"dataBase64": {},
"height": {},
"width": {}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"scale": {
"default": 1,
"description": "pixels per point, up to 64",
"type": "integer"
}
},
"returns": "{dataBase64, width, height (px)} the copied objects cropped to their visual bounds, transparent around them (dataBase64 null when the clipboard is empty)",
"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.