# Agentic AI Browser Tools — Testing Prompts & Reference

This guide lists realistic test prompts for each **browser automation tool** in the Agentic AI platform on **macOS** and **Windows**.

Browser tools drive the in-app browser: open pages, inspect content, click and type, manage tabs, wait for load conditions, and handle downloads/uploads. Copy and paste these prompts into the Agentic chat input to verify tool calling, argument extraction, multi-step workflows, and error recovery.

File tools: [agentic-file-tools.md](agentic-file-tools.md). System tools: [agentic-system-tools.md](agentic-system-tools.md).

**Status:** Tools marked **Implemented** are registered via `registerBrowserTools`. Tools marked **Planned** are catalogued for design and prompt coverage but are not registered yet.

---

## Quick Reference: All 50 Browser Tools

| # | Tool ID | Summary | Status |
|---|---|---|---|
| 1 | `browser_open` | Open a URL in the browser | Implemented |
| 2 | `browser_get_text` | Readable text from the open page | Implemented |
| 3 | `browser_click` | Click a button, link, or control | Implemented |
| 4 | `browser_fill` | Fill an input / textarea | Implemented |
| 5 | `browser_screenshot` | Capture page screenshot | Implemented |
| 6 | `browser_click_at` | Click viewport coordinates | Implemented |
| 7 | `browser_press_key` | Keyboard key / shortcut | Implemented |
| 8 | `browser_scroll` | Scroll the page | Implemented |
| 9 | `browser_back` | History back | Implemented |
| 10 | `browser_links` | List hyperlinks on the page | Implemented |
| 11 | `browser_wait_for` | Wait for text / selector / state | Implemented |
| 12 | `browser_tab_manager` | List / switch / open / close tabs | Implemented |
| 13 | `browser_select_option` | Choose a `<select>` option | Implemented |
| 14 | `browser_upload_file` | Upload one local file | Planned |
| 15 | `browser_reload` | Reload the active page | Implemented |
| 16 | `browser_forward` | History forward | Implemented |
| 17 | `browser_get_url` | Current page URL | Implemented |
| 18 | `browser_get_title` | Current page title | Implemented |
| 19 | `browser_get_page_info` | URL, title, document state, metadata | Implemented |
| 20 | `browser_find_text` | Find text on the page | Implemented |
| 21 | `browser_get_element_text` | Text of a specific element | Implemented |
| 22 | `browser_get_element_attribute` | Element attribute (href, src, …) | Implemented |
| 23 | `browser_get_dom` | Structured DOM for inspection | Implemented |
| 24 | `browser_wait_for_navigation` | Wait for navigation to finish | Implemented |
| 25 | `browser_wait_for_load_state` | Wait for load / DOM / networkidle | Implemented |
| 26 | `browser_hover` | Hover to reveal menus / tooltips | Implemented |
| 27 | `browser_double_click` | Double-click an element | Implemented |
| 28 | `browser_right_click` | Right-click / context menu | Implemented |
| 29 | `browser_type` | Type keystrokes into a field | Implemented |
| 30 | `browser_clear` | Clear an input field | Implemented |
| 31 | `browser_check` | Check checkbox / radio | Implemented |
| 32 | `browser_uncheck` | Uncheck checkbox / radio | Implemented |
| 33 | `browser_select_text` | Select text in an element | Implemented |
| 34 | `browser_copy_text` | Copy text to clipboard | Implemented |
| 35 | `browser_download_file` | Download a file via browser | Implemented |
| 36 | `browser_get_downloads` | List downloads and statuses | Implemented |
| 37 | `browser_upload_multiple_files` | Upload multiple files | Implemented |
| 38 | `browser_wait_for_download` | Wait for download finish / fail | Implemented |
| 39 | `browser_get_active_tab` | Active tab info | Implemented |
| 40 | `browser_close_tab` | Close a tab | Implemented |
| 41 | `browser_duplicate_tab` | Duplicate a tab | Implemented |
| 42 | `browser_navigate_history` | Jump N steps in history | Implemented |
| 43 | `browser_save_page` | Save page as html / pdf / text / png | Implemented |
| 44 | `browser_wait_for_element` | Wait for element state | Implemented |
| 45 | `browser_get_cookies` | Read cookies for the current site | Implemented |
| 46 | `browser_clear_cookies` | Clear cookies for one open site | Implemented |
| 47 | `browser_get_storage` | Read localStorage or sessionStorage | Implemented |
| 48 | `browser_set_storage` | Set one storage entry on the current page | Implemented |
| 49 | `browser_get_console_logs` | Console messages and errors from this session | Implemented |
| 50 | `browser_get_network_errors` | Failed network requests and error details | Implemented |

---

## Test Prompts by Tool

---

### 1. `browser_open`

**Description:** Opens an HTTP or HTTPS URL in the in-app browser so later tools can inspect or interact with that page. Use this at the start of a browsing task or when navigating to a new site. Returns page URL, title, and HTTP status. Prefer this over guessing that a page is already loaded.

* **Direct**:
  * "Open https://en.wikipedia.org in the browser."
  * "Go to https://news.ycombinator.com."
  * "Navigate to google.com."
* **Casual / Conversational**:
  * "open up wikipedia for me"
  * "can you launch the browser and visit github.com?"
  * "take me to reddit.com"
* **Fuzzy Logic & Typos (Real User)**:
  * "opn wikipeida.org"
  * "brwser open https://duckduckgo.com"
  * "go to ww.google.com"
* **Vague / Symptom-Based**:
  * "I need to look something up on Wikipedia — open it."
  * "Pull up Hacker News so I can skim the front page."

---

### 2. `browser_get_text`

**Description:** Extracts all readable visible text from the currently open webpage into the agent context. Returns URL, title, extracted text, and whether content was truncated. Use for summarization, Q&A about the article, or locating phrases when you do not yet know a selector. Prefer `browser_get_element_text` when only one region matters, and `browser_find_text` when hunting a specific string.

* **Direct**:
  * "Extract all readable text from this webpage."
  * "Read the text on the open page and summarize it."
  * "What text is displayed on this site?"
* **Casual / Conversational**:
  * "what does this article say?"
  * "read me the text on the page"
  * "copy all the text from this website into chat"
* **Fuzzy Logic & Typos (Real User)**:
  * "get txt from page"
  * "reed the webbpage text"
* **Vague / Symptom-Based**:
  * "I don't want to scroll — tell me what this page is about."

---

### 3. `browser_click`

**Description:** Clicks a unique clickable control on the open page, typically matched by visible text (button, link, menu item). Returns the clicked label, resulting URL, and page title. Use after the target is visible; pair with `browser_wait_for` / `browser_wait_for_element` when the control appears asynchronously. Prefer `browser_click_at` only when there is no reliable text or selector.

* **Direct**:
  * "Click the 'Log in' button."
  * "Click the link with text 'Read more'."
  * "Click Sign up on this page."
* **Casual / Conversational**:
  * "press the sign up button"
  * "click the first search result"
  * "hit the search icon"
* **Fuzzy Logic & Typos (Real User)**:
  * "clik Log in"
  * "presss Read more link"
* **Vague / Symptom-Based**:
  * "I need to get into my account — use the login button on this page."

---

### 4. `browser_fill`

**Description:** Clears and sets the value of a uniquely labelled input or textarea (search box, login field, message box). Faster and more reliable than character-by-character typing for most forms. Returns the filled label, URL, and title. Prefer `browser_type` when the site needs real keystroke events; use `browser_clear` first only when you must empty without writing new text.

* **Direct**:
  * "Fill the search input with 'Flutter cross platform'."
  * "Type 'john@example.com' into the email field."
  * "Fill the message box with 'Hello world'."
* **Casual / Conversational**:
  * "enter my email in the email box"
  * "fill in the search bar with latest tech news"
* **Fuzzy Logic & Typos (Real User)**:
  * "fil search with fluttr news"
  * "put jon@exmaple.com in email"
* **Vague / Symptom-Based**:
  * "I need to search for Flutter news on this site — put that in the box."

---

### 5. `browser_screenshot`

**Description:** Captures a visual screenshot of the currently open browser page (viewport-sized, typically 1280×720). Returns dimensions, URL, title, and image data for the agent/UI. Use when the user wants a snapshot, visual proof, or when layout matters more than raw text. Pair with `browser_save_page` when a local file (html/pdf/png) is required instead of an in-session capture.

* **Direct**:
  * "Take a screenshot of the webpage."
  * "Capture a screenshot of the current browser page."
* **Casual / Conversational**:
  * "snap a photo of this site"
  * "screenshot the current screen"
* **Fuzzy Logic & Typos (Real User)**:
  * "screanshot this page"
  * "capure browser screen"
* **Vague / Symptom-Based**:
  * "I want to show someone how this page looks right now."

---

### 6. `browser_click_at`

**Description:** Clicks exact X/Y pixel coordinates inside the browser viewport when no stable text label or selector exists (canvas, custom widgets, map pins). Coordinates must stay within the viewport bounds (typically 0≤x≤1279, 0≤y≤719). Prefer `browser_click` whenever a visible label is available—coordinate clicks are brittle across layouts.

* **Direct**:
  * "Click at coordinates x: 350, y: 420."
  * "Click at position 100, 250 in the browser."
* **Casual / Conversational**:
  * "click near the top left at 50, 80"
  * "click the center of the screen at 640, 360"
* **Fuzzy Logic & Typos (Real User)**:
  * "clik at x350 y420"
  * "click coords 100,250"
* **Vague / Symptom-Based**:
  * "There's no button text I can name — click around that blank spot in the middle."

---

### 7. `browser_press_key`

**Description:** Dispatches a keyboard key or shortcut into the open browser page (Enter, Tab, Escape, ArrowDown, Control+L, and similar). Use after focusing a field (`browser_fill` / `browser_type` / click) to submit forms, dismiss modals, or move focus. Returns after the key event is applied.

* **Direct**:
  * "Press the Enter key."
  * "Press Escape to close the modal."
  * "Hit Tab to move to the next field."
  * "Press ArrowDown three times."
* **Casual / Conversational**:
  * "press enter"
  * "hit escape key"
  * "press backspace"
* **Fuzzy Logic & Typos (Real User)**:
  * "pres Entr"
  * "hit escpe"
* **Vague / Symptom-Based**:
  * "The search is filled — submit it like I hit Enter."

---

### 8. `browser_scroll`

**Description:** Scrolls the webpage to reveal content below or above the fold. Direction is typically `up` or `down` (about one viewport). Use before reading/screenshotting content that is not yet visible, or when the user asks to go to the footer/top. Combine with `browser_wait_for` if infinite scroll loads more items after scrolling.

* **Direct**:
  * "Scroll down the page."
  * "Scroll to the bottom of the page."
  * "Scroll up."
* **Casual / Conversational**:
  * "scroll down a bit"
  * "take me to the footer"
  * "scroll back up to the top"
* **Fuzzy Logic & Typos (Real User)**:
  * "scrol down"
  * "go to botom of page"
* **Vague / Symptom-Based**:
  * "I can't see the rest of the article — keep going down."

---

### 9. `browser_back`

**Description:** Navigates to the previous entry in the browser session history (Back button). Returns resulting URL, title, and status. Fails or no-ops usefully when there is no prior history. Prefer `browser_navigate_history` with a negative delta when jumping more than one step.

* **Direct**:
  * "Go back in browser history."
  * "Click the browser Back button."
* **Casual / Conversational**:
  * "go back to the previous page"
  * "take me back"
* **Fuzzy Logic & Typos (Real User)**:
  * "go bak"
  * "browser bakc"
* **Vague / Symptom-Based**:
  * "Wrong page — undo the last navigation."

---

### 10. `browser_links`

**Description:** Collects hyperlinks from the current webpage (capped, typically at most 40 HTTP/HTTPS links) with visible text and target URLs. Use for site maps, finding a download or docs link, or choosing the next navigation target. Prefer `browser_get_element_attribute` when you already know the exact anchor selector.

* **Direct**:
  * "List all links on this page."
  * "Give me the first 20 links with their URLs and text."
  * "Extract navigation links from this site."
* **Casual / Conversational**:
  * "what links are on this website?"
  * "find all navigation links"
* **Fuzzy Logic & Typos (Real User)**:
  * "lst all links"
  * "show hyprlinks on page"
* **Vague / Symptom-Based**:
  * "Where can I go from here? Show me the outbound links."

---

### 11. `browser_wait_for`

**Description:** Pauses automation until a condition is met on the active page: visible text, a CSS selector, or a state such as `visible`, `attached`, `hidden`, or `networkidle`. Timeout is bounded (for example default ~10s, max ~30s). Use between open/click/fill and the next read when the UI is asynchronous. Prefer `browser_wait_for_element` for explicit element lifecycle states, and `browser_wait_for_navigation` / `browser_wait_for_load_state` for navigation/load phases.

* **Direct**:
  * "Wait for the text 'Order Confirmed' to appear on the page."
  * "Wait for selector `#dashboard` with a 15 second timeout."
  * "Wait until network is idle."
* **Casual / Conversational**:
  * "wait until the page shows Success"
  * "wait for the results to load"
* **Fuzzy Logic & Typos (Real User)**:
  * "wiat for Order Confirmed"
  * "wait til #dashbord shows"
* **Vague / Symptom-Based**:
  * "Don't continue until the confirmation message shows up."

---

### 12. `browser_tab_manager`

**Description:** Multi-action tab controller: list tabs, get active tab, switch tab, open a new tab (optional URL), duplicate, or close. Action names drive behavior (`list_tabs`, `get_active_tab`, `switch_tab`, `new_tab`, `duplicate_tab`, `close_tab`). Use when the workflow spans multiple sites or needs a fresh tab without losing the current one. Dedicated tools (`browser_get_active_tab`, `browser_close_tab`, `browser_duplicate_tab`) cover single actions with simpler prompts.

* **Direct**:
  * "Open a new tab with https://flutter.dev."
  * "Switch to tab index 1."
  * "List all open browser tabs."
* **Casual / Conversational**:
  * "open another tab"
  * "switch to my first tab"
  * "show me all tabs currently open"
* **Fuzzy Logic & Typos (Real User)**:
  * "new tab fluttr.dev"
  * "swith to tab 1"
* **Vague / Symptom-Based**:
  * "Keep this page, but open Flutter docs in another tab."

---

### 13. `browser_select_option`

**Description:** Selects an option inside a `<select>` dropdown by visible label, value attribute, or related selector. Use for country/state/sort filters and form wizards. Prefer `browser_click` only for custom non-`<select>` menus. Confirm the control is visible (hover/open) when the site hides options until interaction.

* **Direct**:
  * "Select 'California' from the state dropdown."
  * "Choose option with value 'US' in the country select."
  * "Select 'Highest rated' in the sort dropdown."
* **Casual / Conversational**:
  * "pick Highest rated in the sort dropdown"
  * "choose United States from the country list"
* **Fuzzy Logic & Typos (Real User)**:
  * "selct Californa in state"
  * "choose US in counrty"
* **Vague / Symptom-Based**:
  * "Set the shipping state to California on this form."

---

### 14. `browser_upload_file` *(Planned)*

**Description:** Uploads a **single** local file through a webpage file input (`input[type=file]` or equivalent control). Path to the local file and optional selector/label for the control are required. Distinct from `browser_upload_multiple_files`, which attaches a list of paths in one call. Prefer the multi tool when several files must go together; use this when the UX is one-file-only. Not registered yet—prompts here are for design and future coverage.

* **Direct**:
  * "Upload `/Users/me/Documents/resume.pdf` into the file input on this page."
  * "Attach photo.png to the upload field."
* **Casual / Conversational**:
  * "attach my resume to the uploader"
  * "upload this one PDF"
* **Fuzzy Logic & Typos (Real User)**:
  * "uplod resume.pdf"
  * "atch file to file input"
* **Vague / Symptom-Based**:
  * "The form wants one document — put my resume in there."

---

### 15. `browser_reload`

**Description:** Reloads the currently active webpage (or a tab by index). Optional hard reload bypasses cache (`ignore_cache: true`). Use after server-side changes, stuck SPAs, or when the user asks to refresh. Returns after reload settles; pair with `browser_wait_for_load_state` if you must assert a specific load phase.

* **Direct**:
  * "Reload the webpage."
  * "Refresh the page with a hard reload (ignore cache)."
* **Casual / Conversational**:
  * "refresh the tab"
  * "hard reload the website"
* **Fuzzy Logic & Typos (Real User)**:
  * "relod page"
  * "refrsh the tab"
* **Vague / Symptom-Based**:
  * "This page looks stale — refresh it."

---

### 16. `browser_forward`

**Description:** Navigates forward in browser session history after a prior `browser_back` (or equivalent). Returns resulting URL, title, and status. No-ops when there is no forward entry. Use `browser_navigate_history` with a positive delta for multi-step forward jumps.

* **Direct**:
  * "Go forward in browser history."
  * "Click the browser Forward button."
* **Casual / Conversational**:
  * "go forward one page"
* **Fuzzy Logic & Typos (Real User)**:
  * "go forwad"
  * "browser forwrd"
* **Vague / Symptom-Based**:
  * "I went back too far — go forward again."

---

### 17. `browser_get_url`

**Description:** Returns the current page URL of the active tab. Lightweight check for redirects, deep links, or confirming navigation succeeded. Prefer `browser_get_page_info` when you also need title and document state in one call.

* **Direct**:
  * "What is the current browser URL?"
  * "Get current URL."
* **Casual / Conversational**:
  * "what link am I currently looking at?"
  * "what is the web address of this tab?"
* **Fuzzy Logic & Typos (Real User)**:
  * "curent url pls"
  * "wat is the adress bar"
* **Vague / Symptom-Based**:
  * "Did we land on the right page after login?"

---

### 18. `browser_get_title`

**Description:** Retrieves the document `<title>` of the current webpage. Useful for tab identification, search-result confirmation, or lightweight page identity without pulling full text. Combine with `browser_get_url` or use `browser_get_page_info` for a fuller snapshot.

* **Direct**:
  * "What is the title of the current webpage?"
  * "Get page title."
* **Casual / Conversational**:
  * "what tab am I on?"
  * "read the webpage title"
* **Fuzzy Logic & Typos (Real User)**:
  * "page titel"
  * "wat is tab title"
* **Vague / Symptom-Based**:
  * "Tell me the name of this page without reading the whole article."

---

### 19. `browser_get_page_info`

**Description:** Aggregates page metadata for the open document: current URL, title, document/ready state, and related info (viewport/meta where supported). One-shot orientation tool after open or navigation. Prefer this over calling `browser_get_url` + `browser_get_title` separately when the agent needs a full status check.

* **Direct**:
  * "Get page info for the current webpage."
  * "What is the viewport size, title, and URL of the current page?"
  * "Show ready state and URL of this site."
* **Casual / Conversational**:
  * "tell me about this webpage"
  * "what is the resolution and title of the open tab?"
* **Fuzzy Logic & Typos (Real User)**:
  * "page info pls"
  * "url titel and state"
* **Vague / Symptom-Based**:
  * "Give me a quick status of whatever tab is open."

---

### 20. `browser_find_text`

**Description:** Searches the current webpage for a specified string and returns match count, snippets, tag names, and coordinates when available. Use to verify wording (“does refund appear?”) or locate UI copy before clicking. Distinct from `browser_get_text` (full dump) and `browser_get_element_text` (known selector).

* **Direct**:
  * "Find the text 'Privacy Policy' on this page."
  * "Search for 'pricing' on the current webpage."
  * "Does this page mention 'refund' anywhere?"
* **Casual / Conversational**:
  * "look for any mention of contact email on this site"
  * "find where it talks about subscription plans"
* **Fuzzy Logic & Typos (Real User)**:
  * "find Privcy Policy"
  * "serch page for refund"
* **Vague / Symptom-Based**:
  * "I think they mention a refund policy somewhere on this page."

---

### 21. `browser_get_element_text`

**Description:** Retrieves visible text from one webpage element identified by CSS selector (or equivalent locator). Use for headings, prices, status banners, and other known regions without dumping the whole page. Prefer `browser_get_text` when the structure is unknown.

* **Direct**:
  * "Get the text inside `h1`."
  * "What does the element `#firstHeading` say?"
  * "Extract text from `.article-title`."
* **Casual / Conversational**:
  * "what is the main heading on this page?"
  * "read the caption under the hero banner"
* **Fuzzy Logic & Typos (Real User)**:
  * "get text of h1"
  * "reed #firstHeading"
* **Vague / Symptom-Based**:
  * "Just tell me the big title at the top."

---

### 22. `browser_get_element_attribute`

**Description:** Reads an HTML attribute from a specified element—commonly `href`, `src`, `value`, `class`, `aria-label`, or `placeholder`. Use to discover where a link goes, image sources, or form field values without clicking. Pair with `browser_links` for bulk hrefs, or this tool for one precise node.

* **Direct**:
  * "Get the `href` attribute of the logo link."
  * "What is the `src` of the first image on the page?"
  * "Check the `placeholder` of the search input."
* **Casual / Conversational**:
  * "where does the login button link to?"
  * "what is the image source for the hero picture?"
* **Fuzzy Logic & Typos (Real User)**:
  * "get href of logo link"
  * "src of first img"
* **Vague / Symptom-Based**:
  * "I need the real URL behind that logo, not just the label."

---

### 23. `browser_get_dom`

**Description:** Returns a structured representation of the webpage DOM (full tree or scoped to a selector) for inspection. Heavier than text tools—use when debugging selectors, understanding layout containers, or when text alone is insufficient. Prefer `browser_get_text` / `browser_get_element_text` for normal reading tasks.

* **Direct**:
  * "Get the DOM of the current page."
  * "Show me the HTML inside `<main>` on this page."
  * "Inspect the DOM of `#content`."
* **Casual / Conversational**:
  * "give me the raw html of the article container"
  * "view page source structure for this site"
* **Fuzzy Logic & Typos (Real User)**:
  * "get dom of #contnet"
  * "show html tree of main"
* **Vague / Symptom-Based**:
  * "I need to figure out the structure so we can target the right node."

---

### 24. `browser_wait_for_navigation`

**Description:** Waits until the browser finishes navigating to another page (after a click, form submit, or redirect). Returns resulting URL, title, HTTP status, and elapsed time. Use immediately after actions that leave the current document. Distinct from `browser_wait_for_load_state` (lifecycle phase on the current/new document) and `browser_wait_for` (content conditions).

* **Direct**:
  * "Click Submit and wait for navigation to finish."
  * "Wait for navigation to complete after I open the next page."
* **Casual / Conversational**:
  * "wait for the next page to load"
  * "wait until it redirects me"
* **Fuzzy Logic & Typos (Real User)**:
  * "wiat for navigaton"
  * "wait til redirect done"
* **Vague / Symptom-Based**:
  * "After submit it should jump pages — don't continue until that finishes."

---

### 25. `browser_wait_for_load_state`

**Description:** Waits for a specified document load state before continuing: `load`, `domcontentloaded`, or `networkidle`. Returns settled state, URL, title, and elapsed time. Use after `browser_open` / reload when scripts or XHR must settle before scraping. Prefer `browser_wait_for_navigation` when the URL itself is changing, and `browser_wait_for` when waiting on visible copy.

* **Direct**:
  * "Wait for load state 'domcontentloaded'."
  * "Wait for network to become idle."
  * "Wait for the page load event to complete."
* **Casual / Conversational**:
  * "wait until all network requests finish loading"
  * "wait for the DOM to be ready"
* **Fuzzy Logic & Typos (Real User)**:
  * "wiat for networkidle"
  * "wait domcontentloaded"
* **Vague / Symptom-Based**:
  * "Don't scrape yet — wait until the page is fully settled."

---

### 26. `browser_hover`

**Description:** Moves the pointer over a webpage element to reveal hover menus, mega-navs, or tooltips that only appear on mouseover. Required before clicking items that are not in the DOM until hover. Prefer a normal `browser_click` when the control is already visible.

* **Direct**:
  * "Hover over the 'Products' navigation dropdown."
  * "Hover over the help icon to reveal the tooltip."
* **Casual / Conversational**:
  * "hover on the menu bar to open the submenu"
  * "put the cursor over the pricing card"
* **Fuzzy Logic & Typos (Real User)**:
  * "hovr Products menu"
  * "mouse over help icn"
* **Vague / Symptom-Based**:
  * "The submenu only shows when I mouse over Products — do that."

---

### 27. `browser_double_click`

**Description:** Performs a double-click on a specified webpage element (zoomable images, desktop-style list items, editors that select words on double-click). Use when a single `browser_click` is not enough for the site’s interaction model.

* **Direct**:
  * "Double click the zoomable image."
  * "Double click the item card to open it."
* **Casual / Conversational**:
  * "double tap the photo to expand it"
  * "double click the word in the editor"
* **Fuzzy Logic & Typos (Real User)**:
  * "doble click the image"
  * "dblclick item card"
* **Vague / Symptom-Based**:
  * "Single click does nothing — try double-clicking that photo."

---

### 28. `browser_right_click`

**Description:** Right-clicks a webpage element to open the browser or site context menu (save image, open in new tab, custom app menus). Follow with clicks on menu items when the site exposes them as DOM nodes. Not a substitute for `browser_click`.

* **Direct**:
  * "Right click on the avatar image."
  * "Open the context menu on the file item."
* **Casual / Conversational**:
  * "right click the link to see options"
  * "context click on the folder icon"
* **Fuzzy Logic & Typos (Real User)**:
  * "rite click avatar"
  * "context clik file item"
* **Vague / Symptom-Based**:
  * "I need the context menu on that image."

---

### 29. `browser_type`

**Description:** Types text with sequential keystrokes into a focused field (optional selector to focus first, delay between keys, optional clear-before-type). Prefer when sites listen for `keydown`/`input` events that `browser_fill` might skip. Prefer `browser_fill` for simple set-value forms.

* **Direct**:
  * "Type 'Best barbershop near me' into the active field."
  * "Type 'query text' into the search field with a short key delay."
* **Casual / Conversational**:
  * "type in my username"
  * "write 'test query' into the search box"
* **Fuzzy Logic & Typos (Real User)**:
  * "typ test query in serch"
  * "keybord type username"
* **Vague / Symptom-Based**:
  * "Fill doesn't trigger search — type it like a real keyboard."

---

### 30. `browser_clear`

**Description:** Clears the contents of a specified input, search box, or textarea by selector or accessible label without submitting new text. Use before a fresh query or when the user asks to empty a field. Pair with `browser_fill` / `browser_type` afterward when replacing content.

* **Direct**:
  * "Clear the text in the search input."
  * "Erase the content of the message box."
* **Casual / Conversational**:
  * "clear out the search bar"
  * "empty the text box"
* **Fuzzy Logic & Typos (Real User)**:
  * "cler search bar"
  * "empty teh textbox"
* **Vague / Symptom-Based**:
  * "Wipe whatever is in the search field so I can start over."

---

### 31. `browser_check`

**Description:** Checks a checkbox or selects a radio button identified by selector, label, or visible text (terms agreement, shipping options, remember-me). Idempotent intent: leave the control checked. Use `browser_uncheck` to turn checkboxes off.

* **Direct**:
  * "Check the 'I agree to Terms & Conditions' checkbox."
  * "Select the 'Express shipping' radio button."
* **Casual / Conversational**:
  * "tick the remember me box"
  * "check the privacy policy checkbox"
* **Fuzzy Logic & Typos (Real User)**:
  * "chek I agree box"
  * "tick remembr me"
* **Vague / Symptom-Based**:
  * "Accept the terms so we can continue."

---

### 32. `browser_uncheck`

**Description:** Unchecks a previously checked checkbox (or deselects a radio where the UI allows). Use for opting out of newsletters, notifications, or optional add-ons. Prefer `browser_check` when turning options on.

* **Direct**:
  * "Uncheck the 'Subscribe to newsletter' checkbox."
  * "Uncheck email notifications."
* **Casual / Conversational**:
  * "untick the promotional emails option"
  * "deselect the checkbox"
* **Fuzzy Logic & Typos (Real User)**:
  * "unchek newsletter"
  * "untik promo emails"
* **Vague / Symptom-Based**:
  * "I don't want emails — turn that option off."

---

### 33. `browser_select_text`

**Description:** Selects a range of text within a webpage element by CSS selector, substring match, or start/end character offsets. Often a prelude to `browser_copy_text` or user-visible highlighting. Distinct from `browser_find_text` (search without selection) and `browser_get_element_text` (read without selecting).

* **Direct**:
  * "Select the text in the summary paragraph."
  * "Select text matching 'Welcome to our platform'."
* **Casual / Conversational**:
  * "highlight the first paragraph"
  * "select the code snippet"
* **Fuzzy Logic & Typos (Real User)**:
  * "selct first paragaph"
  * "highlight Welcome to our platfom"
* **Vague / Symptom-Based**:
  * "Highlight that welcome sentence so I can copy it next."

---

### 34. `browser_copy_text`

**Description:** Copies selected webpage text (or text from a targeted element) to the system clipboard when the platform supports and authorizes clipboard writes. Use after `browser_select_text` or with an element that holds the desired string (coupon codes, API keys). Respect privacy—avoid copying secrets into shared logs.

* **Direct**:
  * "Copy the text from the code block to the clipboard."
  * "Copy the current selection."
* **Casual / Conversational**:
  * "copy the coupon code from the banner"
  * "copy the API key on the screen"
* **Fuzzy Logic & Typos (Real User)**:
  * "cpy coupon code"
  * "copy to clipbord"
* **Vague / Symptom-Based**:
  * "Put that code on my clipboard so I can paste it elsewhere."

---

### 35. `browser_download_file`

**Description:** Downloads a file through the browser either from a direct URL or by clicking a download link/button (selector). Reports the resulting local path when available. Pair with `browser_wait_for_download` for slow transfers and `browser_get_downloads` to inspect history. Prefer file tools afterward if you need to read the saved file.

* **Direct**:
  * "Download the file from https://example.com/report.pdf."
  * "Click the download button and save the file."
* **Casual / Conversational**:
  * "download the PDF from this link"
  * "hit the download link and save the file"
* **Fuzzy Logic & Typos (Real User)**:
  * "downlod report.pdf"
  * "clik download btn and save"
* **Vague / Symptom-Based**:
  * "Grab that PDF onto my machine."

---

### 36. `browser_get_downloads`

**Description:** Lists recent browser downloads with statuses, paths, sizes, and timestamps where supported. Optional limit (default around 20). Use after `browser_download_file` to confirm success or to find where a file landed. Read-only relative to the download manager.

* **Direct**:
  * "List all browser downloads."
  * "Show my recent browser downloads and their file paths."
* **Casual / Conversational**:
  * "what files have been downloaded in the browser?"
  * "show download history"
* **Fuzzy Logic & Typos (Real User)**:
  * "lst downlods"
  * "show dowload history"
* **Vague / Symptom-Based**:
  * "Where did that file go after I downloaded it?"

---

### 37. `browser_upload_multiple_files`

**Description:** Uploads multiple local files in one call through a supported multi-file input. Accepts a list of absolute paths (`paths` / `files`) and an optional CSS selector for the file control. Use for galleries, batch attachments, or multi-doc forms. Prefer planned `browser_upload_file` for single-file-only UIs once implemented.

* **Direct**:
  * "Upload the files photo1.png and photo2.png into the file input."
  * "Attach doc.pdf and notes.txt to the upload field."
* **Casual / Conversational**:
  * "upload these two images to the file input"
  * "attach my resume and cover letter together"
* **Fuzzy Logic & Typos (Real User)**:
  * "uplod photo1 and photo2"
  * "atch multiple files"
* **Vague / Symptom-Based**:
  * "The form takes several files — put both images in."

---

### 38. `browser_wait_for_download`

**Description:** Waits until a browser download finishes or fails. Optional filename substring and destination directory narrow what to watch; timeout bounds the wait. Use right after triggering a download so the agent does not read a partial file. Follow with `browser_get_downloads` for the final path.

* **Direct**:
  * "Wait for the download of dummy.pdf to complete."
  * "Wait for the browser download to finish with a 30 second timeout."
* **Casual / Conversational**:
  * "wait until the download is done and tell me where it saved"
  * "hold on until the file finishes downloading"
* **Fuzzy Logic & Typos (Real User)**:
  * "wiat for downlod done"
  * "wait til dummy.pdf finish"
* **Vague / Symptom-Based**:
  * "Don't continue until that file is fully saved."

---

### 39. `browser_get_active_tab`

**Description:** Returns information about the currently focused browser tab: index, title, URL, and total open tabs. Lightweight alternative to a full `browser_tab_manager` list when you only need “where am I?”. Use before switch/close decisions.

* **Direct**:
  * "What is the active tab?"
  * "Get active tab info."
* **Casual / Conversational**:
  * "which tab is currently focused?"
* **Fuzzy Logic & Typos (Real User)**:
  * "activ tab info"
  * "wich tab am i on"
* **Vague / Symptom-Based**:
  * "Remind me which tab I'm looking at."

---

### 40. `browser_close_tab`

**Description:** Closes a browser tab by 0-based index, or the active tab when index is omitted / `-1`. Use to tidy workflows after opening temporary research tabs. Closing the last tab may leave an empty session depending on browser service behavior—confirm with `browser_tab_manager` / `browser_get_active_tab` afterward.

* **Direct**:
  * "Close tab index 1."
  * "Close the current tab."
* **Casual / Conversational**:
  * "close this tab"
  * "close the second tab"
* **Fuzzy Logic & Typos (Real User)**:
  * "clos tab 1"
  * "close curent tab"
* **Vague / Symptom-Based**:
  * "I'm done with that extra tab — shut it."

---

### 41. `browser_duplicate_tab`

**Description:** Clones an existing tab (active tab when index omitted / `-1`) into a new tab with the same URL/session context. Useful for comparing side-by-side flows without re-navigating. Subject to a maximum tab count (for example 8). Prefer `browser_tab_manager` `new_tab` when opening a different URL.

* **Direct**:
  * "Duplicate the current tab."
  * "Clone tab 0."
* **Casual / Conversational**:
  * "duplicate this page in a new tab"
* **Fuzzy Logic & Typos (Real User)**:
  * "duplcate tab"
  * "clone curent tab"
* **Vague / Symptom-Based**:
  * "Keep this page open twice so I can compare."

---

### 42. `browser_navigate_history`

**Description:** Jumps a relative number of steps in session history via `delta` (negative to go back, e.g. `-2`; positive to go forward, e.g. `+1`). Generalization of `browser_back` / `browser_forward` for multi-step jumps. Returns resulting URL/title/status when navigation succeeds.

* **Direct**:
  * "Navigate -2 steps in browser history."
  * "Go back 3 pages."
  * "Navigate forward +1 in history."
* **Casual / Conversational**:
  * "jump back two pages"
* **Fuzzy Logic & Typos (Real User)**:
  * "go bak 2 pages"
  * "history delta -2"
* **Vague / Symptom-Based**:
  * "Skip back past the last couple of pages I opened."

---

### 43. `browser_save_page`

**Description:** Saves the current webpage (or its content) to a local file. Supported formats include `html` (default), `pdf`, `text`, and `png`. Optional path/filename chooses the destination. Use for offline archives and shareable snapshots. Distinct from `browser_screenshot` (in-session image) and `browser_download_file` (remote file transfer).

* **Direct**:
  * "Save the page as facebook.html."
  * "Save the webpage as a PDF named invoice.pdf."
  * "Save the page content as summary.txt."
* **Casual / Conversational**:
  * "download this webpage as an HTML file"
  * "export this page to PDF"
* **Fuzzy Logic & Typos (Real User)**:
  * "save page as html"
  * "export to pdf pls"
* **Vague / Symptom-Based**:
  * "I need an offline copy of this page."

---

### 44. `browser_wait_for_element`

**Description:** Waits until a specific element reaches a lifecycle state: `visible` (default), `hidden`, `attached`, or `detached`. Selector identifies the node; timeout bounds the wait. More precise than generic `browser_wait_for` when targeting one control (spinner gone, modal open, button attached). Use before click/fill on dynamically injected UI.

* **Direct**:
  * "Wait for the modal `#popup-dialog` to become visible."
  * "Wait for `.loading-spinner` to disappear (hidden)."
  * "Wait until `button.checkout` is attached to the DOM."
* **Casual / Conversational**:
  * "wait until the spinner goes away"
  * "wait for the submit button to appear"
* **Fuzzy Logic & Typos (Real User)**:
  * "wiat for spinner gone"
  * "wait til checkout btn appears"
* **Vague / Symptom-Based**:
  * "Don't click yet — wait until the loading spinner is gone."

---

### 45. `browser_get_cookies`

**Description:** Reads cookies for the current site in this browser session. `domain` empty uses the current page. `name` empty returns every cookie for that site. A domain is accepted only when that site, or a page under it, is already open. Cookies for other sites are not returned. The user confirms first.

* **Direct**:
  * "What cookies does this page have?"
  * "Read the session cookie on the current site."
* **Casual / Conversational**:
  * "can you check the cookies for this site?"
* **Vague / Symptom-Based**:
  * "See if this site saved a login cookie."

---

### 46. `browser_clear_cookies`

**Description:** Clears cookies for one site already open in this browser session. `domain` empty uses the current page. `name` empty clears every cookie for that site and leaves other sites unchanged. The user confirms first.

* **Direct**:
  * "Clear the cookies for this site."
  * "Remove the cookie named sessionid on the current page."
* **Casual / Conversational**:
  * "wipe the cookies for this website"
* **Vague / Symptom-Based**:
  * "Log this site out by clearing its cookies."

---

### 47. `browser_get_storage`

**Description:** Reads `localStorage` (`storage: "local"`) or `sessionStorage` (`storage: "session"`) for the current page only. `key` empty returns up to 50 entries. The user confirms first.

* **Direct**:
  * "Read localStorage on this page."
  * "What is the sessionStorage key cart?"
* **Casual / Conversational**:
  * "check what this page saved in local storage"
* **Vague / Symptom-Based**:
  * "See if the page remembered my theme."

---

### 48. `browser_set_storage`

**Description:** Sets one `localStorage` or `sessionStorage` entry on the current page. `storage` is `local` or `session`. The user confirms first.

* **Direct**:
  * "Set localStorage theme to dark on this page."
  * "Put guest in the sessionStorage key user."
* **Casual / Conversational**:
  * "save theme=dark in local storage"
* **Vague / Symptom-Based**:
  * "Make this page think dark mode is on."

---

### 49. `browser_get_console_logs`

**Description:** Returns console messages and errors captured in this browser session. `level` empty returns every level (`log`, `info`, `warn`, `error`, `debug`). `limit` 0 means 50, and the maximum is 200.

* **Direct**:
  * "Show the browser console errors."
  * "Get the last 20 console messages."
* **Casual / Conversational**:
  * "anything in the console?"
* **Vague / Symptom-Based**:
  * "The page looks broken — check the console."

---

### 50. `browser_get_network_errors`

**Description:** Returns failed network requests captured in this browser session. That includes HTTP status codes of 400 or higher and requests that did not complete. Each entry has the URL, method, status, error text, and resource type. `url` empty returns every failure. `limit` 0 means 50, and the maximum is 200. Request and response bodies are not included.

* **Direct**:
  * "Show the failed network requests on this page."
  * "Which requests returned an error?"
* **Casual / Conversational**:
  * "anything failing in the network tab?"
* **Vague / Symptom-Based**:
  * "The page is missing data — check which requests failed."

---

## Realistic Multi-Step Workflows

### Flow 1: Search & extract
```
Open google.com, fill the search input with 'Flutter framework news', press Enter, wait for results to appear, and give me the titles of the top 3 results.
```
Tools: `browser_open` → `browser_fill` → `browser_press_key` → `browser_wait_for` → `browser_links` / `browser_get_text`.

### Flow 2: Research & save
```
Open wikipedia.org, search for 'Artificial Intelligence', scroll down, take a screenshot, and save the page as ai_wiki.html.
```
Tools: `browser_open` → `browser_fill` → `browser_press_key` → `browser_scroll` → `browser_screenshot` → `browser_save_page`.

### Flow 3: Form & tabs
```
Open a new tab with https://httpbin.org/forms/post, fill the customer name with 'Alice', check the bacon topping, select medium pizza size, and switch back to tab 0.
```
Tools: `browser_tab_manager` → `browser_fill` → `browser_check` → `browser_select_option` → `browser_tab_manager`.

### Flow 4: Download & verify
```
Download the PDF from https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf, wait for the download to finish, and list my browser downloads.
```
Tools: `browser_download_file` → `browser_wait_for_download` → `browser_get_downloads`.

---

## Notes

* Prefer text/label-based clicks over `browser_click_at` when possible—coordinates break when layout changes.
* After navigation or SPA updates, wait (`browser_wait_for*`) before reading or clicking.
* `browser_upload_file` is **Planned**; use `browser_upload_multiple_files` for uploads today (including a single path in the list).
