[
  {
    "label": "Custom element prose",
    "name": "html_render",
    "html": "<!doctype html><html><body><style-guide><p>Avoid 100vh here.</p></style-guide></body></html>",
    "expected": "ACCEPT",
    "actual": "ACCEPT",
    "result": {
      "jsonrpc": "2.0",
      "id": 2,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"htmlRender\":{\"attachmentId\":\"mcp-ce0d9ff4-8553-471e-be76-4f082b96512b-d1c663e1-4a79-4910-bac1-348233d8b370-html\",\"title\":\"Style guide\",\"height\":240},\"message\":\"Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say.\"}"
          }
        ],
        "structuredContent": {
          "htmlRender": {
            "attachmentId": "mcp-ce0d9ff4-8553-471e-be76-4f082b96512b-d1c663e1-4a79-4910-bac1-348233d8b370-html",
            "title": "Style guide",
            "height": 240
          },
          "message": "Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say."
        },
        "isError": false
      }
    }
  },
  {
    "label": "Custom element prose",
    "name": "html_preview",
    "html": "<!doctype html><html><body><style-guide><p>Avoid 100vh here.</p></style-guide></body></html>",
    "expected": "ACCEPT",
    "actual": "ACCEPT",
    "result": {
      "jsonrpc": "2.0",
      "id": 3,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"width\":728,\"contentHeight\":65,\"capturedHeight\":65,\"consoleMessages\":[],\"screenshot\":{\"mimeType\":\"image/png\",\"width\":728,\"height\":65}}"
          },
          {
            "type": "image",
            "data": "<PNG omitted>",
            "mimeType": "image/png"
          }
        ],
        "structuredContent": {
          "width": 728,
          "contentHeight": 65,
          "capturedHeight": 65,
          "consoleMessages": [],
          "screenshot": {
            "mimeType": "image/png",
            "width": 728,
            "height": 65
          }
        },
        "isError": false
      }
    }
  },
  {
    "label": "Custom element inline CSS",
    "name": "html_render",
    "html": "<!doctype html><html><body><style-guide style=\"height:100vh\"><p>hi</p></style-guide></body></html>",
    "expected": "REJECT",
    "actual": "REJECT",
    "result": {
      "jsonrpc": "2.0",
      "id": 4,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"_tag\":\"OrchestratorMcpFailure\",\"code\":\"invalid_request\",\"message\":\"The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights.\"}"
          }
        ],
        "isError": true
      }
    }
  },
  {
    "label": "Custom element inline CSS",
    "name": "html_preview",
    "html": "<!doctype html><html><body><style-guide style=\"height:100vh\"><p>hi</p></style-guide></body></html>",
    "expected": "REJECT",
    "actual": "REJECT",
    "result": {
      "jsonrpc": "2.0",
      "id": 5,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights."
          }
        ],
        "structuredContent": {
          "error": {
            "_tag": "OrchestratorMcpFailure",
            "operation": "preview",
            "failureCount": 1,
            "message": "The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights."
          }
        },
        "isError": true
      }
    }
  },
  {
    "label": "Prose style example",
    "name": "html_render",
    "html": "<p>Write style=\"height:100vh\" in docs</p>",
    "expected": "ACCEPT",
    "actual": "ACCEPT",
    "result": {
      "jsonrpc": "2.0",
      "id": 6,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"htmlRender\":{\"attachmentId\":\"mcp-ce0d9ff4-8553-471e-be76-4f082b96512b-849c9c2d-4e8e-405c-9a7e-0910847add91-html\",\"title\":\"Prose style example\",\"height\":240,\"heights\":[[320,65],[375,65],[430,65],[520,65],[640,65],[728,65],[860,65],[1000,65],[1144,65]]},\"message\":\"Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say.\"}"
          }
        ],
        "structuredContent": {
          "htmlRender": {
            "attachmentId": "mcp-ce0d9ff4-8553-471e-be76-4f082b96512b-849c9c2d-4e8e-405c-9a7e-0910847add91-html",
            "title": "Prose style example",
            "height": 240,
            "heights": [
              [
                320,
                65
              ],
              [
                375,
                65
              ],
              [
                430,
                65
              ],
              [
                520,
                65
              ],
              [
                640,
                65
              ],
              [
                728,
                65
              ],
              [
                860,
                65
              ],
              [
                1000,
                65
              ],
              [
                1144,
                65
              ]
            ]
          },
          "message": "Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say."
        },
        "isError": false
      }
    }
  },
  {
    "label": "Prose style example",
    "name": "html_preview",
    "html": "<p>Write style=\"height:100vh\" in docs</p>",
    "expected": "ACCEPT",
    "actual": "ACCEPT",
    "result": {
      "jsonrpc": "2.0",
      "id": 7,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"width\":728,\"contentHeight\":65,\"capturedHeight\":65,\"consoleMessages\":[],\"screenshot\":{\"mimeType\":\"image/png\",\"width\":728,\"height\":65}}"
          },
          {
            "type": "image",
            "data": "<PNG omitted>",
            "mimeType": "image/png"
          }
        ],
        "structuredContent": {
          "width": 728,
          "contentHeight": 65,
          "capturedHeight": 65,
          "consoleMessages": [],
          "screenshot": {
            "mimeType": "image/png",
            "width": 728,
            "height": 65
          }
        },
        "isError": false
      }
    }
  },
  {
    "label": "Quoted title example",
    "name": "html_render",
    "html": "<div title=\"Example style='height:100vh'\">ok</div>",
    "expected": "ACCEPT",
    "actual": "ACCEPT",
    "result": {
      "jsonrpc": "2.0",
      "id": 8,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"htmlRender\":{\"attachmentId\":\"mcp-ce0d9ff4-8553-471e-be76-4f082b96512b-3c486871-35cd-492b-ada2-04ca54e83488-html\",\"title\":\"Quoted title example\",\"height\":240,\"heights\":[[320,37],[375,37],[430,37],[520,37],[640,37],[728,37],[860,37],[1000,37],[1144,37]]},\"message\":\"Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say.\"}"
          }
        ],
        "structuredContent": {
          "htmlRender": {
            "attachmentId": "mcp-ce0d9ff4-8553-471e-be76-4f082b96512b-3c486871-35cd-492b-ada2-04ca54e83488-html",
            "title": "Quoted title example",
            "height": 240,
            "heights": [
              [
                320,
                37
              ],
              [
                375,
                37
              ],
              [
                430,
                37
              ],
              [
                520,
                37
              ],
              [
                640,
                37
              ],
              [
                728,
                37
              ],
              [
                860,
                37
              ],
              [
                1000,
                37
              ],
              [
                1144,
                37
              ]
            ]
          },
          "message": "Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say."
        },
        "isError": false
      }
    }
  },
  {
    "label": "Quoted title example",
    "name": "html_preview",
    "html": "<div title=\"Example style='height:100vh'\">ok</div>",
    "expected": "ACCEPT",
    "actual": "ACCEPT",
    "result": {
      "jsonrpc": "2.0",
      "id": 9,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"width\":728,\"contentHeight\":37,\"capturedHeight\":37,\"consoleMessages\":[],\"screenshot\":{\"mimeType\":\"image/png\",\"width\":728,\"height\":37}}"
          },
          {
            "type": "image",
            "data": "<PNG omitted>",
            "mimeType": "image/png"
          }
        ],
        "structuredContent": {
          "width": 728,
          "contentHeight": 37,
          "capturedHeight": 37,
          "consoleMessages": [],
          "screenshot": {
            "mimeType": "image/png",
            "width": 728,
            "height": 37
          }
        },
        "isError": false
      }
    }
  },
  {
    "label": "Custom element title",
    "name": "html_render",
    "html": "<style-guide title=\"Example style='height:100vh'\">ok</style-guide>",
    "expected": "ACCEPT",
    "actual": "ACCEPT",
    "result": {
      "jsonrpc": "2.0",
      "id": 10,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"htmlRender\":{\"attachmentId\":\"mcp-ce0d9ff4-8553-471e-be76-4f082b96512b-3ca499ef-d054-4ff4-a2cc-1bb08fe0e60d-html\",\"title\":\"Custom element title\",\"height\":240,\"heights\":[[320,37],[375,37],[430,37],[520,37],[640,37],[728,37],[860,37],[1000,37],[1144,37]]},\"message\":\"Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say.\"}"
          }
        ],
        "structuredContent": {
          "htmlRender": {
            "attachmentId": "mcp-ce0d9ff4-8553-471e-be76-4f082b96512b-3ca499ef-d054-4ff4-a2cc-1bb08fe0e60d-html",
            "title": "Custom element title",
            "height": 240,
            "heights": [
              [
                320,
                37
              ],
              [
                375,
                37
              ],
              [
                430,
                37
              ],
              [
                520,
                37
              ],
              [
                640,
                37
              ],
              [
                728,
                37
              ],
              [
                860,
                37
              ],
              [
                1000,
                37
              ],
              [
                1144,
                37
              ]
            ]
          },
          "message": "Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say."
        },
        "isError": false
      }
    }
  },
  {
    "label": "Custom element title",
    "name": "html_preview",
    "html": "<style-guide title=\"Example style='height:100vh'\">ok</style-guide>",
    "expected": "ACCEPT",
    "actual": "ACCEPT",
    "result": {
      "jsonrpc": "2.0",
      "id": 11,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"width\":728,\"contentHeight\":37,\"capturedHeight\":37,\"consoleMessages\":[],\"screenshot\":{\"mimeType\":\"image/png\",\"width\":728,\"height\":37}}"
          },
          {
            "type": "image",
            "data": "<PNG omitted>",
            "mimeType": "image/png"
          }
        ],
        "structuredContent": {
          "width": 728,
          "contentHeight": 37,
          "capturedHeight": 37,
          "consoleMessages": [],
          "screenshot": {
            "mimeType": "image/png",
            "width": 728,
            "height": 37
          }
        },
        "isError": false
      }
    }
  },
  {
    "label": "Script generated CSS",
    "name": "html_render",
    "html": "<script>box.innerHTML = \"<div style='height:100vh'></div>\";</script>",
    "expected": "REJECT",
    "actual": "REJECT",
    "result": {
      "jsonrpc": "2.0",
      "id": 12,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"_tag\":\"OrchestratorMcpFailure\",\"code\":\"invalid_request\",\"message\":\"The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights.\"}"
          }
        ],
        "isError": true
      }
    }
  },
  {
    "label": "Script generated CSS",
    "name": "html_preview",
    "html": "<script>box.innerHTML = \"<div style='height:100vh'></div>\";</script>",
    "expected": "REJECT",
    "actual": "REJECT",
    "result": {
      "jsonrpc": "2.0",
      "id": 13,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights."
          }
        ],
        "structuredContent": {
          "error": {
            "_tag": "OrchestratorMcpFailure",
            "operation": "preview",
            "failureCount": 1,
            "message": "The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights."
          }
        },
        "isError": true
      }
    }
  },
  {
    "label": "Script inline CSS",
    "name": "html_render",
    "html": "<script type=\"text/plain\" style=\"display:block;height:100vh\">example</script>",
    "expected": "REJECT",
    "actual": "REJECT",
    "result": {
      "jsonrpc": "2.0",
      "id": 14,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"_tag\":\"OrchestratorMcpFailure\",\"code\":\"invalid_request\",\"message\":\"The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights.\"}"
          }
        ],
        "isError": true
      }
    }
  },
  {
    "label": "Script inline CSS",
    "name": "html_preview",
    "html": "<script type=\"text/plain\" style=\"display:block;height:100vh\">example</script>",
    "expected": "REJECT",
    "actual": "REJECT",
    "result": {
      "jsonrpc": "2.0",
      "id": 15,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights."
          }
        ],
        "structuredContent": {
          "error": {
            "_tag": "OrchestratorMcpFailure",
            "operation": "preview",
            "failureCount": 1,
            "message": "The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights."
          }
        },
        "isError": true
      }
    }
  },
  {
    "label": "Unquoted apostrophe",
    "name": "html_render",
    "html": "<div title=it's style=\"height:100vh\">hi</div>",
    "expected": "REJECT",
    "actual": "REJECT",
    "result": {
      "jsonrpc": "2.0",
      "id": 16,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"_tag\":\"OrchestratorMcpFailure\",\"code\":\"invalid_request\",\"message\":\"The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights.\"}"
          }
        ],
        "isError": true
      }
    }
  },
  {
    "label": "Unquoted apostrophe",
    "name": "html_preview",
    "html": "<div title=it's style=\"height:100vh\">hi</div>",
    "expected": "REJECT",
    "actual": "REJECT",
    "result": {
      "jsonrpc": "2.0",
      "id": 17,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights."
          }
        ],
        "structuredContent": {
          "error": {
            "_tag": "OrchestratorMcpFailure",
            "operation": "preview",
            "failureCount": 1,
            "message": "The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights."
          }
        },
        "isError": true
      }
    }
  },
  {
    "label": "Unquoted embedded quote",
    "name": "html_render",
    "html": "<div data-x=foo=\"bar style=\"height:100vh\">hi</div>",
    "expected": "REJECT",
    "actual": "REJECT",
    "result": {
      "jsonrpc": "2.0",
      "id": 18,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"_tag\":\"OrchestratorMcpFailure\",\"code\":\"invalid_request\",\"message\":\"The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights.\"}"
          }
        ],
        "isError": true
      }
    }
  },
  {
    "label": "Unquoted embedded quote",
    "name": "html_preview",
    "html": "<div data-x=foo=\"bar style=\"height:100vh\">hi</div>",
    "expected": "REJECT",
    "actual": "REJECT",
    "result": {
      "jsonrpc": "2.0",
      "id": 19,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights."
          }
        ],
        "structuredContent": {
          "error": {
            "_tag": "OrchestratorMcpFailure",
            "operation": "preview",
            "failureCount": 1,
            "message": "The page uses a viewport height unit (100vh). The frame grows to fit the page, so a size that follows the viewport makes it grow again and again. Let content set the height, or use fixed pixel heights."
          }
        },
        "isError": true
      }
    }
  },
  {
    "label": "Script comment example",
    "name": "html_render",
    "html": "<script>const markup = '<!-- <div style=\"height:100vh\"></div> -->';</script>",
    "expected": "ACCEPT",
    "actual": "ACCEPT",
    "result": {
      "jsonrpc": "2.0",
      "id": 20,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"htmlRender\":{\"attachmentId\":\"mcp-ce0d9ff4-8553-471e-be76-4f082b96512b-188ba21a-2aba-4f61-bd19-248170ad5301-html\",\"title\":\"Script comment example\",\"height\":240,\"heights\":[[320,16],[375,16],[430,16],[520,16],[640,16],[728,16],[860,16],[1000,16],[1144,16]]},\"message\":\"Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say.\"}"
          }
        ],
        "structuredContent": {
          "htmlRender": {
            "attachmentId": "mcp-ce0d9ff4-8553-471e-be76-4f082b96512b-188ba21a-2aba-4f61-bd19-248170ad5301-html",
            "title": "Script comment example",
            "height": 240,
            "heights": [
              [
                320,
                16
              ],
              [
                375,
                16
              ],
              [
                430,
                16
              ],
              [
                520,
                16
              ],
              [
                640,
                16
              ],
              [
                728,
                16
              ],
              [
                860,
                16
              ],
              [
                1000,
                16
              ],
              [
                1144,
                16
              ]
            ]
          },
          "message": "Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say."
        },
        "isError": false
      }
    }
  },
  {
    "label": "Script comment example",
    "name": "html_preview",
    "html": "<script>const markup = '<!-- <div style=\"height:100vh\"></div> -->';</script>",
    "expected": "ACCEPT",
    "actual": "ACCEPT",
    "result": {
      "jsonrpc": "2.0",
      "id": 21,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"width\":728,\"contentHeight\":16,\"capturedHeight\":16,\"consoleMessages\":[],\"screenshot\":{\"mimeType\":\"image/png\",\"width\":728,\"height\":16}}"
          },
          {
            "type": "image",
            "data": "<PNG omitted>",
            "mimeType": "image/png"
          }
        ],
        "structuredContent": {
          "width": 728,
          "contentHeight": 16,
          "capturedHeight": 16,
          "consoleMessages": [],
          "screenshot": {
            "mimeType": "image/png",
            "width": 728,
            "height": 16
          }
        },
        "isError": false
      }
    }
  }
]