LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.prebuilttool_nodemsg_content_output
    Function●Since v0.1

    msg_content_output

    Copy
    msg_content_output(
        output: Any,
    ) -> str | list[dict]
    View source on GitHub

    Parameters

    NameTypeDescription
    output*Any

    Tool execution output of any type.

    Convert tool output to ToolMessage content format.

    Handles str, list[dict] (content blocks), and arbitrary objects by attempting JSON serialization with fallback to str().