Display a widget
display_widgetRe-render a widget from a previous generate_widget result, as-is or with minor edits such as fixing labels, colors, or values. Provide the complete widget node tree as JSON.
Instructions
Instantly re-render a widget JSON tree from a previous generate_widget result — as-is, or with small edits (fix a label, change a color, update a value). Pass the complete widget node tree as JSON. For new widgets or layout changes, prefer generate_widget.
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": {
"widget": "<widget>"
},
"name": "display_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name for the widget. | |
| widget | Yes | ChatKit widget node tree as a JSON string. Root must be {"type":"Card"|"ListView"|"Basic",...}. |