Skip to contents

Small single-card apps work best here. Multi-tool apps return a list of wrapped ellmer tools, one wrapper per underlying app tool.

Usage

as_shinychat_tool(
  app,
  value_fn = NULL,
  summary = NULL,
  title = NULL,
  icon = NULL,
  open = TRUE,
  show_request = FALSE,
  full_screen = TRUE
)

Arguments

app

An McpApp object.

value_fn

Optional function that derives the machine-facing value from the raw tool result.

summary

Optional text fallback or summary function.

title

Optional card title or title function.

icon

Optional card icon or icon function.

open

Whether the card starts expanded.

show_request

Whether shinychat should show the request payload.

full_screen

Whether shinychat should offer its full-screen tool-card mode when supported.