Skip to main content

parameter_schema_from_lua

Function parameter_schema_from_lua 

Source
pub fn parameter_schema_from_lua(params: &Value) -> Value
Expand description

Normalize Lua tool parameter definitions into JSON Schema.

Lua extensions may register either a full JSON Schema object or a shorthand object whose keys are parameter names. The returned value is always a valid object schema for the tool registry.