Tool call (language model)
A request a language model writes for a program to run, in a fixed form, instead of an answer: the program does the work, such as rolling a die, and sends the result back for the model to use.
Example: roll_check with character "Mira", difficulty "medium" and modifier "very good at": code rolls d20 (14) + 3 = 17 and the model narrates the climb.
ⓘ Technical definition
A structured output naming one of the tools declared with the request and its JSON arguments; the caller executes it, returns a tool result in the next message, and the model continues from it.
→ First introduced in: Rules in code, words in the model: who rolls the dice