Stamps data-shinymcp-output and data-shinymcp-output-type on a tag.
Use this to turn any container element into a target for tool result output.
Usage
mcp_output(tag, id = NULL, type = c("text", "html", "plot", "table"))Arguments
- tag
An htmltools::tag object.
- id
The output ID. If
NULL(the default), reads the element's existingidattribute.- type
Output type:
"text","html","plot", or"table".
Value
The modified htmltools::tag with output attributes stamped.
