CallToolResults
Namespace: Vercel.AI.Mcp
public static class CallToolResultsNormalizes MCP tools/call results, including structured-only results.
Inheritance: object
Properties
Section titled “Properties”Undefined
Section titled “Undefined”public static object Undefined { get; }A value that is not JSON, matching an omitted field.
Value: object
Methods
Section titled “Methods”IsJsonValue(object?)
Section titled “IsJsonValue(object?)”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
Normalize(JsonElement)
Section titled “Normalize(JsonElement)”public static JsonElement Normalize(JsonElement result)Normalizes a call-tool result.
Parameters
| Name | Type | Description |
|---|---|---|
result |
JsonElement |
Returns: JsonElement
Normalize(JsonNode)
Section titled “Normalize(JsonNode)”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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product