|
54 | 54 | "type": "object" |
55 | 55 | }, |
56 | 56 | "CallToolResult": { |
57 | | - "description": "The server's response to a tool call.\n\nAny errors that originate from the tool SHOULD be reported inside the result\nobject—i.e., as part of an MCP successful result, not as an MCP error\nresponse. Otherwise, the LLM would not be able to see that an error occurred\nand self-correct.\n\nHowever, any errors in _finding_ the tool, an error indicating that the\nserver does not support tool calls, or any other exceptional conditions,\nshould be reported as an MCP error response.", |
| 57 | + "description": "The server's response to a tool call.\n\nAny errors that originate from the tool SHOULD be reported inside the result\nobject, with `isError` set to true, _not_ as an MCP protocol-level error\nresponse. Otherwise, the LLM would not be able to see that an error occurred\nand self-correct.\n\nHowever, any errors in _finding_ the tool, an error indicating that the\nserver does not support tool calls, or any other exceptional conditions,\nshould be reported as an MCP error response.", |
58 | 58 | "properties": { |
59 | 59 | "_meta": { |
60 | 60 | "additionalProperties": {}, |
61 | 61 | "description": "This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.", |
62 | 62 | "type": "object" |
63 | 63 | }, |
64 | | - "toolResult": {} |
| 64 | + "content": { |
| 65 | + "items": { |
| 66 | + "anyOf": [ |
| 67 | + { |
| 68 | + "$ref": "#/definitions/TextContent" |
| 69 | + }, |
| 70 | + { |
| 71 | + "$ref": "#/definitions/ImageContent" |
| 72 | + }, |
| 73 | + { |
| 74 | + "$ref": "#/definitions/EmbeddedResource" |
| 75 | + } |
| 76 | + ] |
| 77 | + }, |
| 78 | + "type": "array" |
| 79 | + }, |
| 80 | + "isError": { |
| 81 | + "type": "boolean" |
| 82 | + } |
65 | 83 | }, |
66 | 84 | "required": [ |
67 | | - "toolResult" |
| 85 | + "content", |
| 86 | + "isError" |
68 | 87 | ], |
69 | 88 | "type": "object" |
70 | 89 | }, |
|
366 | 385 | "description": "An opaque token used to represent a cursor for pagination.", |
367 | 386 | "type": "string" |
368 | 387 | }, |
| 388 | + "EmbeddedResource": { |
| 389 | + "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit\nof the LLM and/or the user.", |
| 390 | + "properties": { |
| 391 | + "resource": { |
| 392 | + "anyOf": [ |
| 393 | + { |
| 394 | + "$ref": "#/definitions/TextResourceContents" |
| 395 | + }, |
| 396 | + { |
| 397 | + "$ref": "#/definitions/BlobResourceContents" |
| 398 | + } |
| 399 | + ] |
| 400 | + }, |
| 401 | + "type": { |
| 402 | + "const": "resource", |
| 403 | + "type": "string" |
| 404 | + } |
| 405 | + }, |
| 406 | + "required": [ |
| 407 | + "resource", |
| 408 | + "type" |
| 409 | + ], |
| 410 | + "type": "object" |
| 411 | + }, |
369 | 412 | "EmptyResult": { |
370 | 413 | "$ref": "#/definitions/Result" |
371 | 414 | }, |
|
1171 | 1214 | ], |
1172 | 1215 | "type": "object" |
1173 | 1216 | }, |
1174 | | - "PromptEmbeddedResource": { |
1175 | | - "description": "The contents of a resource, embedded into a prompt.\n\nIt is up to the client how best to render embedded resources for the benefit\nof the LLM and/or the user.", |
1176 | | - "properties": { |
1177 | | - "resource": { |
1178 | | - "anyOf": [ |
1179 | | - { |
1180 | | - "$ref": "#/definitions/TextResourceContents" |
1181 | | - }, |
1182 | | - { |
1183 | | - "$ref": "#/definitions/BlobResourceContents" |
1184 | | - } |
1185 | | - ] |
1186 | | - }, |
1187 | | - "type": { |
1188 | | - "const": "resource", |
1189 | | - "type": "string" |
1190 | | - } |
1191 | | - }, |
1192 | | - "required": [ |
1193 | | - "resource", |
1194 | | - "type" |
1195 | | - ], |
1196 | | - "type": "object" |
1197 | | - }, |
1198 | 1217 | "PromptListChangedNotification": { |
1199 | 1218 | "description": "An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client.", |
1200 | 1219 | "properties": { |
|
1231 | 1250 | "$ref": "#/definitions/ImageContent" |
1232 | 1251 | }, |
1233 | 1252 | { |
1234 | | - "$ref": "#/definitions/PromptEmbeddedResource" |
| 1253 | + "$ref": "#/definitions/EmbeddedResource" |
1235 | 1254 | } |
1236 | 1255 | ] |
1237 | 1256 | }, |
|
0 commit comments