Files
codex-telegram-bot/schemas/v2/McpResourceReadResponse.json
2026-05-21 08:40:16 +00:00

69 lines
1.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "McpResourceReadResponse",
"type": "object",
"required": [
"contents"
],
"properties": {
"contents": {
"type": "array",
"items": {
"$ref": "#/definitions/ResourceContent"
}
}
},
"definitions": {
"ResourceContent": {
"description": "Contents returned when reading a resource from an MCP server.",
"anyOf": [
{
"type": "object",
"required": [
"text",
"uri"
],
"properties": {
"_meta": true,
"mimeType": {
"type": [
"string",
"null"
]
},
"text": {
"type": "string"
},
"uri": {
"description": "The URI of this resource.",
"type": "string"
}
}
},
{
"type": "object",
"required": [
"blob",
"uri"
],
"properties": {
"_meta": true,
"blob": {
"type": "string"
},
"mimeType": {
"type": [
"string",
"null"
]
},
"uri": {
"description": "The URI of this resource.",
"type": "string"
}
}
}
]
}
}
}