Skip to main content

parse_argv

Function parse_argv 

Source
pub fn parse_argv(argv: &[String], tool: &Tool) -> Result<Value, Error>
Expand description

Parse CLI argv (everything after the subcommand itself) into a JSON object suitable for use as tool_input.

The tool’s input_schema drives type coercion and required-argument checking.