WaQi
Tools

Input and Output Schemas

Define tool data structures using JSON Schema.

The Agent Platform uses standard JSON Schema to validate data before and after tool execution.

Input Schema

The Input Schema defines the arguments that your tool accepts. The platform validates the provided input against this schema during invocation.

If validation succeeds, the platform executes the script. If validation fails, the platform returns an error and stops execution. This ensures that your script only processes correctly formatted data.

Output Schema

The Output Schema defines the result that your tool returns. The platform uses this schema to document the expected output format for users and agents.

Ensure that all schemas comply with the standard JSON Schema specification.

On this page