feat: improve web search and consolidate browser open

This commit is contained in:
Richard Tang
2026-05-01 14:55:20 -07:00
parent b939a875a7
commit a09eac06f1
21 changed files with 414 additions and 168 deletions
@@ -17,16 +17,15 @@ map_search_gcu = NodeSpec(
You are a browser agent. Your job: Search Google Maps for the provided query and extract business names and website URLs.
## Workflow
1. browser_start
2. browser_open(url="https://www.google.com/maps")
3. use the url query to search for the keyword
3.1 alternatively, use browser_type or browser_click to search for the "query" in memory.'
4. browser_wait(seconds=3)
5. browser_snapshot to find the list of results.
6. For each relevant result, extract:
1. browser_open(url="https://www.google.com/maps") # lazy-creates the context
2. use the url query to search for the keyword
2.1 alternatively, use browser_type or browser_click to search for the "query" in memory.'
3. browser_wait(seconds=3)
4. browser_snapshot to find the list of results.
5. For each relevant result, extract:
- Name of the business
- Website URL (look for the website icon/link)
7. set_output("business_list", [{"name": "...", "website": "..."}, ...])
6. set_output("business_list", [{"name": "...", "website": "..."}, ...])
## Constraints
- Extract at least 5-10 businesses if possible.
@@ -24,13 +24,12 @@ Focus on:
- Hardware/Silicon breakthroughs
## Instructions
1. browser_start
2. For each handle:
a. browser_open(url=f"https://x.com/{handle}")
1. For each handle:
a. browser_open(url=f"https://x.com/{handle}") # lazy-creates the context on first call
b. browser_wait(seconds=5)
c. browser_snapshot
d. Parse relevant tech news text
3. set_output("raw_tweets", consolidated_json)
2. set_output("raw_tweets", consolidated_json)
""",
)