Vector kit command
file.newPresets
New Document Presets
Answers the New Document presets by category (recent, saved, mobile, web, print and more) with their sizes.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
category | "Recent" | "Saved" | "Mobile" | "Web" | "Print" | "Film & Video" | "Art & Illustration" | "Branding" | "Social" | no |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "file.newPresets" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: category. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
categories | object[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"categories": {
"items": {
"additionalProperties": true,
"properties": {
"name": {
"type": "string"
},
"presets": {
"type": "array"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"category": {
"enum": [
"Recent",
"Saved",
"Mobile",
"Web",
"Print",
"Film & Video",
"Art & Illustration",
"Branding",
"Social"
],
"type": "string"
}
},
"returns": "{categories: [{name, presets: [{name, size: \"1920 × 1080 px\", width: pt, height: pt, units, orientation, artboards, artboardLayout: {layout, columns, spacing, rightToLeft}, bleed, backgroundContents, colorMode, rasterEffectsPpi, previewMode}]}]}; file.new {preset: name} starts from one",
"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.