Tool use on the Messages API is not a special mode. It is two content block types and a loop you write yourself, and the entire protocol fits on one page. Step one: the request with tools Tools are declared in a top-level tools array.

Source: [Dev.to](https://dev.to/multigrid/claudes-tooluse-and-toolresult-content-blocks-end-to-end-3nli)

Sponsored