addedOutput schema / $defs
Added value: +{
+ "ErrorResult": {
+ "description": "Result model for error responses, shared by both protocols.\n\n`error` always carries `code` and `message`; a Gemini failure adds the\nnumeric `status` and a boolean `temporary` saying whether retrying may help.",
+ "properties": {
+ "error": {
+ "additionalProperties": true,
+ "description": "Error information",
+ "title": "Error",
+ "type": "object"
+ },
+ "kind": {
+ "const": "error",
+ "default": "error",
+ "title": "Kind",
+ "type": "string"
+ },
+ "request_info": {
+ "$ref": "#/$defs/RequestInfo",
+ "description": "What was actually requested, echoed back so an answer can be matched to its question -- which matters most in a batch, where several results arrive together"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "title": "ErrorResult",
+ "type": "object"
+ },
+ "GeminiBinaryResult": {
+ "description": "Result model for a successful BINARY Gemini response (metadata only).\n\nMirrors the Gopher :class:`BinaryResult`: the raw bytes are NOT returned to\nthe model. A 1 MB body is ~1.4M base64 characters (~350k tokens), so\ninlining it would flood the context for content the model can't render\nanyway. The consumer gets the size and detected MIME type and can fetch the\nresource directly if it genuinely needs the bytes.",
+ "properties": {
+ "cache_age_seconds": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "How old the cached copy was, in seconds, when this result was returned. If the user is asking about something that may have changed since then, fetch again with `refresh=true`. Null when `cached` is false.",
+ "title": "Cache Age Seconds"
+ },
+ "cached": {
+ "default": false,
+ "description": "True when this result was replayed from the local response cache instead of being fetched from the server during this call. Treat the content as a snapshot taken at `cached_at`, not as the current state of the resource.",
+ "title": "Cached",
+ "type": "boolean"
+ },
+ "cached_at": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "ISO-8601 UTC timestamp at which the cached copy was actually fetched from the server. Null when `cached` is false.",
+ "title": "Cached At"
+ },
+ "kind": {
+ "const": "binary",
+ "default": "binary",
+ "title": "Kind",
+ "type": "string"
+ },
+ "mime_type": {
+ "$ref": "#/$defs/GeminiMimeType",
+ "description": "Detected content MIME type"
+ },
+ "note": {
+ "default": "Binary content not returned to preserve context",
+ "description": "Note about binary handling",
+ "title": "Note",
+ "type": "string"
+ },
+ "request_info": {
+ "$ref": "#/$defs/RequestInfo",
+ "description": "What was actually requested, echoed back so an answer can be matched to its question -- which matters most in a batch, where several results arrive together"
+ },
+ "size": {
+ "description": "Content size in bytes",
+ "minimum": 0,
+ "title": "Size",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "mime_type",
+ "size"
+ ],
+ "title": "GeminiBinaryResult",
+ "type": "object"
+ },
+ "GeminiCertificateResult": {
+ "description": "Result model for certificate request responses (status 60-62).\n\n``message`` is the capsule's own text and is untrusted; ``next_step`` is\nwritten by this server and is the only instruction in the payload.",
+ "properties": {
+ "kind": {
+ "const": "certificate",
+ "default": "certificate",
+ "title": "Kind",
+ "type": "string"
+ },
+ "message": {
+ "description": "Certificate-related message",
+ "title": "Message",
+ "type": "string"
+ },
+ "next_step": {
+ "default": "",
+ "description": "What to do about this response, written by this server rather than by the capsule. The three sub-codes need different answers, and only one of them is fixed by creating a certificate.",
+ "title": "Next Step",
+ "type": "string"
+ },
+ "request_info": {
+ "$ref": "#/$defs/RequestInfo",
+ "description": "What was actually requested, echoed back so an answer can be matched to its question -- which matters most in a batch, where several results arrive together"
+ },
+ "required": {
+ "default": true,
+ "description": "Whether the server is prompting for a certificate (status 60). False for 61/62, which are rejections of a presented identity.",
+ "title": "Required",
+ "type": "boolean"
+ },
+ "status": {
+ "default": 60,
+ "description": "Gemini certificate status code: 60 required, 61 not authorized, 62 not valid",
+ "maximum": 69,
+ "minimum": 60,
+ "title": "Status",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "message"
+ ],
+ "title": "GeminiCertificateResult",
+ "type": "object"
+ },
+ "GeminiGemtextResult": {
+ "description": "Result model for gemtext content responses.",
+ "properties": {
+ "cache_age_seconds": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "How old the cached copy was, in seconds, when this result was returned. If the user is asking about something that may have changed since then, fetch again with `refresh=true`. Null when `cached` is false.",
+ "title": "Cache Age Seconds"
+ },
+ "cached": {
+ "default": false,
+ "description": "True when this result was replayed from the local response cache instead of being fetched from the server during this call. Treat the content as a snapshot taken at `cached_at`, not as the current state of the resource.",
+ "title": "Cached",
+ "type": "boolean"
+ },
+ "cached_at": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "ISO-8601 UTC timestamp at which the cached copy was actually fetched from the server. Null when `cached` is false.",
+ "title": "Cached At"
+ },
+ "charset": {
+ "default": "utf-8",
+ "description": "Character encoding",
+ "title": "Charset",
+ "type": "string"
+ },
+ "document": {
+ "$ref": "#/$defs/GemtextDocument",
+ "description": "Parsed gemtext document"
+ },
+ "kind": {
+ "const": "gemtext",
+ "default": "gemtext",
+ "title": "Kind",
+ "type": "string"
+ },
+ "lang": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Language tag",
+ "title": "Lang"
+ },
+ "next_offset": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Where the part that was cut begins. Pass it back as `offset` to fetch the next window of the same resource. Null when nothing was cut and there is no more to fetch.",
+ "title": "Next Offset"
+ },
+ "partial_line": {
+ "default": false,
+ "description": "True when this window both begins and ends inside a single line that is longer than the render limit. That line is delivered as a plain `text` line here and continues in the next window, so join it to the next window's first line rather than reading the two as separate lines. It is deliberately not parsed: half of a `=> url text` line would otherwise look like a complete link to a target the server never sent",
+ "title": "Partial Line",
+ "type": "boolean"
+ },
+ "raw_content": {
+ "default": "",
+ "description": "Raw gemtext content (server-side only; see `document`)",
+ "title": "Raw Content",
+ "type": "string"
+ },
+ "request_info": {
+ "$ref": "#/$defs/RequestInfo",
+ "description": "What was actually requested, echoed back so an answer can be matched to its question -- which matters most in a batch, where several results arrive together"
+ },
+ "size": {
+ "description": "Content size in bytes",
+ "title": "Size",
+ "type": "integer"
+ },
+ "total_chars": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "How many characters the full body holds, before the render limit was applied. Null when the total was not counted.",
+ "title": "Total Chars"
+ },
+ "truncated": {
+ "default": false,
+ "description": "True if the page continues after this window. `next_offset` is where it continues -- at the last complete line, so windows abut exactly; `size` still reports the full original byte size (bytes are not the unit an offset counts in).",
+ "title": "Truncated",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "document",
+ "size"
+ ],
+ "title": "GeminiGemtextResult",
+ "type": "object"
+ },
+ "GeminiInputResult": {
+ "description": "Result model for input request responses (status 10/11).",
+ "properties": {
+ "kind": {
+ "const": "input",
+ "default": "input",
+ "title": "Kind",
+ "type": "string"
+ },
+ "prompt": {
+ "description": "Input prompt text",
+ "title": "Prompt",
+ "type": "string"
+ },
+ "request_info": {
+ "$ref": "#/$defs/RequestInfo",
+ "description": "What was actually requested, echoed back so an answer can be matched to its question -- which matters most in a batch, where several results arrive together"
+ },
+ "sensitive": {
+ "default": false,
+ "description": "Whether input is sensitive",
+ "title": "Sensitive",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "title": "GeminiInputResult",
+ "type": "object"
+ },
+ "GeminiMimeType": {
+ "description": "Model for Gemini MIME type parsing.",
+ "properties": {
+ "charset": {
+ "default": "utf-8",
+ "description": "Character encoding",
+ "title": "Charset",
+ "type": "string"
+ },
+ "lang": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Language tag (BCP47)",
+ "title": "Lang"
+ },
+ "subtype": {
+ "description": "MIME subtype (e.g., 'gemini')",
+ "title": "Subtype",
+ "type": "string"
+ },
+ "type": {
+ "description": "Main MIME type (e.g., 'text')",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "subtype"
+ ],
+ "title": "GeminiMimeType",
+ "type": "object"
+ },
+ "GeminiRedirectResult": {
+ "description": "Result model for redirect responses (status 30/31).\n\nThis server does not follow redirects: the caller does, by fetching\n``new_url``. So the payload has to carry what a caller needs to decide\nwhether following is safe -- the Gemini spec's five-hop limit is only\nenforceable by whoever is counting the hops, and a target on another host\nor in another scheme is the one worth stopping on.",
+ "properties": {
+ "cross_host": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True when `new_url` names a host other than the one that was requested, so the content it serves is a different party's. Null when the target could not be compared with the request",
+ "title": "Cross Host"
+ },
+ "kind": {
+ "const": "redirect",
+ "default": "redirect",
+ "title": "Kind",
+ "type": "string"
+ },
+ "new_url": {
+ "description": "Redirect target URL. Follow at most five in a row, and stop if a URL you have already visited comes back: a capsule can otherwise spin a client through an unbounded chain of fetches",
+ "title": "New Url",
+ "type": "string"
+ },
+ "permanent": {
+ "default": false,
+ "description": "Whether redirect is permanent",
+ "title": "Permanent",
+ "type": "boolean"
+ },
+ "request_info": {
+ "$ref": "#/$defs/RequestInfo",
+ "description": "What was actually requested, echoed back so an answer can be matched to its question -- which matters most in a batch, where several results arrive together"
+ },
+ "scheme": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Scheme of `new_url`. Anything other than `gemini` leaves Geminispace and cannot be fetched with this tool. Null when the target names no scheme and the request's is unknown",
+ "title": "Scheme"
+ }
+ },
+ "required": [
+ "new_url"
+ ],
+ "title": "GeminiRedirectResult",
+ "type": "object"
+ },
+ "GeminiSuccessResult": {
+ "description": "Result model for a successful Gemini response carrying TEXT content.\n\nBinary success responses use :class:`GeminiBinaryResult` (metadata only), so\n``content`` is always decoded text here.",
+ "properties": {
+ "cache_age_seconds": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "How old the cached copy was, in seconds, when this result was returned. If the user is asking about something that may have changed since then, fetch again with `refresh=true`. Null when `cached` is false.",
+ "title": "Cache Age Seconds"
+ },
+ "cached": {
+ "default": false,
+ "description": "True when this result was replayed from the local response cache instead of being fetched from the server during this call. Treat the content as a snapshot taken at `cached_at`, not as the current state of the resource.",
+ "title": "Cached",
+ "type": "boolean"
+ },
+ "cached_at": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "ISO-8601 UTC timestamp at which the cached copy was actually fetched from the server. Null when `cached` is false.",
+ "title": "Cached At"
+ },
+ "content": {
+ "description": "Decoded text response content",
+ "title": "Content",
+ "type": "string"
+ },
+ "kind": {
+ "const": "success",
+ "default": "success",
+ "title": "Kind",
+ "type": "string"
+ },
+ "mime_type": {
+ "$ref": "#/$defs/GeminiMimeType",
+ "description": "Content MIME type"
+ },
+ "next_offset": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Where the part that was cut begins. Pass it back as `offset` to fetch the next window of the same resource. Null when nothing was cut and there is no more to fetch.",
+ "title": "Next Offset"
+ },
+ "request_info": {
+ "$ref": "#/$defs/RequestInfo",
+ "description": "What was actually requested, echoed back so an answer can be matched to its question -- which matters most in a batch, where several results arrive together"
+ },
+ "size": {
+ "description": "Content size in bytes",
+ "minimum": 0,
+ "title": "Size",
+ "type": "integer"
+ },
+ "total_chars": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "How many characters the full body holds, before the render limit was applied. Null when the total was not counted.",
+ "title": "Total Chars"
+ },
+ "truncated": {
+ "default": false,
+ "description": "True if the body continues after this window. `next_offset` is where it continues; `size` still reports the full original size (in bytes, which is not the unit an offset counts in).",
+ "title": "Truncated",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "mime_type",
+ "content",
+ "size"
+ ],
+ "title": "GeminiSuccessResult",
+ "type": "object"
+ },
+ "GemtextDocument": {
+ "description": "Model for parsed gemtext document.",
+ "properties": {
+ "lines": {
+ "description": "Document lines",
+ "items": {
+ "$ref": "#/$defs/GemtextLine"
+ },
+ "title": "Lines",
+ "type": "array"
+ },
+ "links": {
+ "description": "Extracted links",
+ "items": {
+ "$ref": "#/$defs/GemtextLink"
+ },
+ "title": "Links",
+ "type": "array"
+ }
+ },
+ "required": [
+ "lines"
+ ],
+ "title": "GemtextDocument",
+ "type": "object"
+ },
+ "GemtextLine": {
+ "description": "One line of a gemtext document: `type`, `content`, and nothing repeated.\n\nBeyond `type` and `content` a line carries only what those two cannot say --\na link's resolved `url`, a heading's `level`, the marker-stripped `text`,\nand a preformatted block's alt-text and detected language.",
+ "properties": {
+ "alt_text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Alt text of a preformatted block, carried on the opening ``` toggle that declares it rather than repeated on every line inside",
+ "title": "Alt Text"
+ },
+ "content": {
+ "description": "The line as the server sent it, leading marker included",
+ "title": "Content",
+ "type": "string"
+ },
+ "language": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Programming language recognised from `alt_text`, on the opening toggle of a preformatted block",
+ "title": "Language"
+ },
+ "level": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Heading level (1-3, for headings)",
+ "title": "Level"
+ },
+ "link": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GemtextLink"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Link target and text (for link lines)"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The line's text with its leading marker removed, for heading, list-item and quote lines. Absent where `content` is already the text",
+ "title": "Text"
+ },
+ "type": {
+ "$ref": "#/$defs/GemtextLineType",
+ "description": "Type of gemtext line"
+ }
+ },
+ "required": [
+ "type",
+ "content"
+ ],
+ "title": "GemtextLine",
+ "type": "object"
+ },
+ "GemtextLineType": {
+ "description": "Types of lines in gemtext format.",
+ "enum": [
+ "text",
+ "link",
+ "heading1",
+ "heading2",
+ "heading3",
+ "list",
+ "quote",
+ "preformat"
+ ],
+ "title": "GemtextLineType",
+ "type": "string"
+ },
+ "GemtextLink": {
+ "description": "Model for gemtext link lines.",
+ "properties": {
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Link text (optional)",
+ "title": "Text"
+ },
+ "url": {
+ "description": "Link URL, resolved against the request URL when the document was fetched, so links returned by a fetch are absolute",
+ "title": "Url",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "title": "GemtextLink",
+ "type": "object"
+ },
+ "RequestInfo": {
+ "additionalProperties": false,
+ "description": "What this result answers for: the request, echoed back.\n\nOnly the keys the request actually had are present, so a missing key means\n\"did not apply here\", not \"unknown\". `url` plus `timestamp` identify which\nquestion a result belongs to when several arrive together from a batch.",
+ "properties": {
+ "cert_fingerprint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "SHA-256 fingerprint of the certificate the capsule presented, as `sha256:<hex>`. Null when none was available",
+ "title": "Cert Fingerprint"
+ },
+ "cipher": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "TLS cipher suite negotiated with the capsule. Null when the connection reported none",
+ "title": "Cipher"
+ },
+ "client_cert_warning": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Why the client identity that was presented may not have been usable. Present only when there is such a caveat",
+ "title": "Client Cert Warning"
+ },
+ "has_query": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Whether the request carried a query string. Reported as a flag rather than a value because the query holds the answer to a status-10/11 prompt, which may be sensitive",
+ "title": "Has Query"
+ },
+ "host": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Host that was contacted",
+ "title": "Host"
+ },
+ "path": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Path that was requested",
+ "title": "Path"
+ },
+ "port": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Port that was contacted, as it was named",
+ "title": "Port"
+ },
+ "search_ignored": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True when the URL carried a search query that was NOT sent: RFC 1436 gives only type-7 items a query field, so a query on any other type is dropped. Absent when nothing was dropped",
+ "title": "Search Ignored"
+ },
+ "selector": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Gopher selector that was sent, rendered JSON-safe",
+ "title": "Selector"
+ },
+ "timestamp": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "ISO-8601 UTC instant at which this request was made. With `cached_at` it is what distinguishes 'fetched now' from 'replayed from cache'. Absent when the request was rejected before it was sent",
+ "title": "Timestamp"
+ },
+ "tls_version": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "TLS version negotiated with the capsule. Null when the connection reported none",
+ "title": "Tls Version"
+ },
+ "tofu_warning": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Why this connection's certificate is not the pinned one, when it is not. Null on a clean trust-on-first-use check",
+ "title": "Tofu Warning"
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Gopher item type character the URL named (RFC 1436)",
+ "title": "Type"
+ },
+ "url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The resource this result answers for, as the server was asked for it. A Gemini URL never carries its query string here: the answer to a status-10/11 prompt travels in the query and may be a secret",
+ "title": "Url"
+ }
+ },
+ "title": "RequestInfo",
+ "type": "object"
+ }
+}