WSG Check
v0.8.1Check websites against the W3C Web Sustainability Guidelines and look up the guidelines
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_url Check a URL against the WSG
Fetches a page and checks it against the W3C Web Sustainability Guidelines. Returns the score, grade, and each failed or warned check with a recommended fix. Local URLs such as http://localhost:3000 are fetched from the user's machine; they work unless the server was started with --no-local.
| Parameter | Type | Description |
|---|---|---|
url * | string | The page to check, e.g. https://example.com or http://localhost:3000 |
categories | array | WSG categories to run. Defaults to all three. |
detail | string | "summary" (default) returns the score and the failed or warned checks. "full" also returns the complete report, which is much longer. |
guidelines | array | Narrow the run to these guideline slugs (e.g. "minify-and-remove-unused-code") or related-check IDs. |
timeoutMs | integer | Give up after this many milliseconds. Defaults to 60000. |
list_guidelines List WSG guidelines
Lists the guidelines in WSG September-2026, optionally filtered by category, testability, or text in the title, slug, or description. Each entry has the slug to pass to get_guideline or to check_url's guidelines, and how many automated checks implement it.
| Parameter | Type | Description |
|---|---|---|
category | string | Only guidelines in this category |
query | string | Case-insensitive text to find in the title, slug, or description, e.g. "media" |
testability | string | Only guidelines that can be tested this way |
get_guideline Get a WSG guideline
Returns one guideline: its description, category, testability, W3C specification link, and how many automated checks implement it. Accepts a slug, or a deprecated numeric ID such as "3.3", which is resolved to its current slug.
| Parameter | Type | Description |
|---|---|---|
id * | string | A guideline slug such as "minify-and-remove-unused-code", or a legacy number |