Skip to main content

mcp_tool_to_tool_def

Function mcp_tool_to_tool_def 

Source
pub fn mcp_tool_to_tool_def(tool: &McpTool) -> ToolDef
Expand description

Convert an MCP tool to an Oxios ToolDef.

Parses the input_schema as a JSON Schema object, extracting properties from the top-level "properties" key.