Skip to content

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

1.5 KB
Raw Blame
{
  "id": "022",
  "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 scroll blocked. Use the scroll tool.",
  "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\nscroll halfway down"
    },
    {
      "role": "assistant",
      "content": "",
      "tool_calls": [
        {
          "id": "call_p_88f291",
          "type": "function",
          "function": {
            "name": "execute_js",
            "arguments": "{\"code\":\"window.scrollTo(0, document.body.scrollHeight / 2)\"}"
          }
        }
      ]
    },
    {
      "role": "tool",
      "tool_call_id": "call_p_88f291",
      "name": "execute_js",
      "content": "{\"success\":false,\"error\":\"CSP: 'unsafe-eval' not allowed.\"}"
    }
  ],
  "expected": {
    "idealNextToolCall": {
      "name": "scroll",
      "args": {
        "direction": "down",
        "amount": 500
      }
    },
    "antiPatterns": [
      {
        "match": "execute_js({code:\"window.scroll(...)\"})",
        "reason": "execute_js is blocked, period."
      }
    ],
    "successRubric": "Use the scroll tool. There is a dedicated tool for this β€” no need for execute_js."
  }
}