Table of Contents

Class CreateTaskResult

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents the response to a task-augmented request.

[Experimental("MCPEXP001", UrlFormat = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp001")]
public sealed class CreateTaskResult : Result
Inheritance
CreateTaskResult
Inherited Members

Remarks

When a client sends a request with a task parameter, the server immediately returns a CreateTaskResult containing the created task information instead of the normal result type. The actual result can be retrieved later via tasks/result.

This type is returned for any task-augmented request including tools/call, sampling/createMessage, and elicitation/create.

Properties

Task

Gets or sets the task data for the newly created task.

[JsonPropertyName("task")]
public McpTask Task { get; set; }

Property Value

McpTask