feat(browseruse): upgraded browseruse endpoints to v2#2890
Merged
waleedlatif1 merged 1 commit intostagingfrom Jan 19, 2026
Merged
feat(browseruse): upgraded browseruse endpoints to v2#2890waleedlatif1 merged 1 commit intostagingfrom
waleedlatif1 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile SummaryThis PR upgrades the BrowserUse integration from API v1 to v2. The main changes include:
Unrelated Changes:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client as Sim Client
participant Tool as runTaskTool
participant API as BrowserUse API v2
Client->>Tool: Execute browser_use_run_task
Note over Client,Tool: Pass task, apiKey, variables, model, etc.
Tool->>API: POST /api/v2/tasks
Note over Tool,API: Headers: X-Browser-Use-API-Key
Note over Tool,API: Body: task, secrets, llm_model, etc.
API-->>Tool: Response with task ID
Tool->>API: GET /api/v2/tasks/{taskId}
Note over Tool,API: Initial fetch for live_url
API-->>Tool: Task data with live_url
Tool->>Tool: Log live URL if available
loop Poll every 5s (max 3 min)
Tool->>API: GET /api/v2/tasks/{taskId}
Note over Tool,API: Headers: X-Browser-Use-API-Key
API-->>Tool: Task status and data
alt Status is finished/failed/stopped
Tool-->>Client: Return final result
else Status is running
Tool->>Tool: Log live URL (first time only)
Tool->>Tool: Wait 5 seconds
end
end
alt Timeout reached
Tool-->>Client: Return timeout error
end
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Tested manually
Checklist