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/client/elicitation.mdx
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,15 @@ To request information from a user, servers send an `elicitation/create` request
61
61
"id": 1,
62
62
"method": "elicitation/create",
63
63
"params": {
64
-
"message": "Please provide your GitHub username"
64
+
"message": "Please provide your GitHub username",
65
+
"requestedSchema": {
66
+
"type": "object",
67
+
"properties": {
68
+
"name": {
69
+
"type": "string",
70
+
},
71
+
},
72
+
}
65
73
}
66
74
}
67
75
```
@@ -74,7 +82,7 @@ To request information from a user, servers send an `elicitation/create` request
74
82
"id": 1,
75
83
"result": {
76
84
"content": {
77
-
"username": "octocat"
85
+
"name": "octocat"
78
86
}
79
87
}
80
88
}
@@ -91,7 +99,7 @@ To request information from a user, servers send an `elicitation/create` request
91
99
"method": "elicitation/create",
92
100
"params": {
93
101
"message": "Please provide your contact information",
94
-
"requestSchema": {
102
+
"requestedSchema": {
95
103
"type": "object",
96
104
"properties": {
97
105
"name": {
@@ -154,10 +162,10 @@ sequenceDiagram
154
162
155
163
## Request Schema
156
164
157
-
The `requestSchema` field allows servers to define the structure of the expected response using JSON Schema. This follows the same pattern as the `inputSchema` field in the Tool interface:
165
+
The `requestedSchema` field allows servers to define the structure of the expected response using JSON Schema. This follows the same pattern as the `inputSchema` field in the Tool interface:
158
166
159
167
```json
160
-
"requestSchema": {
168
+
"requestedSchema": {
161
169
"type": "object",
162
170
"properties": {
163
171
"propertyName": {
@@ -238,6 +246,6 @@ Example when validation fails:
238
246
1. Clients **SHOULD** implement user approval controls
239
247
2. Both parties **SHOULD** validate elicitation content against the provided schema
240
248
3. Clients **SHOULD** provide clear indication of which server is requesting information
241
-
4. Clients **SHOULD** allow users to cancel elicitation requests at any time
249
+
4. Clients **SHOULD** allow users to reject elicitation requests at any time
242
250
5. Clients **SHOULD** implement rate limiting
243
251
6. Both parties **MUST** handle sensitive data appropriately
Copy file name to clipboardExpand all lines: schema/draft/schema.json
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -489,7 +489,7 @@
489
489
"description": "The message to present to the user.",
490
490
"type": "string"
491
491
},
492
-
"requestSchema": {
492
+
"requestedSchema": {
493
493
"description": "A JSON Schema object defining the expected structure of the response.\nThis follows the same pattern as the inputSchema in Tool interface.",
0 commit comments