Design kit command
board.template
Board template
Places a board template's sections, stickies, shapes and connectors; answers the ids.
- Kit
- Design 0.1.0 (.kdesign)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | string | no | read by the command beside its listed parameters |
name | string | no | a template id from board.templates |
text | string | no | read by the command beside its listed parameters |
x | number | no | |
y | number | no | its top-left on the page; default centred in the view |
Call through design_run
text
design_run {
"path": "<file>.kdesign",
"steps": [{ "command": "board.template" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: id, name, text, x, y. design_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": {
"id": {
"description": "read by the command beside its listed parameters",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"name": {
"description": "a template id from board.templates",
"type": "string"
},
"text": {
"description": "read by the command beside its listed parameters",
"type": "string"
},
"x": {
"type": "number"
},
"y": {
"description": "its top-left on the page; default centred in the view",
"type": "number"
}
},
"returns": "{name, ids} its sections, stickies, shapes, connectors and text, selected",
"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.