Open-source AI browser agent for Chrome and Firefox (monorepo) π§
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
{
"id": "030",
"category": "csp-blocked-eval",
"mode": "dev",
"browser": "chrome",
"tab": {
"url": "https://example.com/page",
"title": "Example"
},
"description": "execute_js history.back() is CSP-blocked. The agent has a dedicated go_back tool β it should use that instead of giving up.",
"seed": [
{
"role": "user",
"content": "[Current page context β applies to this user message and supersedes older page context for phrases like \"this page\". URL: https://example.com/page β Title: Example]\n\ngo back to the previous page"
},
{
"role": "assistant",
"content": "",
"tool_calls": [
{
"id": "call_x_86f04f",
"type": "function",
"function": {
"name": "execute_js",
"arguments": "{\"code\":\"history.back()\"}"
}
}
]
},
{
"role": "tool",
"tool_call_id": "call_x_86f04f",
"name": "execute_js",
"content": "{\"success\":false,\"error\":\"CSP: 'unsafe-eval' not allowed.\"}"
}
],
"expected": {
"idealNextToolCall": {
"name": "go_back",
"args": {}
},
"antiPatterns": [
{
"match": "execute_js({code:\"history.back()\"})",
"reason": "Same CSP block β execute_js can't drive history here."
},
{
"match": "done({summary:\"...\"})",
"reason": "Don't give up and tell the user to press Back manually; the go_back tool exists for exactly this."
}
],
"successRubric": "Recover from the CSP-blocked execute_js by calling the dedicated go_back tool (no url/steps needed for a single step back). Do NOT retry history.back() via execute_js, and do NOT punt to the user with a manual Back-button instruction."
}
}