Vector kit command

webExport.presets.list

Save for Web Presets

Answers the Save for Web presets, built-in and saved, with their settings.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of webExport.presets.list
NameTypeRequiredDescription
presetstringnoread by the command beside its listed parameters
resetbooleannoread by the command beside its listed parameters

Call through vector_run

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

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

Result

Result of webExport.presets.list
NameTypeRequiredDescription
presetsobject[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "presets": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "builtIn": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "settings": {
            "additionalProperties": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "preset": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "reset": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    }
  },
  "returns": "{presets: [{name, builtIn, settings}]} the built-in presets, then the saved ones; any name works as `preset` in file.exportForWeb",
  "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.