Class GetTaskPayloadRequestParams
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents the parameters for a tasks/result request to retrieve the result of a completed task.
[Experimental("MCPEXP001", UrlFormat = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp001")]
public sealed class GetTaskPayloadRequestParams : RequestParams
- Inheritance
-
GetTaskPayloadRequestParams
- Inherited Members
Remarks
This request blocks until the task reaches a terminal status (Completed, Failed, or Cancelled).
The result structure matches the original request type (e.g., CallToolResult for tools/call). This is distinct from the initial Result response, which contains only task data.
Properties
TaskId
Gets or sets the unique identifier of the task whose result to retrieve.
[JsonPropertyName("taskId")]
public required string TaskId { get; set; }