Class McpToolResult
- Namespace
- Sisk.ModelContextProtocol
- Assembly
- Sisk.ModelContextProtocol.dll
Represents the result of executing an MCP tool.
public sealed class McpToolResult
- Inheritance
-
McpToolResult
- Inherited Members
Constructors
- McpToolResult(JsonValue)
Initializes a new instance of the McpToolResult class.
Properties
- Result
Gets the JSON representation of the tool result.
Methods
- Combine(params McpToolResult[])
Combines multiple McpToolResult objects into a single result. If the input contains a single result, it is returned directly. Otherwise, all individual results are unpacked and combined into a JSON array.
- CreateAudio(ReadOnlySpan<byte>, string)
Creates an audio-based result for an MCP tool.
- CreateImage(ReadOnlySpan<byte>, string)
Creates an image-based result for an MCP tool.
- CreateText(string)
Creates a text-based result for an MCP tool.