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
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | no | |
limit | integer | no | |
name | string | no | |
text | string | no |
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
| Name | Type | Required | Description |
|---|---|---|---|
matches | any[] | no | |
total | number | no |
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.