Skip to main content
Glama

inspect_visual_challenge

Detect reCAPTCHA v2 image-grid challenges on the active page, capture a screenshot, and return tile metadata for AI-driven visual analysis.

Instructions

Detect a reCAPTCHA v2 image-grid challenge on the active page, screenshot it, and return tile metadata. The AI client (Claude / Cursor / Gemini — multimodal) uses its own vision to identify which tiles to click, then calls solve_visual_challenge with the selected indices. Requires QA_VISUAL_CHALLENGE_CONSENT=true at the server level; without it, returns a structured consent_required error carrying the full legal disclaimer.

Returns: {challenge_id, screenshot_base64, challenge_text, grid_layout ('3x3'|'4x4'), tile_count, tiles[{index, viewport_x, viewport_y, w, h}], expires_at, fingerprint}.

Error shapes: consent_required / unauthorized_domain / forbidden_domain / no_challenge_present / no_active_page / detection_failed — same {error, retryable, hint} envelope as every other runner. Scope: reCAPTCHA v2 image-grid only in v0.7.0 (hCaptcha → v0.7.1; v3 / Turnstile permanently out of scope). Pair with solve_visual_challenge — this tool alone never clicks anything.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idNoReserved for future multi-page sessions; ignored in v0.7.0 (the tool operates on the active Playwright page handed in by the runner).
selectorNoOptional override for the iframe selector. Default auto-detection tries `iframe[title*="recaptcha challenge"]` (English UI) then `iframe[src*="recaptcha/api2/bframe"]` (URL pattern, locale-agnostic).
Behavior5/5

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

With no annotations provided, the description carries full burden. It discloses that the tool requires consent, only operates on the active page, and never clicks. It details return structure, error shapes, and scope (v0.7.0 reCAPTCHA v2 only). This is thorough and transparent.

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 moderately long but well-structured. It front-loads the main purpose, then provides details on consent, return, errors, and scope. Every sentence adds value, though it could be slightly more compact.

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 lack of output schema, the description compensates by detailing the return structure and error shapes. It covers consent, scope, and pairing. Minor omission: not fully describing challenge_text or fingerprint format, but sufficient for the tool's task.

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?

Schema coverage is 100% and parameters are well-documented. The description adds context: page_id is ignored in current version, and selector has default auto-detection logic. This provides meaningful guidance beyond the schema.

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 the tool detects a reCAPTCHA v2 image-grid challenge, screenshots it, and returns tile metadata. It distinguishes itself from the sibling solve_visual_challenge by noting that this tool never clicks anything, providing a clear purpose.

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 explains when to use the tool (detecting challenges), mentions the need for consent, and pairs it with solve_visual_challenge. However, it does not explicitly state when not to use it (e.g., if no challenge present), though error shapes hint at that. It lacks explicit alternatives but context is clear.

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/kao273183/mk-qa-master'

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