parameter
Add a function parameter to the tool definition.
Parameters
name
Parameter name.
paramType
JSON schema type for the parameter.
"string"— text value"integer"— whole number value"number"— numeric value including decimals"boolean"— true or false value"array"— list of values"object"— nested key-value structure
description
Description of the parameter shown to the AI.
opts
Optional configuration.
opts.required
Whether this parameter is required.
opts.enum
Optional list of allowed values for this parameter.
Returns
DataMap — Self for method chaining.