kernel_meta_render_card
Render a card as an MCP-application UI surface, returning plaintext for CLI clients and HTML for web clients. Use it as a template to ship real UI surfaces instead of markdown.
Instructions
Render a card as an MCP-application UI surface. Returns both a plaintext summary (for CLI / legacy clients) and an HTML body (for web-based clients that opt into the ui content type — Claude Desktop, ChatGPT, web harnesses). Use this as a template for any domain tool that wants to ship a real surface instead of pasting markdown — wire uiResult(...) from core/helpers.ts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>"
},
"name": "kernel_meta_render_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Markdown body. A small renderer turns it into HTML. | |
| items | No | Optional list rendered as a <ul>. | |
| title | Yes | Card title shown as <h2>. | |
| accent | No | Accent color name. Default: blue. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| mimeType | Yes | ||
| rendered | Yes |