← All Stars
public Star · 0.1.0
orrery/kida-render
Sync Kida HTML render from caller template bytes and JSON data.
Use this when
- You need rendered HTML from a Kida template plus JSON context
- You want template_digest, data_digest, and output_digest in a sealed Envelope
- You have in-memory template bytes and no egress requirement
Not for
- Static template validation without render (use kida-check)
- Fetching templates from disk or the network
- PDF or markdown surfaces (html only in v1)
- Outputs larger than the sync cap (future async artifact path)
Inputs / Outputs
Inputs
| Name | Type | Notes |
|---|---|---|
template required |
string | Kida template string or bundle |
data required |
object | — |
surface |
string | html only in v1 |
Outputs
| Name | Type | Notes |
|---|---|---|
html |
string | — |
template_digest |
string | — |
data_digest |
string | — |
output_digest |
string | — |
surface |
string | — |
envelope |
signed-envelope | — |
Example
{
"method": "tools/call",
"params": {
"name": "render",
"arguments": {
"template": "example",
"data": {}
}
}
}Tools
render
Render caller-supplied Kida template bytes with JSON data to an HTML surface and return stable digests — sync, in-memory, no egress · schema
{
"type": "object",
"properties": {
"template": {
"oneOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"content": {
"type": "string"
}
},
"required": [
"path",
"content"
],
"additionalProperties": false
},
{
"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"content": {
"type": "string"
}
},
"required": [
"path",
"content"
],
"additionalProperties": false
}
}
]
},
"data": {
"type": "object"
},
"surface": {
"type": "string",
"enum": [
"html"
],
"default": "html"
}
},
"required": [
"template",
"data"
],
"additionalProperties": false
}In constellations