Skip to contents

Gives the HTML of a page for an MCP App that draws the widget of @mcpWidget: once the client sends it the result of the tool, it adds the scripts and styles of the widget, then draws it. A resource with a ui:// URI and @mcpReturns html returns it.

Usage

widget_page()

Value

The HTML of the page, as one string.

Examples

substr(
  widget_page(),
  1,
  15
)
#> [1] "<!DOCTYPE html>"