LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
React SDK
Vue SDK
Svelte SDK
Angular SDK
LangGraph SDK
  • Ui
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Utils
  • Server
  • Stream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
  • Store
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemote
React SDK
Vue SDK
Svelte SDK
Angular SDK
LangGraph SDK
UiClientAuthReactLoggingReact UiUtilsServerStream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
Store
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraphwebToolCallStream
Interface●Since v0.3

ToolCallStream

Stable handle for one tool call: name, arguments, and async results.

Emitted when content-block-finish delivers a finalized tool_call block.

Copy
interface ToolCallStream

Properties

property
callId: string

Correlates with protocol toolCallId when the runtime provides one.

property
error: Promise<string | undefined>

Resolves to an error message string if ToolCallStream.status is "error", otherwise undefined.

property
input: TInput

Arguments passed to the tool (finalized when the call is observable).

property
name: TName

The node name extracted from the last segment of the namespace path (everything before the final colon, or the full segment if no colon).

property
output: Promise<TOutput>
property
status: Promise<ToolCallStatus>

Resolves to ToolCallStatus when the call leaves the running state.

View source on GitHub