Member Junction
    Preparing search index...
    • Coerces a call's arguments toward each param's declared schema, before the Action runs.

      Models sometimes send an object as a JSON string, a number as "10" or a boolean as "true". Each declared param is coerced against the same schema its tool declaration used — the stored ValueSchema or the ValueType mapping, array-wrapped for IsArray — so a param declared as a string (an Other param, which may legitimately hold JSON-looking text) is never decoded.

      Parameters

      • params: readonly MJActionParamEntity[]

        The Action's params, as the tool was built from them

      • args: Record<string, unknown>

        The call's arguments, as the provider returned them

      Returns Record<string, unknown>

      A new argument object; args is not mutated