browser_iframe
Switch browser context to an iframe using its CSS selector, or return to the main page.
Instructions
切换到 iframe 上下文(之后的操作在 iframe 内执行),或切回主页面。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | iframe 的 CSS 选择器,传 'main' 切回主页面 |
Switch browser context to an iframe using its CSS selector, or return to the main page.
切换到 iframe 上下文(之后的操作在 iframe 内执行),或切回主页面。
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | iframe 的 CSS 选择器,传 'main' 切回主页面 |
Changes observed during successful MCP inspections. Dates show when Glama detected each change.
v0.5.0Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Without annotations, the description bears the full burden of explaining behavior. It states that subsequent operations execute within the iframe and that passing 'main' switches back, providing key behavioral insight. It does not disclose all potential side effects, but the core behavior is clear.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise, using a single sentence with two clear clauses. It is well-structured and contains no unnecessary information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (one parameter, no output schema), the description provides complete context: purpose, usage, parameter semantics, and behavioral effect. Nothing essential is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The single parameter 'selector' is described as the iframe's CSS selector, with a special value 'main' to switch back. This adds significant meaning beyond the schema's type hint and fully clarifies parameter usage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: switching to an iframe context or back to the main page. It uses specific verbs and names the resource, effectively distinguishing it from sibling tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explains when to use the tool (to execute subsequent operations within an iframe) and how to return to the main page using 'main'. It implies usage context but does not explicitly mention alternative tools or exclusion criteria.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yubao2000/mcp-browser-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server