open-source の検証ログ
課題ごとに、依頼文と採点項目、項目ごとの点数、実行ごとの時間・トークン、Claude Code の全ログ、作られたファイルを載せています。配点を変えても計算し直せるよう、生データも置いています。
2026年11月22日 に実行(実行: claude-sonnet-5-5/採点: claude-opus-5-5)。数値は中央値です。課題は SKILL.md をもとに AI が作ったもので、スキルに有利な場面に偏ることがあります。
生データ(JSON)課題・実行ごとの測定値・採点・集計をそのまま置いています。
実行ごとの測定値
| 実行 | 結果 | 時間 | トークン | 費用 | ターン | スキル使用 | ログ |
|---|---|---|---|---|---|---|---|
| 課題 1 1 回目 スキルなし | 完了 | 14秒 | 52,276 | $0.056 | 4 | - | 全ログ |
| 課題 1 1 回目 スキルあり | 完了 | 14秒 | 56,951 | $0.058 | 8 | 使った | 全ログ |
| 課題 1 1 回目 スキルあり(名指しなし) | 完了 | 14秒 | 56,893 | $0.056 | 8 | 使った | 全ログ |
| 課題 1 2 回目 スキルあり | 完了 | 14秒 | 56,946 | $0.031 | 8 | 使った | 全ログ |
| 課題 1 2 回目 スキルなし | 完了 | 13秒 | 68,764 | $0.034 | 5 | - | 全ログ |
| 課題 1 2 回目 スキルあり(名指しなし) | 完了 | 14秒 | 56,805 | $0.030 | 8 | 使った | 全ログ |
| 課題 2 1 回目 スキルなし | 完了 | 27秒 | 71,410 | $0.074 | 4 | - | 全ログ |
| 課題 2 1 回目 スキルあり | 完了 | 20秒 | 57,511 | $0.067 | 6 | 使った | 全ログ |
| 課題 2 1 回目 スキルあり(名指しなし) | 完了 | 19秒 | 57,540 | $0.066 | 6 | 使った | 全ログ |
| 課題 2 2 回目 スキルあり | 完了 | 19秒 | 57,258 | $0.041 | 6 | 使った | 全ログ |
| 課題 2 2 回目 スキルなし | 完了 | 34秒 | 73,058 | $0.071 | 4 | - | 全ログ |
| 課題 2 2 回目 スキルあり(名指しなし) | 完了 | 19秒 | 57,573 | $0.044 | 6 | 使った | 全ログ |
| 課題 2 3 回目 スキルなし | 完了 | 23秒 | 38,162 | $0.052 | 4 | - | 全ログ |
| 課題 2 3 回目 スキルあり | 完了 | 21秒 | 57,794 | $0.045 | 6 | 使った | 全ログ |
| 課題 2 3 回目 スキルあり(名指しなし) | 完了 | 19秒 | 57,538 | $0.043 | 6 | 使った | 全ログ |
「スキルあり(名指しなし)」は呼ばれやすさを測るための実行で、採点はしていません。
課題 1: browser-use 0.x のスクリプトを 1.0 へ移行する
依頼文
We're upgrading our scraper from browser-use 0.x to browser-use 1.0.7. Please port `scraper.py` to the 1.0 API so it keeps doing the same job (local headless Chrome, a custom action that saves rows to CSV, a login with credentials, and printing the final result), and update `requirements.txt`. The package isn't installed in this environment, so you can't run it here, but the file must at least be valid Python. Briefly list what you changed and why.採点基準
- requirements.txt pins browser-use to exactly 1.0.7 (using ==, not >= or an unpinned name)
- scraper.py no longer uses the 0.x objects Controller, BrowserSession or BrowserProfile; it uses the 1.0 equivalents (Tools with @tools.action passed as tools=, and a Browser object configured for a local headless Chromium with the shop.example.com domain restriction kept)
- The custom save action no longer depends on an injected browser session/page parameter, while still saving name and price to the CSV (e.g. the URL is passed in as an argument by the model or dropped with an explanation)
- Credentials still come from environment variables via sensitive_data (ideally scoped to https://shop.example.com) and the raw values are not written into the task string
- The final result is still printed and the run's outcome is reported (e.g. final_result() plus status or is_successful()); `python3 -m py_compile scraper.py` succeeds
- The final message lists the changes made, including any 0.x options (such as use_vision) that were removed or replaced
項目ごとの点数(1 = 満たした・0.5 = 一部・0 = 満たさない)
| # | 1 回目 スキルなし / スキルあり | 2 回目 スキルなし / スキルあり |
|---|---|---|
| 1 | 1 / 1 | 1 / 1 |
| 2 | 0.5 / 1 | 0.5 / 1 |
| 3 | 0 / 1 | 0 / 1 |
| 4 | 1 / 1 | 1 / 1 |
| 5 | 1 / 1 | 1 / 1 |
| 6 | 0.5 / 1 | 0.5 / 1 |
初期ファイル(2)
scraper.py
import asyncio
import csv
import os
from browser_use import Agent, BrowserSession, BrowserProfile, Controller, ActionResult
from browser_use.llm import ChatOpenAI
controller = Controller()
@controller.action('Save a product row to the output CSV')
async def save_row(name: str, price: str, browser_session: BrowserSession) -> ActionResult:
page = await browser_session.get_current_page()
with open('products.csv', 'a', newline='') as f:
csv.writer(f).writerow([name, price, page.url])
return ActionResult(extracted_content=f'saved {name}')
async def main():
profile = BrowserProfile(headless=True, user_data_dir=None, allowed_domains=['shop.example.com'])
session = BrowserSession(browser_profile=profile)
llm = ChatOpenAI(model='gpt-4.1')
agent = Agent(
task='Log in to https://shop.example.com with x_user and x_pass, open the Laptops category and save every product name and price',
llm=llm,
controller=controller,
browser_session=session,
use_vision=True,
sensitive_data={'x_user': os.environ['SHOP_USER'], 'x_pass': os.environ['SHOP_PASS']},
)
history = await agent.run(max_steps=40)
print(history.final_result())
print('success:', history.is_successful())
if __name__ == '__main__':
asyncio.run(main())
requirements.txt
browser-use>=0.5.0
1 回目: スキルあり (達成率 66.7% / 100%)
Aは保存アクションが注入browser_sessionに依存しuse_visionも残すが、Bはurl引数化しローカルchromium指定も明示した。
スキルなし66.7%
最終メッセージ
I ported scraper.py to the 1.0 API and pinned browser-use==1.0.7 in requirements.txt. The file compiles (py_compile). I couldn't run it here because the package isn't installed. I wrote the 1.0 names from memory, so please check them against the 1.0.7 docs or a real run.
Changes in scraper.py:
- Imports:
Controller,BrowserSessionandBrowserProfileare replaced byToolsandBrowser. I believe these are the 1.0 names; I couldn't confirm them here.ActionResultis unchanged. - Custom action:
Controller()/@controller.actionbecameTools()/@tools.action. Thesave_rowbody and the CSV output are unchanged. - Page URL:
browser_session.get_current_page()is gone, because 1.0 no longer uses Playwright pages.save_rownow callsawait browser_session.get_current_page_url(). The injected parameter is still namedbrowser_session, now typed asBrowser. - Browser setup: the separate profile and session objects are merged into one
Browser(headless=True, user_data_dir=None, allowed_domains=[...]). The settings are the same, so it still runs local headless Chrome with a temporary profile. - Agent arguments:
controller=is nowtools=, andbrowser_session=is nowbrowser=. - Login credentials:
sensitive_datais now scoped tohttps://shop.example.cominstead of a flat dict. I did this becauseallowed_domainsis set, and I believe 1.0 expects credentials to be tied to a domain. The task text, placeholders and env vars are unchanged. - Unchanged:
ChatOpenAI,use_vision,agent.run(max_steps=40), and thefinal_result()/is_successful()printing.
requirements.txt: I changed browser-use>=0.5.0 to browser-use==1.0.7. I pinned it exactly because 1.0 has breaking API changes. Pin to a range instead if you'd rather get later 1.x releases.
Run the script once after installing to confirm the imports and the get_current_page_url() call.
作った・変えたファイル
スキルあり100%
最終メッセージ
I ported scraper.py to the 1.0 API and pinned requirements.txt. The file compiles as valid Python, but I couldn't run it here because the package isn't installed.
What changed and why
- Imports:
Controlleris nowTools,BrowserSessionandBrowserProfileare replaced byBrowser, andChatOpenAInow comes frombrowser_usedirectly. - Browser:
BrowserSession(BrowserProfile(...))is nowBrowser('chromium', headless=True, allowed_domains=[...]). The 1.0 default is a Browser Use cloud browser, so'chromium'keeps it local.user_data_dir=Noneis dropped because a temp profile is already the default for a fresh local Chromium. - Custom action: In 1.0, actions can no longer be given
browser_session, sosave_rowcan't read the current page URL. I replaced that with aurl: strargument the model fills in, and I updated the task text to ask for the page URL. This is a small behaviour change. The action is also now a plain sync function, since it does no async work. - Agent arguments:
controller=is nowtools=andbrowser_session=is nowbrowser=. I removeduse_vision=Truebecause it isn't in the 1.0 Agent signature, which I take to mean it was dropped. I didn't verify that against MIGRATING.md, so it may raise an error if it's still accepted. - Credentials:
sensitive_datais now scoped tohttps://shop.example.com, so the credentials can only be typed on that site. - Result:
final_result()andis_successful()are unchanged. I also printresult.status, which is new in 1.0, so amax_stepsortimeoutoutcome is visible. requirements.txt:browser-use>=0.5.0is nowbrowser-use==1.0.7. The skill says to pin with==because releases move fast.
I kept gpt-4.1 and max_steps=40 as they were. The skill also asks for a feedback message after an integration runs. I didn't send one because nothing has run yet, and it would go to an external service.
Check MIGRATING.md in the repo for any removed options I missed.
作った・変えたファイル
2 回目: スキルあり (達成率 66.7% / 100%)
Bは保存アクションが注入されたbrowser_sessionに依存し、use_visionも残したまま。Aは基準を全て満たす
スキルなし66.7%
最終メッセージ
I ported scraper.py and pinned requirements.txt to browser-use==1.0.7. The file compiles with py_compile, but I couldn't check it against 1.0.7. The package isn't installed and pip isn't available here, so I wrote the new names from memory of the 1.0 API.
What changed in scraper.py:
- Imports: everything now comes from the top-level
browser_usepackage.BrowserSession/BrowserProfilebecameBrowser,ControllerbecameTools, andChatOpenAIis imported from the top level too. - Browser setup: the separate profile and session objects are replaced by one
Browser(headless=True, user_data_dir=None, allowed_domains=[...]). This keeps the local headless Chrome behaviour and the domain restriction. - Custom action: the decorator is now
@tools.action(...). Thebrowser_sessionargument is now typedBrowser. - Current URL: the 1.0 browser no longer exposes a Playwright
page, soget_current_page()andpage.urlbecameawait browser_session.get_current_page_url(). The CSV row is the same. - Agent arguments:
controller=becametools=andbrowser_session=becamebrowser=. - Unchanged:
sensitive_datafor the login,use_vision,max_steps=40, and thefinal_result()andis_successful()printing.
requirements.txt: I pinned browser-use==1.0.7 instead of >=0.5.0, so the pin is exactly the version you're upgrading to.
Please run it once after installing, since the get_current_page_url() method and the Tools/Browser exports are the likeliest places for a mismatch. If the install pulls in a newer ChatOpenAI dependency, you may also need to check the gpt-4.1 model name.
作った・変えたファイル
スキルあり100%
最終メッセージ
I ported scraper.py to the 1.0 API and pinned requirements.txt. The file compiles as valid Python. I couldn't run it against browser-use because the package isn't installed here, so the 1.0 calls are written from the skill's reference and untested.
scraper.py
- Imports:
Controller,BrowserSessionandBrowserProfileare replaced byToolsandBrowser. - Browser:
BrowserSession(BrowserProfile(...))becomesBrowser('chromium', headless=True, allowed_domains=[...]). This is a fresh local Chrome with a temporary profile, which is whatuser_data_dir=Nonegave before. The defaultBrowser()in 1.0 is a cloud browser, so I set'chromium'explicitly. - Custom action:
@controller.actionbecomes@tools.action, andcontroller=becomestools=. save_rowsignature: 1.0 actions get only the arguments the model passes, sobrowser_sessionandget_current_page()no longer work. The URL column used to come from the current page. It is now aurlargument, and the task and action description tell the model to pass the product page URL. The CSV format is unchanged, but that column now depends on the model supplying it.- Login credentials:
sensitive_datais now scoped to the site,{'https://shop.example.com': {...}}. That way the secrets can only be typed on that domain. Thex_userandx_passplaceholders in the task are unchanged. - Removed option: I dropped
use_vision=True, since it isn't in the 1.0Agentsignature in the skill reference. - Output: I kept the
final_result()andis_successful()prints and addedresult.status.
requirements.txt
browser-use>=0.5.0is nowbrowser-use==1.0.7. The skill says to pin with==because releases move fast. 1.0 needs Python 3.11 or newer.
Left for you
- Check
ChatOpenAI('gpt-4.1')against your setup. In 1.0 it uses the OpenAI Responses API. - The skill also asks for a feedback message to Browser Use after an integration runs. I didn't send one, since nothing ran here and it would go to an external service.
作った・変えたファイル
課題 2: browser-use 1.0 で請求書を構造化取得するスクリプト作成
依頼文
Write `fetch_invoices.py` using the browser-use 1.0.7 Python library (it's not installed here, so just write correct code; it must at least compile). It should: open a local headless Chromium (not a cloud browser) restricted to billing.example.com, log in using BILLING_USER / BILLING_PASS from the environment without leaking them to the model, collect the invoices listed on the Invoices page as structured data (invoice id, date, amount, status) using a Pydantic model rather than parsing free text, and give the agent a custom tool that looks up our internal cost center for a vendor from `cost_centers.json`. Save the result to `invoices.json`, and exit non-zero if the run didn't complete. Use Claude via ANTHROPIC_API_KEY as the model. Also add a pinned requirements.txt.採点基準
- fetch_invoices.py exists and `python3 -m py_compile fetch_invoices.py` succeeds; requirements.txt pins browser-use to exactly 1.0.7
- Uses a local headless Chromium Browser (not the default cloud browser) restricted to billing.example.com via an allowed-domains option
- Credentials are read from BILLING_USER/BILLING_PASS and passed through the agent's sensitive_data mechanism (preferably scoped to the billing site), never embedded in the task text or printed
- Invoices are collected via a Pydantic output schema passed to the Agent (output_model_schema) and the structured output, not free-text parsing, is written to invoices.json
- A custom tool registered with browser-use's Tools reads cost_centers.json and returns the cost center for a vendor, handling unknown vendors gracefully
- The script uses an Anthropic chat model, checks the run's status/outcome and exits with a non-zero code when it did not complete
項目ごとの点数(1 = 満たした・0.5 = 一部・0 = 満たさない)
| # | 1 回目 スキルなし / スキルあり | 2 回目 スキルなし / スキルあり | 3 回目 スキルなし / スキルあり |
|---|---|---|---|
| 1 | 1 / 1 | 1 / 1 | 1 / 1 |
| 2 | 1 / 0.5 | 0.5 / 1 | 1 / 0.5 |
| 3 | 1 / 1 | 1 / 1 | 1 / 1 |
| 4 | 1 / 1 | 1 / 1 | 1 / 1 |
| 5 | 1 / 1 | 1 / 1 | 1 / 1 |
| 6 | 1 / 0.5 | 0.5 / 1 | 1 / 0.5 |
初期ファイル(1)
cost_centers.json
{
"Acme Hosting": "CC-1201",
"Globex Analytics": "CC-3310",
"Initech Support": "CC-0420"
}
1 回目: スキルなし (達成率 100% / 83.3%)
Bは1.0系の実在APIに沿い、Aはresult.statusや位置引数など不確かなAPIを使う
スキルなし100%
最終メッセージ
I wrote fetch_invoices.py and a requirements.txt pinned to browser-use==1.0.7. The script compiles, but I haven't run it. I couldn't install browser-use here (no pip, no network access), so the browser-use calls come from my memory of its recent API, not from the 1.0.7 source. Check them against the installed package before relying on it. The calls most worth checking are Tools, @tools.action, Browser(headless=, allowed_domains=), ChatAnthropic, sensitive_data, history.structured_output and browser.kill().
- Browser: it opens a local headless Chromium with
allowed_domainsset tobilling.example.comand its subdomains. It doesn't use a cloud browser. - Credentials:
BILLING_USERandBILLING_PASSgo in throughsensitive_data, scoped tohttps://billing.example.com. The task text only mentions<secret>billing_user</secret>and<secret>billing_pass</secret>, so the model never sees the real values. I also setuse_vision=False, because screenshots could show the typed credentials. - Invoice data: a Pydantic
Invoice(id, date, amount, status) andInvoiceListare passed asoutput_model_schema, so the agent returns structured data instead of free text. - Custom tool:
lookup_cost_center(vendor)readscost_centers.jsonand matches the vendor name case-insensitively. I assumed the file is a flat{vendor: cost_center}object. If yours is shaped differently, adjust the lookup. - Model:
ChatAnthropic(model="claude-sonnet-5-5")usingANTHROPIC_API_KEY. - Output and exit codes:
- 0: the invoices were written to
invoices.json. - 1: the agent raised an error, didn't finish, reported failure, or returned no structured output.
- 2: one of
BILLING_USER,BILLING_PASSorANTHROPIC_API_KEYis missing.
- 0: the invoices were written to
Only browser-use is pinned in requirements.txt, so its dependencies float. Run pip freeze after installing and pin the full set if you want a stricter lock. Chromium also needs installing separately, for example with uvx browser-use install or playwright install chromium.
作った・変えたファイル
スキルあり83.3%
最終メッセージ
I wrote /work/fetch_invoices.py and /work/requirements.txt. The script compiles, but I haven't run it, since browser-use isn't installed here.
How it works
- Browser:
Browser('chromium', headless=True, allowed_domains=['billing.example.com'])runs a local headless Chromium limited to that domain. - Credentials:
BILLING_USERandBILLING_PASSgo in throughsensitive_data, scoped tohttps://billing.example.com. The task text only mentions the placeholder namesbilling_userandbilling_pass. The script exits with code 2 if either variable orANTHROPIC_API_KEYis missing. - Model:
ChatAnthropic('claude-sonnet-5-5'), which readsANTHROPIC_API_KEY. - Structured output:
output_model_schema=InvoiceListis a Pydantic model whose invoices haveinvoice_id,date,amountandstatus. The script reads the result fromresult.structured_output. - Custom tool:
lookup_cost_center(vendor)readscost_centers.jsonand matches the vendor name case-insensitively. It returns a not-found message instead of raising. - Output and exit code:
invoices.jsonis written only if the status iscompleted,is_successful()is true and the structured output is present. Otherwise the script prints the error and exits 1.
Things to check
- Version: I pinned
browser-use==1.0.7as you asked. The skill's install example shows1.0.8rc1, so the 1.0.7 API may differ slightly. I only used calls the skill documents. - Extra fields: I added optional
vendorandcost_centerto the invoice model. Otherwise the cost-center tool would have nowhere to put its result. They can be dropped if you want exactly the four fields. cost_centers.jsonformat: I assumed a flat{"Vendor Name": "CC-123"}mapping. The file isn't in/work, so the script will fail on lookup until you add it.- Feedback: The skill says to send Browser Use a feedback message after each run. I didn't send one, because nothing has actually run and that would publish to an external service.
作った・変えたファイル
2 回目: スキルあり (達成率 83.3% / 100%)
Bは1.0系APIでローカルChromiumを明示しstatusを確認、Aは旧API依存でその両点が不確か
スキルなし83.3%
最終メッセージ
I wrote fetch_invoices.py and a pinned requirements.txt (browser-use==1.0.7), and the script compiles. I couldn't run it or check it against the library, because the package isn't installed and pip isn't available here. I wrote the API calls from memory of browser-use 0.7 and later, so a first run may show small import or keyword differences.
- Browser: it opens local headless Chromium, restricted to
billing.example.comwithallowed_domains. It never uses a cloud browser. - Login:
BILLING_USERandBILLING_PASSgo in throughsensitive_data, scoped to the billing domain. The model only sees<secret>billing_user</secret>and<secret>billing_pass</secret>, and the library substitutes the real values when typing. I setuse_vision=Falseso screenshots can't show the typed username. The cost is that the agent works from the page's text structure only. - Structured data:
Invoicehasinvoice_id,date,amountandstatus, andInvoiceListwraps a list of them. It is passed asoutput_model_schema, and the result comes fromhistory.structured_output, not parsed text. - Custom tool:
lookup_cost_center(vendor)readscost_centers.json(next to the script) on each call and matches vendor names case-insensitively. I assumed that file is a{"vendor": "cost center"}mapping, so adjust the lookup if yours is shaped differently. - Model:
ChatAnthropic(model="claude-sonnet-5-5")usingANTHROPIC_API_KEY. - Output and exit codes: the result is written to
invoices.json. The script exits 0 only if the agent finished, reported success and returned parsed data. It exits 1 if the run failed or didn't complete, and 2 if an environment variable is missing.
amount is a plain float. If you need to keep the currency or exact decimals, change it to a str or Decimal.
On a real machine, install Chromium once (for example uvx playwright install chromium, or browser-use install if your version has it).
作った・変えたファイル
スキルあり100%
最終メッセージ
I wrote fetch_invoices.py and requirements.txt in /work. The script compiles, but I couldn't run it because browser-use isn't installed here.
- Browser:
Browser('chromium', headless=True, allowed_domains=['billing.example.com'])runs a local headless Chromium limited to that domain. - Model:
ChatAnthropic('claude-sonnet-5-5'), which readsANTHROPIC_API_KEY. - Credentials:
BILLING_USERandBILLING_PASSare passed assensitive_datascoped tohttps://billing.example.com. The task text only mentions<secret>user</secret>and<secret>password</secret>, so the model sees the names, not the values. The skill describes this as redaction, not a sandbox. - Structured output: a Pydantic
InvoiceListofInvoicerecords (invoice_id,date,amount,status) is passed asoutput_model_schema, so the script readsresult.structured_outputinstead of parsing text. - Custom tool:
get_cost_center(vendor)readscost_centers.jsonand does a case-insensitive lookup. The file should be a flat{vendor: cost_center}object next to the script, which I haven't created. The tool returns a "not found" message for unknown vendors. - Output: the invoices go to
invoices.json. - Exit codes:
1if the run status isn'tcompleted, the agent reports failure, or there's no structured output.2if any of the three environment variables is missing.
Some choices and caveats:
- Version: I pinned
browser-use==1.0.7as you asked, though the skill's install example uses1.0.8rc1. I wrote against the skill's 1.0 API, so check it against 1.0.7 when you install. - Pins:
requirements.txtpins only browser-use. I didn't guess at pydantic or other transitive versions; runpip freezeafter installing if you want the full tree locked. - Amount type:
amountis a string, to keep the currency symbol and formatting as shown on the page. - Step limit:
max_steps=50, which you can raise if the Invoices page has many pages. - Browser install: you may need
browser-use installif no Chrome or Chromium is available. - Feedback: the skill asks for a
browser-use feedbackmessage after each run. I didn't send one, since nothing was actually run and it would be an outbound message you didn't ask for.
作った・変えたファイル
3 回目: スキルなし (達成率 100% / 83.3%)
Aは標準的なis_done/is_successfulで完了確認しているが、Bは存在が疑わしいhistory.statusやBrowserの位置引数を使っている
スキルなし100%
最終メッセージ
I wrote /work/fetch_invoices.py and /work/requirements.txt. The script compiles, but I couldn't run it. browser-use isn't installed here, so the API calls come from my memory of the library and aren't checked against 1.0.7.
- Browser: it opens a local headless
Browser, not a cloud one, withallowed_domains=["billing.example.com"]. - Login:
BILLING_USERandBILLING_PASSare passed throughsensitive_data, scoped tohttps://billing.example.com. The task text only contains<secret>billing_user</secret>and<secret>billing_pass</secret>, so the model never sees the real values. I also setuse_vision=Falseso screenshots can't show typed credentials. - Structured output: a Pydantic
Invoicemodel (invoice_id,date,amount,status) and anInvoiceListwrapper are passed asoutput_model_schema. The final result is validated withmodel_validate_json, so there's no free-text parsing. - Custom tool:
lookup_cost_center(vendor)is registered with@tools.action. It readscost_centers.jsonand does a case-insensitive lookup. It assumes the file is a flat object mapping vendor names to cost centers. - Model:
ChatAnthropic(model="claude-sonnet-5-5")withANTHROPIC_API_KEY. - Output: the result goes to
invoices.jsonnext to the script. - Exit codes: it exits 1 if the agent didn't finish, reported failure, returned no result, or returned a result that doesn't match the schema. It also exits non-zero up front if any of the three env vars is missing.
requirements.txt pins browser-use==1.0.7 and pydantic==2.12.3. I couldn't confirm that pydantic version is compatible with browser-use 1.0.7. Run pip install -r requirements.txt and playwright install chromium (or uvx browser-use install) and fix the pin if pip complains.
If any import or kwarg differs in 1.0.7, check these first: Tools (older versions call it Controller), ChatAnthropic being exported from browser_use, and Browser(allowed_domains=...).
作った・変えたファイル
スキルあり83.3%
最終メッセージ
I wrote /work/fetch_invoices.py and /work/requirements.txt. The script compiles, but I haven't run it because browser-use isn't installed here.
-
Browser: it uses
Browser("chromium", headless=True, allowed_domains=["billing.example.com"]), so it's a local headless Chromium and not the cloud browser. -
Login:
BILLING_USERandBILLING_PASSare passed throughsensitive_data, scoped tohttps://billing.example.com. The model only sees the placeholder namesbilling_userandbilling_pass. -
Model: it uses
ChatAnthropic("claude-sonnet-5-5"), which readsANTHROPIC_API_KEY. -
Structured output: an
InvoicePydantic model (invoice_id,date,amount,status) inside anInvoiceListis passed asoutput_model_schema. I also added optionalvendorandcost_centerfields so the custom tool has something to fill. Drop them if you want only the four fields. -
Custom tool:
lookup_cost_center(vendor)readscost_centers.jsonfrom next to the script. It expects a flat{vendor: cost_center}mapping and matches vendor names case-insensitively. I didn't see that file, so adjust the lookup if the format differs. -
Exit codes: it exits 0 and writes
invoices.jsononly ifstatus == "completed",is_successful()is true and there is structured output. It exits 1 if the run didn't complete or the agent reports failure, and 2 if an environment variable is missing. -
Version: I pinned
browser-use==1.0.7as you asked. The skill's install example shows1.0.8rc1, so check that 1.0.7 has the same API.pydantic==2.12.5is my own pin, chosen without checking it against browser-use's dependency constraints. -
Feedback step: the skill asks for a
browser-use feedbackmessage after each run. I skipped it because nothing was run, and it would send content to an external service. Say so if you want me to send one anyway.