- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents the result of a ToolsCall request from a client to invoke a tool provided by the server.
public sealed class CallToolResult : Result
- Inheritance
-
CallToolResult
- Inherited Members
- Extension Methods
Properties
Content
Gets or sets the response content from the tool call.
[JsonPropertyName("content")]
public IList<ContentBlock> Content { get; set; }
Property Value
IsError
Gets or sets a value that indicates whether the tool call was unsuccessful.
[JsonPropertyName("isError")]
public bool? IsError { get; set; }
Property Value
StructuredContent
Gets or sets an optional JSON object representing the structured result of the tool call.
[JsonPropertyName("structuredContent")]
public JsonElement? StructuredContent { get; set; }
Property Value
Task
Gets or sets the task data for the newly created task.
[Experimental("MCPEXP001", UrlFormat = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp001")]
[JsonIgnore]
public McpTask? Task { get; set; }