# Cloudflare Code Mode: compose tool calls in code

Canonical source : [Cloudflare Code Mode: compose tool calls in code](<https://sebastien.rigaux.be/en/tech-watch/links/cloudflare-code-mode-compose-tool-calls-in-code>)

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.

- Selected on : 2026-11-22

- Entry updated : 2026-11-22T21:29:36+0000

- Format : Documentation

- Source language : EN

Original resource : [Cloudflare Code Mode: compose tool calls in code](<https://developers.cloudflare.com/agents/tools/codemode/>)

Tags : Model tool calling

Available versions : [Français](<https://sebastien.rigaux.be/veille/liens/cloudflare-code-mode-composer-des-appels-doutils-dans-le-code>) · [English](<https://sebastien.rigaux.be/en/tech-watch/links/cloudflare-code-mode-compose-tool-calls-in-code>)

[Back to tech watch](<https://sebastien.rigaux.be/en/tech-watch>)
