# Search And Filter

> Types a query into a site's search input, submits, and optionally applies one or more filter facets (categories, price ranges, attributes). Common on e-commerce, doc-search, and listing sites.

- **Type:** Skill
- **Install:** `agentstack add skill-bettyguo-browser-skills-search-and-filter`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [bettyguo](https://agentstack.voostack.com/s/bettyguo)
- **Installs:** 0
- **Category:** [Search](https://agentstack.voostack.com/c/search)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [bettyguo](https://github.com/bettyguo)
- **Source:** https://github.com/bettyguo/browser-skills/tree/main/skills/search-and-filter

## Install

```sh
agentstack add skill-bettyguo-browser-skills-search-and-filter
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Search and Filter

## When to invoke

User wants to search a site for `vars.query` and optionally apply
filters from `vars.filters` (a dict of facet-name → value).

The matcher fires this skill on any page with a visible search input.

## Recipe

1. wait_for_dom_ready timeout=3s
2. try_each selectors=[
     "input[type='search']",
     "input[name='q']",
     "input[name='query']",
     "[role='search'] input",
     "input[aria-label*='search' i]",
   ] action=fill value="$vars.query" on_success=stop timeout=1500ms
3. press_key key=Enter
4. wait extra=600ms

## Success criteria

- assert results_pane_visible OR url_changed_since=step1

## Filter application

The recipe above is the search part only. Applying filters is a
composition with `click` for facet checkboxes — the agent receives the
list of available filters from `extract_text` and decides which to
toggle.

## When NOT to use

- Sites with custom search-as-you-type that doesn't accept Enter
  submission. Agents fall back to clicking the search button after fill.
- Sites that ToS-prohibit automated search (LinkedIn, etc., per
  benchmarks/sites.yaml).

## Known failures

- **Sites where pressing Enter doesn't submit:** add a follow-on
  `click` against a search button — most sites surface one.
- **Search inputs inside `` elements that submit on a different
  path:** the recipe's `Enter` press may navigate to a stale URL.
  Document per-site if discovered.
- **Search inputs that show typeahead before submission:** the
  typeahead overlays the results. `press_key key=Escape` first if
  it's blocking.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [bettyguo](https://github.com/bettyguo)
- **Source:** [bettyguo/browser-skills](https://github.com/bettyguo/browser-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-bettyguo-browser-skills-search-and-filter
- Seller: https://agentstack.voostack.com/s/bettyguo
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
