Skip to main content

schema_of

Function schema_of 

Source
pub fn schema_of<T: JsonSchema>() -> Map<String, Value>
Expand description

JSON Schema (draft 2020-12, as schemars 1 emits) for a tool’s arguments, with the $schema/title noise removed. Only used to build TOOLS below, which is mcp-only (the Admin API exposes prompts, not tools).