Vector kit command

file.formatOptions

Format Options

Answers a writable format's options with their types, defaults and the values the document last saved with, plus the formats Save As offers.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of file.formatOptions
NameTypeRequiredDescription
formatstringno
optionsobjectnoread by the command beside its listed parameters

Call through vector_run

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

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

Result

Result of file.formatOptions
NameTypeRequiredDescription
extensionsstring[]no
idstringno
labelstringno
mimestringno
optionsobjectno
rasterbooleanno
readbooleanno
saveFormatsobject[]no
writebooleanno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "extensions": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "id": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "mime": {
      "type": "string"
    },
    "options": {
      "additionalProperties": true,
      "properties": {
        "compress": {
          "additionalProperties": true,
          "properties": {
            "default": {
              "type": "boolean"
            },
            "description": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "value": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "embedProfiles": {
          "additionalProperties": true,
          "properties": {
            "default": {
              "type": "boolean"
            },
            "description": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "value": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "includeLinked": {
          "additionalProperties": true,
          "properties": {
            "default": {
              "type": "boolean"
            },
            "description": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "value": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "pdfCompatible": {
          "additionalProperties": true,
          "properties": {
            "default": {
              "type": "boolean"
            },
            "description": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "value": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "preview": {
          "additionalProperties": true,
          "properties": {
            "default": {
              "type": "boolean"
            },
            "description": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "value": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "range": {
          "additionalProperties": true,
          "properties": {
            "default": {},
            "description": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "value": {}
          },
          "type": "object"
        },
        "separateArtboards": {
          "additionalProperties": true,
          "properties": {
            "default": {
              "type": "boolean"
            },
            "description": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "value": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "version": {
          "additionalProperties": true,
          "properties": {
            "default": {
              "type": "number"
            },
            "description": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "value": {
              "type": "number"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "raster": {
      "type": "boolean"
    },
    "read": {
      "type": "boolean"
    },
    "saveFormats": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "extensions": {
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "write": {
      "type": "boolean"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "format": {
      "type": "string"
    },
    "options": {
      "additionalProperties": true,
      "description": "read by the command beside its listed parameters",
      "type": "object"
    }
  },
  "returns": "{id, label, extensions, mime, read, write, raster, options: {name: {type, default, description, value}}, saveFormats: [{id, label, extensions}]}; value = the document's option as last saved in that format, else the default",
  "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.