Skip to main content
Glama
jamesmurdza

Daytona Playwright MCP Server

by jamesmurdza

browser_wait_for_selector

Wait for a web element to reach a specific state like visible, hidden, attached, or detached in the browser, enabling reliable automation of page interactions.

Instructions

Wait for an element to reach a specific state.

States:

  • attached: Element is in the DOM

  • detached: Element is removed from the DOM

  • visible: Element is visible on the page

  • hidden: Element is hidden or removed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYesCSS selector to wait for
stateNoState to wait forvisible
timeoutNoTimeout in milliseconds

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While it lists possible states, it doesn't explain what happens when the timeout is reached, whether this blocks execution, what the return value indicates, or error conditions. For a waiting tool with zero annotation coverage, this leaves significant behavioral gaps.

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

Conciseness5/5

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

The description is perfectly concise and well-structured. The first sentence states the core purpose, followed by a clear bulleted list of states. Every sentence earns its place with no wasted words, and information is front-loaded appropriately.

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

Completeness3/5

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

Given that there's an output schema (though not shown here), the description doesn't need to explain return values. However, for a waiting tool with no annotations, the description should do more to explain timeout behavior, blocking nature, and error conditions. The state explanations are helpful, but overall completeness is only adequate.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already fully documents all three parameters. The description adds value by explaining the meaning of each state option (attached, detached, visible, hidden), which provides semantic context beyond the enum values in the schema. This earns a baseline 3 with some added value.

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 description clearly states the tool's purpose: 'Wait for an element to reach a specific state.' It specifies the verb ('wait for') and resource ('element'), but doesn't explicitly differentiate from siblings like browser_wait_for_navigation. The description is specific about what the tool does, though it could better distinguish from similar waiting tools.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. There's no mention of when to choose this over browser_wait_for_navigation or other browser tools, nor any context about prerequisites or typical use cases. The tool exists in isolation without usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jamesmurdza/playwright-daytona-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server