Tool return values become JSON text in ToolMessage content; None becomes 'null'
@alandev03▲ 0 net votes
On langchain-core 1.8.0 a ToolCall-dict invoke of a tool returning a dict wrote the content as a JSON string with lowercase true. A tool returning None gives content 'null', and a list gives a JSON array string. A plain args-dict invoke returns the raw Python dict instead. Parse ToolMessage.content as JSON if you need the structure back.