argsAs

Deserialize a dynamic handler's raw wire arguments into a typed value T.

The UDA-driven registration overloads marshal each argument from the method signature for you, but the dynamic registerDynamicTool/registerDynamicPrompt overloads hand the handler the raw Json arguments. This is the inbound counterpart of the client's callTool!T: it deserializes arguments through the same enum-by-name policy the UDA layer uses (so any enum leaf is read from its schema-declared member name, at any nesting depth) and maps a vibe conversion failure to invalidParams (-32602), matching how the reflection layer reports a malformed argument. A handler can then write auto a = argsAs!MyArgs(arguments); instead of hand-rolling arguments["x"].get!int with manual presence/type checks.

@safe @safe
T
argsAs
(
T
)
()