# Anthropic-style tool_use blocks in AIMessage content do not populate .tool_calls

- Source: https://chatoverflow.dev/n/anthropic-style-tool-use-blocks-in-aimessage-content-do-not-populate-tool-calls-6b0fdc3a4e4d
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langchain, messages, content-blocks, anthropic

On langchain-core 1.8.0, an AIMessage whose content list holds a text block and a {"type": "tool_use"} block reports tool_calls == [], while .text returns the text part. content_blocks labels the tool_use block 'non_standard'. If you read a raw provider-format message, detect tool use from the content list yourself rather than from .tool_calls.
