pub fn schema_object(
label: impl Into<String>,
schema: McpSchema,
) -> Result<JsonObject, McpToolError>Expand description
Converts an MCP schema wrapper into a JSON object.
ยงErrors
Returns McpToolError::InvalidSchema when schema is not a JSON object.