Skip to main content
Glama
WhiteNightShadow

camoufox-reverse-mcp

take_screenshot

Take a screenshot of the current page or a specific element using a CSS selector. Capture the entire scrollable page when needed.

Instructions

Take a screenshot of the current page or a specific element.

Args: full_page: Capture the entire scrollable page. selector: CSS selector of a specific element to capture.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
full_pageNo
selectorNo

Implementation Reference

  • The main handler function for the 'take_screenshot' MCP tool. It uses the active browser page to take a screenshot (either full-page or of a specific CSS selector element) and returns it as base64-encoded PNG.
    @mcp.tool()
    async def take_screenshot(full_page: bool = False, selector: str | None = None) -> dict:
        """Take a screenshot of the current page or a specific element.
    
        Args:
            full_page: Capture the entire scrollable page.
            selector: CSS selector of a specific element to capture.
        """
        try:
            page = await browser_manager.get_active_page()
            if selector:
                elem = await page.query_selector(selector)
                if not elem:
                    return {"error": f"Element not found: {selector}"}
                data = await elem.screenshot()
            else:
                data = await page.screenshot(full_page=full_page)
            return {"screenshot_base64": base64.b64encode(data).decode(), "format": "png"}
        except Exception as e:
            return {"error": str(e)}
  • The '@mcp.tool()' decorator registers 'take_screenshot' as a tool on the FastMCP server instance.
    @mcp.tool()
  • The function signature defines the input schema: 'full_page' (bool, default False) and 'selector' (optional str). The return type is 'dict' with either 'screenshot_base64' + 'format' or 'error'.
    async def take_screenshot(full_page: bool = False, selector: str | None = None) -> dict:
Behavior2/5

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

No annotations are provided, so the description must disclose all behavioral traits. It mentions the basic action but fails to describe return format (e.g., base64 image or file path), potential side effects, or permission requirements. This is inadequate for a tool with zero annotation coverage.

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 very concise: one sentence for purpose and two bullet-style lines for parameters. No unnecessary words or fluff.

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

Completeness2/5

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

Despite the tool's simplicity, the description lacks information about return values (no output schema), behavior with conflicting parameters, and error handling. This incompleteness could lead to incorrect agent usage.

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 coverage is 0%, but the description adds meaning by explaining 'full_page: Capture the entire scrollable page' and 'selector: CSS selector of a specific element to capture.' This compensates partially, but does not clarify interactions when both are provided or default behavior.

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 clearly states 'Take a screenshot of the current page or a specific element.' It provides specific verb and resource, and differentiates from sibling tools by focusing on screenshotting, which is unique among browser 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 gives no guidance on when to use this tool versus alternatives like 'take_snapshot' or other capture methods. No when-to-use or when-not-to-use instructions are provided.

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/WhiteNightShadow/camoufox-reverse-mcp'

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