Vector kit command

file.find

Find Objects

Searches the document's objects by Layers panel name, kind or text content and answers the matches with their ids and paths; limit 0 only counts.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of file.find
NameTypeRequiredDescription
kindstringno
limitintegerno
namestringno
textstringno

Call through vector_run

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

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

Result

Result of file.find
NameTypeRequiredDescription
matchesany[]no
totalnumberno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "matches": {
      "type": "array"
    },
    "total": {
      "type": "number"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "kind": {
      "type": "string"
    },
    "limit": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "text": {
      "type": "string"
    }
  },
  "returns": "{matches: [{id, name, kind, path}], total}",
  "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.