Vector kit command

file.setInfo

File Info…

Sets the document's File Info metadata (title, author, description, keywords, rating, copyright) in one undo step.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of file.setInfo
NameTypeRequiredDescription
authorstringno
authorTitlestringno
copyrightNoticestringno
copyrightStatus"unknown" | "copyrighted" | "publicDomain"no
copyrightUrlstringno
descriptionstringno
keywordsstring[] | stringno
ratingintegerno
titlestringno

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: author, authorTitle, copyrightNotice, copyrightStatus, copyrightUrl, description, keywords, rating, title. vector_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "author": {
      "type": "string"
    },
    "authorTitle": {
      "type": "string"
    },
    "copyrightNotice": {
      "type": "string"
    },
    "copyrightStatus": {
      "enum": [
        "unknown",
        "copyrighted",
        "publicDomain"
      ],
      "type": "string"
    },
    "copyrightUrl": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "keywords": {
      "oneOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        }
      ]
    },
    "rating": {
      "type": "integer"
    },
    "title": {
      "type": "string"
    }
  },
  "returns": "{title, author, authorTitle, description, keywords, rating, copyrightStatus, copyrightNotice, copyrightUrl, created, modified (ISO 8601 UTC or null; read-only), colorMode, units, artboards, objects}",
  "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.