toJSONSchema
Converts the current ToolDescriptor instance into a JSON Schema representation.
This function generates a JSON object that conforms to the schema of the tool, including all required and optional parameters with their respective types and descriptions. The schema defines the tool structure in a JSON-friendly format for validation or documentation purposes.
Return
A JsonObject representing the JSON Schema for the current ToolDescriptor instance.