Vector kit command

webExport.presets.save

Save Save for Web Preset

Creates or changes a saved Save for Web preset.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of webExport.presets.save
NameTypeRequiredDescription
namestringno
newNamestringno
presetstringno
resetbooleannoread by the command beside its listed parameters
settingsobjectno

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "webExport.presets.save" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: name, newName, preset, reset, settings. vector_run answers the step’s result in completed[i].result.

Result

Result of webExport.presets.save
NameTypeRequiredDescription
createdanyno
nameanyno
settingsanyno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "created": {},
    "name": {},
    "settings": {}
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string"
    },
    "newName": {
      "type": "string"
    },
    "preset": {
      "type": "string"
    },
    "reset": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "settings": {
      "additionalProperties": true,
      "type": "object"
    }
  },
  "returns": "{name, settings, created}",
  "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.