Skip to main content
Glama

page_pixels

Renders an element as a digit luminance grid so an agent can inspect shapes, layout, and captcha gaps without a vision model.

Instructions

SUPERMAN GLASSES: render an element (canvas / img / background-image) as a compact luminance GRID of digits 0-9 the agent READS directly — see shapes, holes, object orientation, image layout WITHOUT a vision model. 0=black, 9=white. Captcha gaps appear as darker cells, upright skies are bright rows on top. Pass the ref from page_a11y. Returns JSON {w, h, grid:[rows of digits]}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refYesRef of the element to render (canvas / img / background-image).
grid_hNoGrid height in cells (default 21).
grid_wNoGrid width in cells (default 32).
page_idYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.3

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It fully discloses the output format (JSON with w, h, grid), the meaning of digit values (0=black, 9=white), and how to interpret visual artifacts. It also mentions the prerequisite of obtaining a ref from page_a11y. This is a read-only rendering tool with no side effects mentioned, which is appropriate. It does not mention error handling or auth, but the behavior is well-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 a single, information-dense paragraph. It front-loads the core purpose with the metaphor, then packs in output format, interpretation rules, and a source hint. Every sentence contributes value: the metaphor brands the concept, the digit-grid explanation clarifies use, and the interpretation examples aid the agent. It is concise relative to the amount of useful information conveyed.

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 there is no output schema, the description correctly explains the return structure ({w, h, grid}). It also provides enough context for correct invocation: the required ref source, and grid dimension defaults are left to the schema (which documents default values). It does not mention error conditions or edge cases, but for a read-only grid renderer with clear input requirements, the description is largely complete.

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 60% (descriptions for ref, grid_h, grid_w; none for session_id, page_id). The description adds meaningful context for the ref parameter ('Pass the ref from page_a11y') and explains the return format, which relates to grid dimensions. However, it does not elaborate on session_id or page_id, which are likely standard session/page identifiers. It compensates partially but not fully for the schema gaps.

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 states a specific verb ('render') and resource (element as canvas/img/background-image), and specifies the exact output: a compact luminance grid of digits. It clearly distinguishes itself from vision-model tools by saying 'WITHOUT a vision model', and from siblings like page_screenshot and page_vision by its unique digit-grid format. The purpose is unambiguous and not a tautology.

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 gives a concrete usage hint: 'Pass the ref from page_a11y', which tells the agent where to get the required ref. It also explains when the tool is useful (seeing shapes, holes, orientation without a vision model) and provides interpretative cues (captcha gaps darker, skies bright rows on top). It doesn't explicitly name alternatives or when not to use it, but the 'WITHOUT a vision model' phrase implies an alternative to vision-based tools.

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