promptdojo_

Validate tool inputs — when the model invents arguments — step 5 of 9

The dispatcher is about to call the tool. Fill in the call to validate(args, schema) and check the ok field before running. On failure, the dispatcher returns the error string so it can flow back to the model as a tool_result.

Expected output:

ERROR: missing required field: q
read, then continue.