Tools
Script Tool
Run custom code as a callable tool.
Runs JavaScript or Python in a sandboxed environment when the model decides it needs computation. Same sandbox as the Script workflow node – isolated, fast, with access to the language’s standard library, and on paid plans outbound network access. See the workflow node for what the sandbox does and does not guarantee.
The model calls the script with arguments, the sandbox executes it, and the result feeds back into the conversation. Useful for calculations, data formatting, validation, or any logic that’s easier to express in code than in natural language.