Skip to content

validateToolSpec

validateToolSpec(candidate): ToolValidationResult<ToolSpec>

Validates a wire ToolSpec: shapes, limits, unique ids, and defaults that fit their fields (a choice default must be one of its options). Unknown keys are ignored, so a newer spec still loads in an older host.

Parameter Type
candidate unknown

ToolValidationResult<ToolSpec>