GridProof
v0.1.3Gridproof your UI — automated spacing & grid QA in the agent loop (MCP server).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
gp_audit Gridproof: audit a URL
Render a running frontend and audit its spacing/grid geometry against the spacing-scale and arbitrary-value rules. Returns a structured AuditReport (violations with fix hints) plus a text summary.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the running frontend, e.g. http://localhost:5173 |
maxViolations | integer | Cap report size to protect agent context window. |
rules | array | Subset of rules to run. Default: all enabled in config. |
selector | string | Limit audit to a DOM subtree, e.g. '#main'. Default: body. |
viewport | object | Viewport for this audit pass. Run once per breakpoint. |
gp_check_element Gridproof: re-check one element
Re-check a single element's subtree after a fix, without re-running the full audit. Returns the violations found under that selector.
| Parameter | Type | Description |
|---|---|---|
selector * | string | CSS selector of the single element (subtree) to re-check. |
url * | string | URL of the running frontend, e.g. http://localhost:5173 |
viewport | object | Viewport for this check. Defaults to 1440×900. |
gp_get_config Gridproof: get resolved config
Return the effective Gridproof configuration (defaults merged with gridproof.config.json if present): baseUnit, allowedValues, canonicalSizes, minTapTarget, rule severities, suppressions.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Directory to search upward from for gridproof.config.json. Defaults to the server's working directory. |
gp_report Gridproof: audit + write HTML report
Render a URL, audit its spacing/grid geometry, and WRITE a self-contained HTML report to disk (default ./gridproof-report.html). Returns the file path plus the same AuditReport JSON as gp_audit.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the running frontend, e.g. http://localhost:5173 |
maxViolations | integer | Cap report size to protect agent context window. |
outputPath | string | Where to write the HTML report. Default: ./gridproof-report.html |
rules | array | Subset of rules to run. Default: all enabled in config. |
selector | string | Limit audit to a DOM subtree, e.g. '#main'. Default: body. |
viewport | object | Viewport for this audit pass. Run once per breakpoint. |