Skip to content

Conversation

@MagMueller
Copy link
Collaborator

@MagMueller MagMueller commented Oct 30, 2025

Auto-generated PR for: better descripiton for extract


Note

Replace extract’s loose params with a new ExtractAction model and adjust handling/error text accordingly.

  • Tools:
    • Extract action (browser_use/tools/service.py):
      • Switch to structured params: params: ExtractAction; read query, extract_links, start_from_char from params.
      • Minor error message tweak for start_from_char bounds.
    • Action models (browser_use/tools/views.py):
      • Add ExtractAction with query, extract_links, start_from_char.

Written by Cursor Bugbot for commit 1383604. This will update automatically on new commits. Configure here.

@github-actions
Copy link

Agent Task Evaluation Results: 2/2 (100%)

View detailed results
Task Result Reason
amazon_laptop ✅ Pass Skipped - API key not available (fork PR or missing secret)
browser_use_pip ✅ Pass Skipped - API key not available (fork PR or missing secret)

Check the evaluate-tasks job for detailed task execution logs.

@MagMueller
Copy link
Collaborator Author

Evaluation Results

Commit: 1383604

📊 Summary

  • Success Rate: ✅ 86.1%
  • Average Steps: 7.0 steps/task
  • Average Time: 13.7 sec/task
  • Average Time per Step: 1.9s/step

❌ Failed Tasks

...and 1 more failed tasks


Automated evaluation by browser-use

@MagMueller MagMueller merged commit c3c23c3 into main Oct 30, 2025
47 checks passed
@MagMueller MagMueller deleted the better-descripiton-for-extract branch October 30, 2025 00:27
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="browser_use/tools/service.py">

<violation number="1" location="browser_use/tools/service.py:588">
`params` is still a plain dict when this action runs, so accessing `params.query` raises an AttributeError and breaks the extract action.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

):
# Constants
MAX_CHAR_LIMIT = 30000
query = params.query
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

params is still a plain dict when this action runs, so accessing params.query raises an AttributeError and breaks the extract action.

Prompt for AI agents
Address the following comment on browser_use/tools/service.py at line 588:

<comment>`params` is still a plain dict when this action runs, so accessing `params.query` raises an AttributeError and breaks the extract action.</comment>

<file context>
@@ -577,15 +578,16 @@ async def close(params: CloseTabAction, browser_session: BrowserSession):
 		):
 			# Constants
 			MAX_CHAR_LIMIT = 30000
+			query = params.query
+			extract_links = params.extract_links
+			start_from_char = params.start_from_char
</file context>
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants