Skip to main content
Glama

toggle_display

Switch browser display mode between headless and headed to handle CAPTCHAs or visual tasks, then revert to headless. Virtual mode provides VNC access for remote interaction.

Instructions

Toggle browser display mode between headless and headed. When encountering CAPTCHAs or issues requiring visual interaction, switch to headed mode (headless: false) to show the browser window. After resolving, switch back to headless mode (headless: true). When switching an existing single context to virtual or headed mode, the response includes a vncUrl field — open this URL in a browser to see and interact with the browser GUI. Check tabsInvalidated in the response: when true, recreate tabs; when false, existing tracked tabs remain usable and the override applies to future contexts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesUser/session identifier
headlessYesDisplay mode — false for headed, true for headless, "virtual" for virtual display
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explains that switching to headed/virtual mode shows the browser window and includes a vncUrl for interaction, and that the response contains a tabsInvalidated field indicating whether tabs need recreation. This provides transparency beyond a mere toggle action.

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?

The description is three sentences, efficiently covering purpose, usage, and response behavior. It is front-loaded with the main action and provides necessary details without wordiness. A slight reduction in length could be possible, but current structure is clear and functional.

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?

Given the tool's simplicity (toggling display mode), the description is fairly complete. It explains the two main use cases (CAPTCHA, resolution), and decodes response fields (vncUrl, tabsInvalidated). It lacks error handling or edge cases like permission errors, but for a toggle tool with two parameters, it covers essential aspects.

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

Parameters4/5

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

The schema covers both parameters with descriptions (100% coverage). The description adds value by explaining the effect of headless values (false→headed, true→headless, virtual→virtual display) and mentions response behaviors (vncUrl, tabsInvalidated) that are not in the schema, enriching parameter understanding.

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

Purpose5/5

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

The description explicitly states the tool toggles browser display mode between headless and headed, which is a specific verb-resource pair. It also mentions the virtual mode from the schema. This clearly distinguishes it from sibling tools that perform other browser actions like clicking, scrolling, or navigation.

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 description provides clear usage guidance: use headed mode when encountering CAPTCHAs or issues requiring visual interaction, and switch back to headless after resolving. It also explains how to handle the response (vncUrl, tabsInvalidated). While it doesn't explicitly list when-not-to-use, the context is sufficient.

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/redf0x1/camofox-mcp'

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