Skip to main content

input_schema_for_tool

Function input_schema_for_tool 

Source
pub fn input_schema_for_tool(
    manifest: &Manifest,
    cell_map: &CellMap,
    tool: &Tool,
) -> Value
Expand description

Build the strict per-tool input schema (WBV2-04): an object with additionalProperties:false carrying ONLY this tool’s DAG-derived input_keys (the subset of the shared cell_map.inputs pool transitively reachable upstream of this tool’s outputs), plus the F2 overrides block.

The strict envelope (additionalProperties:false, V5) MUST survive: a client trusting the advertised schema must never be able to send a key the runtime then rejects.