Vector kit command

prefs.set

Set Preference

Sets one or more preferences after validating them (see prefs.list for keys and kinds).

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of prefs.set
NameTypeRequiredDescription
keystringno
valueanyno
valuesobjectnoread by the command beside its listed parameters

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "prefs.set" }]
}

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

Result

Result JSON Schema
json
{}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "key": {
      "type": "string"
    },
    "value": {},
    "values": {
      "additionalProperties": true,
      "description": "read by the command beside its listed parameters",
      "type": "object"
    }
  },
  "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.