Skip to main content

validate_arguments

Function validate_arguments 

Source
pub fn validate_arguments(
    tool: &str,
    schema: &Value,
    args: &Value,
) -> Result<Option<Value>>
Expand description

Check args against the tool’s schema: unknown names first (bytewise order), then each declared argument (bytewise order) for presence and type. Nested shapes (ops, expect, at) are checked by their handlers. Returns the arguments as the handler sees them when the check normalized one (4.5: a bare string in a string-list slot becomes [s]), else None.