-
Notifications
You must be signed in to change notification settings - Fork 235
Open
Description
I use an ubuntu terminal via WSL on my windows machine and I cannot figure out how to follow along with the tiny agents example on the MCP Clients page because of a captcha issue and a headless environment.
Is there an easy way to force a headed environment? It looks like the playwright mcp defaults to headed environments. I've tried sending the headless parameter as an arg in my agent.json file and that didn't help. I am able to open a google chrome gui from my ubuntu terminal, just not with this tiny agents call.
Relevant output:
(hf-mcp) ddd@G15DDD:~/documents/hf_mcp$ tiny-agents run agent.json
Agent loaded with 21 tools:
• browser_close
• browser_resize
• browser_console_messages
• browser_handle_dialog
• browser_evaluate
• browser_file_upload
• browser_fill_form
• browser_install
• browser_press_key
• browser_type
• browser_navigate
• browser_navigate_back
• browser_network_requests
• browser_take_screenshot
• browser_snapshot
• browser_click
• browser_drag
• browser_hover
• browser_select_option
• browser_tabs
• browser_wait_for
» do a Web Search for HF inference providers on Brave Search and open the first result and then give me the list of the inference providers supported on Hugging Face
To accomplish this, I'll start by navigating to the Brave Search website, performing a search for "HF inference providers," and then opening the first result. After that, I will look for the list of inference providers supported on Hugging Face. Let's begin by navigating to Brave Search.
<Tool chatcmpl-tool-7bd103e45f434eb2a39455cf1b2b8a33>browser_navigate {"url": "https://search.brave.com"}
Tool chatcmpl-tool-7bd103e45f434eb2a39455cf1b2b8a33
### Ran Playwright code
js
await page.goto('https://search.brave.com');
### Page state
- Page URL: https://search.brave.com/
- Page Title: Private Search Engine - Brave Search
- Page Snapshot:
yaml
- generic :
- main :
- button "Quick settings" :
- img
- generic :
- link "Brave Search Brave Search Brave logo" :
- /url: /
- generic :
- generic "Brave Search"
- generic "Brave Search"
- img "Brave logo"
- generic :
- textbox "Search" :
- /placeholder: Ask anything, find anything…
- generic :
- button "Search" :
- img
- generic "Ask" :
- button "Ask" :
- img
- generic :
- img "Brave logo"
- generic :
- generic : Brave Browser
- generic : Enjoying private search? Try the browser that puts you first.
- link "Download" :
- /url: https://brave.com/download/now/?mtm_campaign=search-homepage-cta
- text: Download
- img
- contentinfo :
- generic : © Brave Software
- generic :
- link "Advertise" :
- /url:
https://ads.brave.com/register/search?mtm_source=brave-search&mtm_medium=searchhome&mtm_campaign=brave-search&mtm_conten
t=evergreen
- link "API" :
- /url:
https://brave.com/search/api/?mtm_source=brave-search&mtm_medium=searchhome&mtm_campaign=brave-search&mtm_content=evergr
een
- link "News" :
- /url:
https://brave.com/category/brave-search/?mtm_source=brave-search&mtm_medium=searchhome&mtm_campaign=brave-search&mtm_con
tent=evergreen
- link "FAQ" :
- /url:
https://brave.com/search/#search-faq?mtm_source=brave-search&mtm_medium=searchhome&mtm_campaign=brave-search&mtm_content
=evergreen
- link "Privacy Policy" :
- /url: /help/privacy-policy
- link "Report a security issue" :
- /url: https://hackerone.com/brave
Now that we're on the Brave Search homepage, I'll type "HF inference providers" into the search box and submit the query.
<Tool chatcmpl-tool-47a001c2321c4d69b244e234f0a04e50>browser_type {"element": "Search", "ref": "e20", "text": "HF inference providers", "submit": true}
Tool chatcmpl-tool-47a001c2321c4d69b244e234f0a04e50
### Ran Playwright code
js
await page.getByTestId('searchbox').fill('HF inference providers');
await page.getByTestId('searchbox').press('Enter');
### New console messages
- [ERROR] Failed to load resource: the server responded with a status of 429 () @ https://search.brave...
### Page state
- Page URL: https://search.brave.com/search?q=HF+inference+providers&source=web
- Page Title: Solve the Captcha - Brave Search
- Page Snapshot:
yaml
- main :
- generic :
- heading "Confirm you're not a robot"
- iframe :
- generic : Drag the slider
It seems that we encountered a CAPTCHA. To proceed, we need to solve the CAPTCHA manually. Please confirm whether you are able to see the CAPTCHA and solve it. Once you've solved it, let me know so we can continue with the search. If you need any assistance with this, please let me know.
Alternatively, if you are using a headless browser and cannot see the CAPTCHA, we may need to take a different approach to avoid it. What would you like to do?
» You are running a headless browser. Can you open the gui for me?
Certainly! I can open the GUI for you so you can see and solve the CAPTCHA. However, the current environment does not support opening a GUI directly. Instead, I can take a screenshot of the CAPTCHA and provide it to you. Once you solve the CAPTCHA, you can provide the solution, and I will input it to proceed.
Let's take a screenshot of the current page so you can see the CAPTCHA.
<Tool chatcmpl-tool-97f0170e8c4d4b3f8531fc12c9bc26b7>browser_take_screenshot {"type": "png", "filename": "captcha.png", "fullPage": true}
Tool chatcmpl-tool-97f0170e8c4d4b3f8531fc12c9bc26b7
### Result
Took the full page screenshot and saved it as /tmp/playwright-mcp-output/1760109091891/captcha.png
### Ran Playwright code
js
// Screenshot full page and save it as /tmp/playwright-mcp-output/1760109091891/captcha.png
await page.screenshot({
fullPage: true,
path: '/tmp/playwright-mcp-output/1760109091891/captcha.png',
scale: 'css',
type: 'png'
});
I have taken a full-page screenshot of the CAPTCHA. Here it is:

Please solve the CAPTCHA and provide the solution so I can input it and proceed with the search. If the CAPTCHA is a different type (e.g., a slider or image selection), please let me know the specific steps to solve it.
»
Metadata
Metadata
Assignees
Labels
No labels