OptionaldescriptionWhat the value means. On the top-level schema the param's own Description is used when this is absent.
OptionalenumThe only values allowed.
OptionalitemsFor type: 'array': the schema of each element.
OptionalpropertiesFor type: 'object': the schema of each named property.
OptionalrequiredFor type: 'object': the property names that must be present.
OptionaltypeThe JSON type of the value. An array of types is a union; prefer a single type, since OpenAPI
3.0 (which Gemini's function declarations follow) has no union type.
JSON Schema fragment for one Action parameter's value.
Stored in the
ValueSchemacolumn ofMJ: Action Params. CodeGen emits a typedValueSchemaObjectaccessor that returnsMJActionParamEntity_IActionParamValueSchema | null.When set, the native tool builder declares this schema to the model in place of the coarse
ValueTypemapping, and argument coercion follows it before the Action runs. For anIsArrayparam it describes ONE element; the builder wraps it in{ type: 'array', items: … }.Deliberately limited to the subset every tool-calling provider accepts (
type,description,enum,items,properties,required). Keywords outside it (oneOf,$ref,format,additionalProperties, …) are rejected or handled differently from one provider to the next, so the interface does not offer them.Example
Example