Slide kit command
file.render
Render Slide
Answers one slide as a PNG (base64) with its size, the agent's preview: `target.slide` (from 1) or `target.slideId`, or `slide` (an index from 0), else the first slide, never the current one; `scale` pixels per point (default 1, at most 16), brought down so the longest side is at most `maxSize` pixels; date fields show 2000-01-01, so the same call answers the same bytes. `edit: true` draws placeholder prompts as the editor does.
- Kit
- Slide 0.1.0 (.kslide and .pptx)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
edit | boolean | no | |
maxSize | integer | no | the longest side in pixels, 16 to 8192; a larger render is brought down to it |
scale | number | no | |
slide | integer | no | a position counted from 0 (the first is 0) |
target | object | no | the slide to draw: `slide` counted from 1, or `slideId` as slide_inspect lists it |
Call through slide_run
slide_run {
"path": "<file>.pptx",
"steps": [{ "command": "file.render" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: edit, maxSize, scale, slide, target. slide_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
height | integer | no | |
png | string | no | |
scale | number | no | |
slide | integer | no | |
slideId | integer | no | |
width | integer | no |
Result JSON Schema
{
"additionalProperties": true,
"properties": {
"height": {
"type": "integer"
},
"png": {
"type": "string"
},
"scale": {
"type": "number"
},
"slide": {
"type": "integer"
},
"slideId": {
"type": "integer"
},
"width": {
"type": "integer"
}
},
"type": "object"
}Parameter schema
{
"additionalProperties": false,
"properties": {
"edit": {
"type": "boolean"
},
"maxSize": {
"description": "the longest side in pixels, 16 to 8192; a larger render is brought down to it",
"type": "integer"
},
"scale": {
"type": "number"
},
"slide": {
"description": "a position counted from 0 (the first is 0)",
"type": "integer"
},
"target": {
"additionalProperties": false,
"description": "the slide to draw: `slide` counted from 1, or `slideId` as slide_inspect lists it",
"properties": {
"slide": {
"description": "the slide, counted from 1",
"type": "integer"
},
"slideId": {
"description": "the slide's id",
"type": "integer",
"x-khp-role": "object",
"x-khp-types": [
"Slide"
]
}
},
"type": "object"
}
},
"returns": "{png: base64, width, height, slide, slideId, scale}",
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (slide_commands through @kition/[email protected], built from KitionAI/kition-slide@7ef3d11). As data: commands.jsonl.