agent-eyes

v0.3.3
io.github.muhlegger/agent-eyes Checked 15 hours ago Published 15 days ago

Lets a coding agent see the web UI it just changed: findings as text, motion included.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_ui Check a web UI after a change

Look at a running web app after a UI change, before saying it is done. Opens each route in a real browser (Chromium; logged in via agent-eyes.config.json), at the widths you ask, runs your clicks and hovers, and returns text: horizontal scroll, content that jumped after load, page errors, console errors, failed requests, server 5xx, actions that missed, and animation glitches (shrink, snap, flicker, freeze). Also writes PNG screenshots to disk and lists their paths with the token cost of each; nothing is sent as an image until you call view_image. Actions are real (clicking Save saves), so poi…

ParameterTypeDescription
checks *arrayEverything to verify, in one call.
baseUrlstringe.g. "http://localhost:3000". Optional when agent-eyes.config.json has "baseUrl".
comparestringFolder of a previous run: each screenshot is compared pixel by pixel with the one of the same name. "identical" means nothing to look at; otherwise one side-by-side image with the changed regions boxe…
configstringConfig file, if not ./agent-eyes.config.json.
outstringFolder for the images (default ./agent-eyes-out). Use a separate folder to keep a baseline before editing.
projectDirstringAbsolute path of the project (where agent-eyes.config.json lives, and where relative paths resolve). Default: the server's working directory.
varsobjectValues for {name} in routes, e.g. {"id":"42"}.
waitintegerMilliseconds to wait after each page loads (default 1200).
widthsarrayDefault widths for checks that give none (default: the config's, else 1440 and 390).

view_image Open one screenshot

Return one PNG file as an image, to look at what the text from check_ui or compare_images cannot answer (does the layout look right, is anything cut off). Reads the file and changes nothing. The image costs the tokens printed next to its path and stays in your context, so open few, and prefer crops. Fails with a readable message if the path is not a PNG.

ParameterTypeDescription
path *stringPath as printed by check_ui.

compare_images Compare two screenshots

Compare two PNG files that already exist, pixel by pixel, without opening the app. Answers "identical" (nothing to look at), or writes one side-by-side PNG to `out` with each changed region boxed in red and returns the regions as text (size and position) with the token cost of that image. Use it for two files you already have, e.g. a design export against a screenshot; to compare a screen before and after your edit, check_ui with `compare` does the capture and the comparison in one call.

ParameterTypeDescription
after *stringPath of the second PNG (shown on the right, labelled after).
before *stringPath of the first PNG (shown on the left, labelled before).
out *stringPath of the side-by-side PNG to write. Written only when the two differ; an existing file is replaced.