Skip to content

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

1.3 KB
Raw Blame
{
  "id": "012",
  "user": "show my browser history",
  "mode": "act",
  "tab": {
    "url": "about:home",
    "title": "New Tab"
  },
  "latencyMs": 2772,
  "error": null,
  "firstToolCall": {
    "name": "execute_js",
    "args": {
      "code": "if (typeof chrome !== 'undefined' && chrome.history) {\n  chrome.history.search({text: '', maxResults: 100}, function(historyItems) {\n    console.log('HISTORY_RESULT', JSON.stringify(historyItems));\n  });\n} else {\n  console.log('NO_CHROME_HISTORY_API');\n}"
    }
  },
  "toolCallSource": "tool_calls",
  "finishReason": "tool_calls",
  "content": "I'll try to access your browser history. Let me first attempt to use Chrome's history API directly.",
  "usage": {
    "prompt_tokens": 16943,
    "completion_tokens": 491,
    "total_tokens": 17434,
    "cost": 0.00026898,
    "is_byok": false,
    "prompt_tokens_details": {
      "cached_tokens": 16928,
      "cache_write_tokens": 0,
      "audio_tokens": 0,
      "video_tokens": 0
    },
    "cost_details": {
      "upstream_inference_cost": 0.00026898,
      "upstream_inference_prompt_cost": 0.00017078,
      "upstream_inference_completions_cost": 0.0000982
    },
    "completion_tokens_details": {
      "reasoning_tokens": 381,
      "image_tokens": 0,
      "audio_tokens": 0
    }
  },
  "attempts": 1,
  "retryErrors": []
}