Builder
A builder for McpServerToolResultStep.
Functions
Returns an immutable instance of McpServerToolResultStep.
Sets Builder.callId to an arbitrary JSON value.
Required. ID to match the ID from the function call block.
Sets Builder.name to an arbitrary JSON value.
Name of the tool which is called for this specific tool call.
Sets Builder.result to an arbitrary JSON value.
Alias for calling result with Result.ofJsonValue(jsonValue).
The output from the MCP server call. Can be simple text or rich content.
Alias for calling result with Result.ofString(string).
Alias for calling result with Result.ofFunctionResultSubcontentList(functionResultSubcontentList).
Sets Builder.serverName to an arbitrary JSON value.
The name of the used MCP server.
Sets Builder.signature to an arbitrary JSON value.
A signature hash for backend validation.
Sets the field to an arbitrary JSON value.