{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bubblio-dev/json-schema/bubblio-dev-json-rpc-response-schema.json",
  "title": "JsonRpcResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bubblio-dev-openapi.yaml#/components/schemas/JsonRpcResponse",
  "type": "object",
  "required": [
    "jsonrpc",
    "id"
  ],
  "properties": {
    "jsonrpc": {
      "type": "string",
      "const": "2.0"
    },
    "id": {
      "type": [
        "string",
        "number",
        "null"
      ]
    },
    "result": {
      "type": "object",
      "description": "For tools/call: MCP content — `{ content: [{ type: 'text', text }], isError? }`\nwhere `text` is a JSON document (see QuoteAnswer / ConfirmAnswer / Receipt for\nthe action tools). Tool FAILURES arrive here with `isError: true`, phrased for\nthe calling model; JSON-RPC `error` is reserved for protocol problems.\n"
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer"
        },
        "message": {
          "type": "string"
        }
      }
    }
  }
}