Preview Widget
preview_widgetShows the live widget in the chat, as it shows on a site. In an app without MCP Apps, the answer has the address of the widget page to open.
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_id": "<widget_id>"
},
"name": "preview_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget_id | Yes | The widget's id (the id in list_widgets). |