fn parse_param_value(raw: &str) -> ValueExpand description
Best-effort coercion of a <parameter> body to a JSON value. Falls back
to a string literal when the body is not valid JSON.
This is inherently lossy: the dialect gives no way to distinguish a
parameter that is genuinely meant to be the string "true" or "123"
from one meant to be the boolean or the number — both coerce to the typed
value. There is no tool input_schema available here to disambiguate
against (the parser has no access to the tool definitions that produced
this call), so this is a best-effort guess, not a guarantee.