Optional
additionalOptional
outputDefines where to place each tool output type in the LangChain ToolMessage.
Optional
prefixIf true, the tool name will be prefixed with the server name followed by a double underscore. This is useful if you want to avoid tool name collisions across servers.
Optional
throwIf true, throw an error if a tool fails to load.
Optional
useIf true, the tool will use LangChain's standard multimodal content blocks for tools that output
image or audio content, and embedded resources will be converted to StandardFileBlock
objects.
When false
, all artifacts are left in their MCP format, but embedded resources will be
converted to StandardFileBlock
objects if outputHandling causes embedded resources to
be treated as content, as otherwise ChatModel providers will not be able to interpret them.
An additional prefix to add to the tool name. Will be added at the very beginning of the tool name, separated by a double underscore.
For example, if
additionalToolNamePrefix
is"mcp"
, andprefixToolNameWithServerName
istrue
, the tool name"my-tool"
provided by server"my-server"
will become"mcp__my-server__my-tool"
.Similarly, if
additionalToolNamePrefix
ismcp
andprefixToolNameWithServerName
is false, the tool name would be"mcp__my-tool"
.