
tools field, we can add a list of optional tools.
Each tool in the list must include a type. Within the function structure, we need to include a name (which must follow this regular expression: ^[a-zA-Z_][a-zA-Z0-9-_]{0,127}$). A name that is an easily understandable English word is more likely to be accepted by the model. There should also be a description or enum. The description part explains what the tool can do, which helps the model make judgments and selections.
Each function also supports a strict parameter (boolean, optional) that controls whether the tool call arguments are strictly constrained according to the parameters JSON Schema:
true(default, omitting is equivalent totrue): The system strictly constrains output according to theparametersschema, which must conform to the MFJS specificationfalse(must be explicitly passed): Only guarantees output is a valid JSON object, without enforcing internal structure
function structure must have a parameters field. The root of parameters must be an object, and the content must be a subset of JSON Schema conforming to the MFJS specification.
If you encounter JSON Schema validation issues, please submit feedback at walle GitHub Issues.
Like other APIs, we can call it through the Chat API.