You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: seps/2663-tasks-extension.md
+17-21Lines changed: 17 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -317,11 +317,11 @@ A server returns `CreateTaskResult` in lieu of the standard result shape for a r
317
317
318
318
```typescript
319
319
// resultType: "task"
320
-
interfaceCreateTaskResultextendsResult {
321
-
task:Task;
322
-
}
320
+
typeCreateTaskResult=Result&Task;
323
321
```
324
322
323
+
Note that `CreateTaskResult`_does not_ contain `result`/`error`/`inputRequests`. Client implementations **MUST NOT** use these fields if they are found on `CreateTaskResult`, and **MAY** handle this as an invalid protocol response.
324
+
325
325
**Example Request (CallToolRequest):**
326
326
327
327
```json
@@ -346,15 +346,13 @@ interface CreateTaskResult extends Result {
346
346
"id": 1,
347
347
"result": {
348
348
"resultType": "task",
349
-
"task": {
350
-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840",
351
-
"status": "working",
352
-
"statusMessage": "The operation is now in progress.",
353
-
"createdAt": "2025-11-25T10:30:00Z",
354
-
"lastUpdatedAt": "2025-11-25T10:40:00Z",
355
-
"ttl": 60,
356
-
"pollInterval": 5000
357
-
}
349
+
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840",
350
+
"status": "working",
351
+
"statusMessage": "The operation is now in progress.",
352
+
"createdAt": "2025-11-25T10:30:00Z",
353
+
"lastUpdatedAt": "2025-11-25T10:40:00Z",
354
+
"ttl": 60,
355
+
"pollInterval": 5000
358
356
}
359
357
}
360
358
```
@@ -515,15 +513,13 @@ The server determines (via bespoke logic) that it wants to create a task to repr
0 commit comments