model: model name
The following models support Toolcall requests:- step-5-preview
- step-3.7-flash
- step-3.5-flash
- step-3.5-flash-2603
Official tools
Availability of built-in tools depends on the selected model. Support for function calling does not imply support for every built-in tool.- Web search: the built-in Chat Completions
web_searchtool is not available onstep-5-preview. Integrate an external search service through a function tool and return its results to the model. - Knowledge base search: upload text to a knowledge base and search it to reduce hallucinations.
tools: list of functions
Usetools to describe the functions available locally. Up to 128 tools are allowed. Each entry has type function and contains a function object with the name, description, and parameters.
name: letters, numbers,-,_; ideally under 64 characters. Use a clear English name so the model understands it (regex guideline:^[a-zA-Z*][a-zA-Z0-9-_]63$).parameters: roottypemust beobject. The content follows a subset of JSON Schema; keys follow the same naming rule. See JSON Schema for supportedtypevalues.descriptionexplains each parameter.description: explains what the function does so the model can choose it; English or Chinese is supported.
messages: conversation context
See Chat Completion request object.Examples
- python
- js
- curl

