LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coremessagescontentServerToolCall
    Class●Since v1.0

    ServerToolCall

    Tool call that is executed server-side.

    For example: code execution, web search, etc.

    Copy
    ServerToolCall()

    Bases

    TypedDict

    Constructors

    constructor
    __init__
    NameType
    typeLiteral['server_tool_call']
    idstr
    namestr
    argsdict[str, Any]
    indexNotRequired[int | str]
    extrasNotRequired[dict[str, Any]]

    Attributes

    attribute
    type: Literal['server_tool_call']

    Used for discrimination.

    attribute
    id: str

    An identifier associated with the tool call.

    attribute
    name: str

    The name of the tool to be called.

    attribute
    args: dict[str, Any]

    The arguments to the tool call.

    attribute
    index: NotRequired[int | str]

    Index of block in aggregate response. Used during streaming.

    attribute
    extras: NotRequired[dict[str, Any]]

    Provider-specific metadata.

    View source on GitHub