Skip to content

CallToolResults

Namespace: Vercel.AI.Mcp

public static class CallToolResults

Normalizes MCP tools/call results, including structured-only results.

Inheritance: object

View source

public static object Undefined { get; }

A value that is not JSON, matching an omitted field.

Value: object

View source

public static bool IsJsonValue(object? value)

True when <code class=“paramref”>value</code> can be JSON structured content.

Parameters

Name Type Description
value object

Returns: bool

View source

public static JsonElement Normalize(JsonElement result)

Normalizes a call-tool result.

Parameters

Name Type Description
result JsonElement

Returns: JsonElement

View source

public static JsonElement Normalize(JsonNode result)

Normalizes a call-tool result held as a JSON node so cycles can be rejected.

Parameters

Name Type Description
result JsonNode

Returns: JsonElement

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product