The name of the custom tool, used to identify it in tool calls.
The type of the custom tool. Always custom.
custom
The tool invocation context(s).
Whether the tool response can be returned asynchronously versus immediately returned on next response creation.
Whether this tool should be deferred and discovered via tool search.
Optional description of the custom tool, used to provide more context.
The input format for the custom tool. Default is unconstrained text.
Unconstrained free-form text.
Unconstrained text format. Always text.
text
A grammar defined by the user.
The grammar definition.
The syntax of the grammar definition. One of lark or regex.
lark
regex
Grammar format. Always grammar.
grammar