Motion kit command

template.thumbnail

Template Thumbnail

Returns a template's thumbnail (`id`): width, height and RGB pixels as hex.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of template.thumbnail
NameTypeRequiredDescription
idinteger | stringno

Call through motion_run

text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "template.thumbnail" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: id. motion_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{
  "description": "{id, width, height, rgb (hex)}"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ]
    }
  },
  "returns": "{id, width, height, rgb (hex)}",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (motion_commands through @kition/[email protected], built from KitionAI/kition-motion@4719aa7). As data: commands.jsonl.