Skip to content

Commit 07a3a32

Browse files
committed
Move task parameters to dedicated field
1 parent 3c7e9e4 commit 07a3a32

File tree

4 files changed

+112
-22
lines changed

4 files changed

+112
-22
lines changed

docs/specification/draft/basic/utilities/tasks.mdx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Task-augmented requests follow a two-phase response pattern that differs from no
9797
- **Normal requests**: The server processes the request and returns the actual operation result directly.
9898
- **Task-augmented requests**: The server accepts the request and immediately returns a `CreateTaskResult` containing task metadata. The actual operation result becomes available later through `tasks/result` after the task completes.
9999

100-
To create a task, requestors send a request with the `io.modelcontextprotocol/task` key included in `_meta`. Requestors **MAY** include a `ttl` value representing how long from task creation the requestor would like the task to be retained for.
100+
To create a task, requestors send a request with the `task` field included in the request params. Requestors **MAY** include a `ttl` value representing how long from task creation the requestor would like the task to be retained for.
101101

102102
**Request:**
103103

@@ -111,10 +111,8 @@ To create a task, requestors send a request with the `io.modelcontextprotocol/ta
111111
"arguments": {
112112
"city": "New York"
113113
},
114-
"_meta": {
115-
"io.modelcontextprotocol/task": {
116-
"ttl": 60000
117-
}
114+
"task": {
115+
"ttl": 60000
118116
}
119117
}
120118
}
@@ -626,13 +624,13 @@ Tasks can be in one of the following states:
626624
- `failed`: The associated request did not complete successfully. For tool calls specifically, this includes cases where the tool call result has `isError` set to true.
627625
- `cancelled`: The request was cancelled before completion
628626

629-
### Task Metadata
627+
### Task Parameters
630628

631-
When augmenting a request with task execution, the `io.modelcontextprotocol/task` key is included in `_meta`:
629+
When augmenting a request with task execution, the `task` field is included in the request parameters:
632630

633631
```json
634632
{
635-
"io.modelcontextprotocol/task": {
633+
"task": {
636634
"ttl": 60000
637635
}
638636
}

0 commit comments

Comments
 (0)