Skip to main content
Glama
camoufox-reverse-mcp

camoufox-reverse-mcp

wait_for

Pauses automation until a CSS selector appears, a network request matching a URL pattern fires, or navigation completes, with request mode confirming the request actually triggered.

Instructions

Wait for an element, a captured network request, or a navigation.

Args: selector: CSS selector to wait for. url_pattern: URL substring (or shell-style glob when it contains *) used by request/navigation modes. timeout: Max wait in milliseconds. mode: Which condition url_pattern means. "auto" (default) matches a captured request when network capture is already running, otherwise falls back to navigation. "request" only matches captured requests and reports a clear hint when nothing arrives, so "the request never fired" is not confused with "the page did not navigate". "navigation" keeps the previous behaviour (page.wait_for_url). after_id: Optional request id; only requests with a larger id match, so an already-captured request cannot satisfy a later wait. poll_interval_ms: Polling interval for request mode.

Returns: dict with status plus mode; request mode also returns the matched request summary (id/url/method/status/ms).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wait_for"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoauto
timeoutNo
after_idNo
selectorNo
url_patternNo
poll_interval_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.13.1
    • addedInput schema / properties / after_id
      Added value: +{
      +  "title": "After Id",
      +  "type": "integer"
      +}
    • addedInput schema / properties / mode
      Added value: +{
      +  "default": "auto",
      +  "title": "Mode",
      +  "type": "string"
      +}
    • addedInput schema / properties / poll_interval_ms
      Added value: +{
      +  "default": 100,
      +  "title": "Poll Interval Ms",
      +  "type": "integer"
      +}
  2. Changed6 schema fields changedv1.1.1
    • removedInput schema / properties / selector / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / selector / default
      Removed value: -null
    • addedInput schema / properties / selector / type
      Added value: +"string"
    • removedInput schema / properties / url_pattern / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / url_pattern / default
      Removed value: -null
    • addedInput schema / properties / url_pattern / type
      Added value: +"string"
  3. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it explains the auto-fallback order, distinguishes 'request never fired' from 'page did not navigate' as distinct failure signals, and notes that after_id prevents an already-captured request from satisfying a later wait. It also discloses the return shape. It does not state what happens on timeout (exception vs. status value), which is the main remaining behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with a one-line purpose, then a per-argument list and a returns section, which is an appropriate structure for a six-parameter tool. Some sentences are longer than needed (the request-mode explanation spans several lines), but each carries distinct information rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, zero-annotation tool with no output schema, the description covers modes, defaults, filtering semantics, and return keys including the matched request summary fields. Missing only timeout failure behavior and any note on interaction with browser launch state, which keeps it short of fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must define all six parameters, and it does: selector, url_pattern including the shell-style glob nuance when it contains '*', timeout in milliseconds, the three-valued mode with per-value semantics, after_id monotonic filtering behavior, and the request-mode poll_interval_ms. This is meaningfully more than the bare titles in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb ('Wait for') and enumerates the three condition types it can wait on (element, captured network request, navigation), which matches the three modes. It doesn't explicitly name which sibling to use instead (e.g. navigate or list_network_requests), so differentiation is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The mode documentation gives real selection guidance: 'auto' is the default and falls back to navigation when network capture is not running, 'request' only matches captured requests and emits a hint, 'navigation' preserves page.wait_for_url semantics. That is clear when-each-mode guidance, but there is no guidance on when to call this tool at all versus polling siblings like list_network_requests or get_page_info.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.