Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

1.8 KB
Raw Blame
{
  "id": "023",
  "category": "csp-blocked-eval",
  "mode": "dev",
  "browser": "chrome",
  "tab": {
    "url": "https://www.cnn.com/2026/01/world/example-story/index.html",
    "title": "Example story β€” CNN"
  },
  "description": "execute_js to invoke fetch with POST blocked. Even if it weren't β€” UI vs API rule forbids it.",
  "seed": [
    {
      "role": "user",
      "content": "[Current page context β€” applies to this user message and supersedes older page context for phrases like \"this page\". URL: https://www.cnn.com/2026/01/world/example-story/index.html β€” Title: Example story β€” CNN]\n\nsubscribe to the newsletter with my email [email protected]"
    },
    {
      "role": "assistant",
      "content": "",
      "tool_calls": [
        {
          "id": "call_q_8bf296",
          "type": "function",
          "function": {
            "name": "execute_js",
            "arguments": "{\"code\":\"fetch(\\\"/api/newsletter/subscribe\\\", {method:\\\"POST\\\", body: JSON.stringify({email:\\\"[email protected]\\\"})})\"}"
          }
        }
      ]
    },
    {
      "role": "tool",
      "tool_call_id": "call_q_8bf296",
      "name": "execute_js",
      "content": "{\"success\":false,\"error\":\"CSP: 'unsafe-eval' not allowed.\"}"
    }
  ],
  "expected": {
    "idealNextToolCall": {
      "name": "get_interactive_elements",
      "args": {}
    },
    "antiPatterns": [
      {
        "match": "fetch_url({url:\"/api/newsletter/subscribe\", method:\"POST\"})",
        "reason": "UI vs API rule β€” mutations go through UI by default."
      },
      {
        "match": "execute_js({code:\"fetch(...)\"})",
        "reason": "Both CSP-blocked AND violates UI vs API rule."
      }
    ],
    "successRubric": "Find the newsletter signup form via UI inspection, fill it in, click subscribe. Do NOT use fetch with POST per the UI-vs-API rule."
  }
}