A code execution tool runs a short model-written program in a sandbox and returns stdout or generated files. It supports calculation, data transforms, and visualization where execution is more reliable than guessing text.
The demo runs a sum inside a visible boundary and returns the result to the agent. Set limits on execution, files, and time, and validate the returned result.
When to use
Use it when calculations or data processing should be executed instead of inferred in prose.