ui_review
Serve a web project, capture screenshots, and receive a read-only UI critique with optional accessibility audits and design comparisons.
Instructions
Serve the app, screenshot it, and have agy critique it read-only.
Any file agy edits during the critique is reverted by the diff-gate, so this tool never mutates the project.
When a11y is set (and the platform is a web target), each target is also
audited with axe-core; the violations ground agy's critique and are returned
structurally under a11y. Native platforms have no DOM, so the audit is
skipped there with a note.
Args:
project_dir: Absolute path to the project root (must contain the scope).
target_route: Optional route appended to scope.serve.url.
against_design: Optional absolute paths to design reference images to
critique against.
a11y: Run axe-core accessibility checks on web targets (default True).
Returns:
A dict with critique (agy's text), shots (captured paths),
targets (the reviewed target names), a11y (a {target: [violations]} map; empty when disabled/native), and warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | Yes | ||
| target_route | No | ||
| against_design | No | ||
| a11y | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||