Skip to main content

Module tool_validation

Module tool_validation 

Source
Expand description

Input validation for tool calls.

Translated from TypeScript checkPermissionsAndCallTool validation step.

Functions§

find_tool_by_name
Tool definition lookup by name. Matches TypeScript’s findToolByName which also checks aliases.
validate_tool_input
Validate tool input against the tool’s JSON Schema. Returns Ok(()) if valid, or Err with a human-readable error message.