pub fn input_schema<T: JsonSchema + Any>(pinned: bool) -> Arc<JsonObject>Expand description
Returns the input JSON schema for the tool parameter type T.
Strips root $schema, title, and description, and inlines every
$defs / $ref indirection. When pinned is true, also strips the
root database property and removes it from required — used for tools
registered against a database name pinned in config, where the field is
not part of the client-facing input. Results are cached per
(TypeId, pinned) in a thread-local map, so repeated calls for the same
T and pinned return the same Arc.
§Panics
Panics if T’s JsonSchema impl produces a non-object JSON value, which
would indicate a broken derive.