Skip to content

fix: Make fill_form more appealing when filling forms with checkboxes#1971

Open
zyzyzyryxy wants to merge 2 commits intomainfrom
zyzyzyryxy/update-fill-form-description
Open

fix: Make fill_form more appealing when filling forms with checkboxes#1971
zyzyzyryxy wants to merge 2 commits intomainfrom
zyzyzyryxy/update-fill-form-description

Conversation

@zyzyzyryxy
Copy link
Copy Markdown
Contributor

Fixes #1942

Verified using npm run eval -- scripts/eval_scenarios/fill_select_and_checkboxes_test.ts

Without this change, I observed 7 runs using fill_form for all controls at once, 14 runs using click to select checkboxes and 10 runs that did nothing (total 31 runs)

After this change: 9 fill_form using runs (passes), 1 click based approach and 10 no-attempt fails (20 runs total)

Depending how we count the no-attempt runs, its either increase from 23% to 45% or 33% to 90% in eval pass rate.

@zyzyzyryxy zyzyzyryxy requested a review from OrKoN April 28, 2026 16:28
Comment thread src/tools/input.ts
export const fillForm = definePageTool({
name: 'fill_form',
description: `Fill out multiple form elements at once`,
description: `Fill out multiple form elements at once. To set checkboxes fill them with 'true'`,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

let's add a test to tests/tools/input.test.ts that tests checkboxes and verify that it actually accepts a string true and false

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch, I misread some eval results thinking it already works this way. Pushed an update to make fill and fill_form handle those, together with tests.

@zyzyzyryxy zyzyzyryxy requested a review from OrKoN April 30, 2026 15:26
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.

fill_form tool is not used to fill multiple form fields at once

2 participants