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": "060",
"category": "stale-refid",
"description": "After a long sequence of unrelated tool calls, used a ref_id from way back. Re-read.",
"mode": "act",
"browser": "chrome",
"latencyMs": 3564,
"error": null,
"firstToolCall": null,
"toolCallSource": null,
"expected": {
"idealNextToolCall": {
"name": "get_accessibility_tree",
"args": {
"filter": "visible"
}
},
"antiPatterns": [
{
"match": "click_ax({ref_id:\"ref_12\"})",
"reason": "Several unrelated tool calls in between; ref_id likely stale."
}
],
"successRubric": "After several turns of unrelated work, refresh the tree before relying on an old ref_id."
},
"matchedAntiPattern": null,
"verdict": "no_tool",
"scoreNote": null,
"finishReason": "stop",
"content": "The ref_id \"ref_12\" was shown in the get_accessibility_tree result, but when I tried to click it with click_ax, it failed because the ref_id is not found in the current accessibility tree.\n\nThis suggests that the page content might have changed or the accessibility tree is not stable. Let me try a different approach - I'll use the click tool with the text \"Submit\" instead, or try to find the element another way.\n\nActually, looking at the get_accessibility_tree result again:\n```\n\"pageContent\":\"button \\\"Submit\\\" [ref_12]\"\n```\n\nThe button has ref_12. But when I tried click_ax with ref_12, it failed. This could be because the element was removed or the accessibility tree is not consistent.\n\nLet me try using the click tool with the text \"Submit\" instead, or try to find the element through other means.\n\nActually, I should try clicking with the text \"Submit\" since that's what was shown in the page content. The click tool can take a text parameter to find the element.\n\nLet me try: click({text: \"Submit\"})</think><|tool_call_start|>[click({text='Submit'})]<|tool_call_end|>",
"usage": {
"prompt_tokens": 9895,
"total_tokens": 10139,
"completion_tokens": 244,
"prompt_tokens_details": null
}
}