Design kit command
inspect.assets
Inspect assets
Answers the layers in and under the selection to hand over as files: those with export settings, icons and images.
- Kit
- Design 0.1.0 (.kdesign)
- Changes the document
- no
- Acts on
ids(a list of ids), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ids | (integer | string)[] | no | default the selection |
Call through design_run
text
design_run {
"path": "<file>.kdesign",
"steps": [{ "command": "inspect.assets" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: ids. design_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
assets | any[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"assets": {
"type": "array"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"ids": {
"description": "default the selection",
"items": {
"description": "an id",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"type": "array",
"x-khp-types": [
"Node"
]
}
},
"returns": "{assets: [{id, name, kind: export|icon|image, exports}]} the layers in and under them to hand over as files: those with export settings, icons (small, vector shapes only; SVG) and images (PNG). Export them with `file.exportLayers {assets: true}`",
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.