Stamps data-shinymcp-input on a tag or its first form-element descendant.
Use this as an escape hatch when auto-detection by tool argument name doesn't
work (e.g., custom widgets or elements whose id doesn't match the tool
argument name).
Arguments
- tag
An htmltools::tag object (e.g., from
shiny::selectInput()orbslib::input_select()).- id
The input ID to register. If
NULL(the default), reads the element's existingidattribute.
Value
The modified htmltools::tag with data-shinymcp-input stamped.
