Lattice
Skip to content

Tool calling

A model emitting a structured request to call a function, which your code executes and returns the result of.

By Lattice editorial · Entry last reviewed · method

What it implies

The mechanism almost all agent systems are built on. The security consequence is that a tool call is model output with the same failure modes as anything else the model produces — including injection arriving via retrieved content or a tool's own error message. Treat arguments as untrusted input.

Tools in this index

Related terms