Sébastien Rigaux

Cloudflare Code Mode: compose tool calls in code

DocumentationModel tool calling
View resource

developers.cloudflare.com

Code Mode lets a model coordinate multiple tools within one code execution: it can chain dependent calls, filter their results, and return only the data needed for an answer. The page contrasts this with direct calls, which suit simple tasks involving a small, known set of tools.

For large catalogs, codemode.search() and codemode.describe() progressively load connectors and their type information instead of sending every definition up front. Cloudflare notes that Code Mode is experimental and may introduce breaking changes.

Cloudflare graphic on a white background, showing the title “Code Mode” and the label “Agents”.