October 5, 2026: Cortex Agent code execution tool (General availability)

The Cortex Agent code execution tool is now generally available. The code execution tool is a built-in tool that enables an agent to execute code during a conversation, so your agents can run scripts to process data, perform calculations, and produce visualizations. By default, the tool runs in a sandboxed, isolated environment that can only access data in the current agent session.

You enable the code execution tool in an agent specification. The agent then decides during orchestration when to generate and run code based on the user’s query. The tool is also used to run Python scripts that are part of an agent skill.

For more information, see Cortex Agent code execution tool.