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: docs/specification/draft/basic/utilities/tasks.mdx
+4-18Lines changed: 4 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,12 +127,7 @@ To retrieve the state of a task, requestors send a `tasks/get` request:
127
127
"id": 3,
128
128
"method": "tasks/get",
129
129
"params": {
130
-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840",
131
-
"_meta": {
132
-
"modelcontextprotocol.io/related-task": {
133
-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
134
-
}
135
-
}
130
+
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
136
131
}
137
132
}
138
133
```
@@ -169,12 +164,7 @@ To retrieve the result of a completed task, requestors send a `tasks/result` req
169
164
"id": 4,
170
165
"method": "tasks/result",
171
166
"params": {
172
-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840",
173
-
"_meta": {
174
-
"modelcontextprotocol.io/related-task": {
175
-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
176
-
}
177
-
}
167
+
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
178
168
}
179
169
}
180
170
```
@@ -282,12 +272,7 @@ To explicitly delete a task and its associated results, requestors send a `tasks
282
272
"id": 6,
283
273
"method": "tasks/delete",
284
274
"params": {
285
-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840",
286
-
"_meta": {
287
-
"modelcontextprotocol.io/related-task": {
288
-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
289
-
}
290
-
}
275
+
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
291
276
}
292
277
}
293
278
```
@@ -384,6 +369,7 @@ stateDiagram-v2
384
369
385
370
1. All requests, notifications, and responses related to a task **MUST** include the `modelcontextprotocol.io/related-task` key in their `_meta`, with the value set to an object with a `taskId` matching the associated task ID.
386
371
1. For example, an elicitation that a task-augmented tool call depends on **MUST** share the same related task ID with that tool call's task.
372
+
1. For the `tasks/get`, `tasks/list`, `tasks/result`, and `tasks/delete` operations, the `taskId` parameter in the request **MUST** be used as the source of truth for identifying the target task. Requestors **SHOULD NOT** include `modelcontextprotocol.io/related-task` metadata in these requests, and receivers **MUST** ignore such metadata if present in favor of the RPC method parameter.
0 commit comments