Repository navigation
Description
Problem
After an audit there is no way to see the site as a table of pages. The JSON, markdown and llm reports contain issues and the entity map, but not the per-page data the crawl already collected. Checking a site's titles and descriptions for search intent, spotting orphan pages, or comparing schema across a section means writing a separate crawler.
A failing-rule list only shows pages that break a rule. Pages that pass do not appear, so you cannot review the whole set side by side or see patterns such as every blog title ending in the same suffix.
Proposal
A page map export from the crawl, as squirrel pages on the CLI and a list_pages tool on the MCP server and API, modelled on squirrel entities and list_entities.
One row per crawled page:
- URL, final URL after redirects, HTTP status, canonical, robots/noindex
- title and its length
- meta description and its length
- H1, heading count, word count
- JSON-LD types and
@ids declared on the page - internal links in and out, external links out (with the external domains), and anchor text
- crawl depth, last modified, response time
Options:
--format csv|json|html|markdown. The html output is a single sortable, filterable table, asentities -f htmlalready is for the graph.- Filters:
--missing title|description|h1|schema,--duplicate title|description,--too-long,--orphan,--section /blog,--page <substring>. --diffbetween two audits, so a title rewrite can be checked after a fix.- Flags column that reuses existing rule results (too long, duplicate, no schema, orphan), so the table and the issue list agree.
Notes
- The data is already extracted during the crawl for the title, description, canonical, schema and link rules, so it should add no extra credits.
- Paginate on the MCP side (
limit,offset,hasMore) aslist_entitiesdoes. - A prototype of the columns, run against a sitemap, was useful for a 15 site review: it surfaced duplicate and overlong descriptions, pages with no
@idon their schema and orphan pages in one view.
Suggested labels: enhancement, cli, mcp, crawler.
Acceptance Criteria
-
squirrel pagesprints one row per crawled page from the latest audit with: URL, final URL, status, canonical, noindex, title and length, description and length, H1, heading count, word count, JSON-LD types/@ids, internal links in/out, external links out with domains, crawl depth, response time. -
--format csv|json|html|markdownall work; html is a single sortable, filterable table. - Filters work and combine:
--missing title|description|h1|schema,--duplicate title|description,--too-long,--orphan,--section <path>,--page <substring>. - A flags column reuses existing rule results so the table and the issue list agree.
-
--diff <audit>shows added, removed and changed rows between two audits. - The hosted MCP and API expose
list_pageswithlimit,offset,hasMore, same row shape as the CLI. - No extra credits are charged beyond the audit; the data comes from the existing crawl.
- Shell completions, docs (
docs/) and the agent skill are updated in the same change; a private issue (labelskills) is filed if the skill needs a change.
Activity
nc9 commentedon Oct 13, 2026
Spec prep
Verdict: feature request, still not built (current main
e95e0f5, v0.0.112). Neither the CLI nor the MCP has a per-page export today.The only per-page data in the report is
pageStatuses(urlandstatus, in core-contractsAuditReport). The data itself is already stored, so no extra crawling or credits are needed.Data source: what the local crawl DB already holds
All of these live in
packages/crawler/src/storage/sqlite.ts, one row set percrawl_id:pages(url,final_url,status,depth,load_time_ms,ttfb,last_modified,redirect_chain)page_features(title,description,canonical,robots_noindex,meta_noindex,word_count,schema_types), written byextractPageFeatures(packages/audit-engine/src/page-features.ts) on every streaming audit and replayed from the rule cachepage_features.report_scalars.h1Countlink_appearances(href,page_url,anchor_text,rel,is_nofollow) joined tolinks.is_internal@ids per pageentity_occurrencesjoined toentitiesrule_results(per crawl and page)For H1 text and heading count, the CLI can read them from
pages.parsed_data(oneJSON.parseper page), but the better fix is to addh1TextandheadingCounttoreportScalarsinextractPageFeatures. It is a JSON column, so no migration is needed.Retention:
retireCrawlscan reclaim older audits (crawls.retired_at), so--diffhas to refuse a retired crawl with a clear message.Hosted side (private repo, reference only)
site_pagesholds only status and state;page_findingsholds findings.list_entities(apps/api/src/mcp/tools/entity-tools.ts) reads the entity map that arrives with the published report.apps/api/src/routes/v1/reports.ts),validatePublishedEntityMapchecks it against the sharedEntityMapSchemaand strips unknown keys.storePublishedEntityMapthen writes it to R2 and indexes it inwebsite_entity_snapshots.ENTITY_MAP_PUBLISH_LIMITS(packages/core-contracts/src/entity-map.ts, 512 KB).list_pagesshould copy that design exactly:pageMapsection on the report, with aPageMapSchemaandPAGE_MAP_PUBLISH_LIMITSin core-contracts;limit,offset,hasMore).squirrel mcpis a stdio front end for the hosted MCP, so the tool lives only inapps/api.Credits
None.
squirrel pagesreads the local store.list_pagesis a read-only tool over a stored report, likelist_entitiesandget_report: no re-crawl, no link checks, no probes.The one real cost is publish size. At about 600 bytes a row, a 500-page map is about 300 KB, and it counts against the single-POST publish budget (#2634's chunked path). Cap it with row and string limits, and mark the map truncated when a cap is hit.
Surface
CLI
apps/cli/src/cli/commands/pages.ts, registered inapps/cli/src/cli/index.tsapps/cli/src/controllers/pages.tsapps/cli/src/pages/filters.tssquirrel entities:--input, crawl selection,-f,-oRenderers: in
packages/report, next to the entities exports. csv, markdown and json, plus html as a self-contained sortable, filterable table, the wayrenderEntityMapHtmlis self-contained.Flags column: read verdicts, never re-implement thresholds, so the table and the issue list agree:
core/meta-titlecore/meta-descriptioncontent/duplicate-title(andcore/title-unique)content/duplicate-descriptioncore/h1links/orphan-pages(notintegrity/orphan-page, which means something else)schema_typesCompletions:
apps/cli/src/self/completion.ts(the commands list near line 51, plus bash, zsh and fish blocks like theentitiesone).Docs:
docs/cli/pages.mdx, added todocs.jsonnext tocli/entitiesdocs/cli/index.mdxanddocs/reports.mdxdocs/developers/mcp.mdxanddocs/cli/mcp.mdxSkill: the squirrelscan agent skill needs a
squirrel pages/list_pagessection. File a private issue with theskillslabel.Suggested sub-issues
buildPageMap(storage, crawlId)in audit-engine over the tables above, plush1TextandheadingCountinreportScalars. Unit tests on a synthetic-site crawl. Public, M.squirrel pages: json, csv and markdown, all filters, the flags column, completions anddocs/cli/pages.mdx. Public, M.-f html: a sortable, filterable single-file table inpackages/report. Public, S.--diff <audit>: added, removed and changed rows, refusing retired crawls. Public, S.pageMapsection,PageMapSchemaand publish limits in core-contracts, emitted on publish by the CLI and the cloud worker-agent. Public, then private. M. It spans both repos, so it goes on the hold list.list_pages: the MCP tool, a REST route, the MCP server instructions inapps/api/src/mcp/server.ts, and publish-side validate and store. Private, M.Order: 1, then 2 to 4 in parallel; 5, then 6; 7 last.
Tests
link_appearances, and@ids againstentity_occurrences.apps/cli/tests/entities/is the template for apagesfolder. Each filter alone and combined, each format, and--diffacross two stored crawls.reportScalarsmust not change any rule input; the rule cache replayspage_features, so checkrule-cache-replay-golden.test.ts.Open questions for the maintainer
truncated: true, or tied to the plan's page ceiling?--orphan: no internal inbound link from a crawled page (whatlinks/orphan-pagesreports), or also pages found only in the sitemap?GET /v1/reports/:id/pages), or MCP only at first?Recommended session
Size L confirmed. As one PR it would be XL across three repos, so split it.
deniskern commentedon Oct 18, 2026
A use case that builds on this: an internal link map. Besides the per-page in/out counts, we need the edge list itself, which the crawl already stores in
link_appearances(page_url,href,anchor_text,position,is_nofollow).Proposal, as part of this export or as
squirrel links:content/nav/footer/sidebar/unknown), nofollow.content) and template (nav/footer) links, plus crawl depth. A page linked only from the footer looks well linked in a total count, but it is not.--format json|csv|graphml|dot, assquirrel entitiesalready supports, and--page <url>for one page's inbound and outbound links. On MCP:list_linkswithlimit/offset.Why: we currently read
project.dbdirectly to find pages that get demand in Search Console but few contextual links, and to check whether anchors for a keyword point at the intended page. That depends on an internal schema, so a supported export would let us drop it.Tested against v0.0.117.
fix(cli,report): pages output strips terminal escapes, C1 controls an…
feat(cli): squirrel pages -f html and --diff between two audits #701
fix(cli,report): diff and html output strip terminal escapes and bidi…
feat(cli): squirrel pages lists the pages of a stored audit as a tabl…
fix(cli,report): pages output strips terminal escapes, C1 controls an…
fix(cli,report): pages link counts use the rules' URL key, pipe-safe …
feat(cli): squirrel pages -f html and --diff between two audits #701
fix(cli,report): diff and html output strip terminal escapes and bidi…
fix(cli,report): pages diff pipe-safe cells, json escapes, scope note…
feat(cli): squirrel pages lists the pages of a stored audit as a tabl…
11 remaining items
fix(cli,report): pages output strips terminal escapes, C1 controls an…
fix(cli,report): pages link counts use the rules' URL key, pipe-safe …
fix(core-contracts): stripUnsafeLineText covers more invisible charac…
fix(cli,report): pages out-links keyed by the stored url, pipe escape…
feat(cli): squirrel pages -f html and --diff between two audits #701
fix(cli,report): diff and html output strip terminal escapes and bidi…
fix(cli,report): pages diff pipe-safe cells, json escapes, scope note…
nc9 commentedon Oct 31, 2026
Verified against main after v0.0.149 (
squirrel pageslanded). Met and ticked: the table columns, the json, csv, markdown and html formats, the combinable filters, the rule-derived flags and--diffbetween two audits (criteria 1 to 5). Not ticked: the hosted listing (not in this repo), the credits note (the local command makes no fetch and costs nothing), and the last criterion, whose completions and docs are done but whose agent-skill update is a process item. Leaving this open for the hosted part and the skill.nik
feat(mcp): list_pages tool on the local MCP server #701
nc9 commentedon Nov 12, 2026
Not closed after v0.0.179 (https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.179). The local
squirrel pagescommand and MCPlist_pagesshipped. Still open: the hosted MCP/APIlist_pages(private repo) and the agent-skill check or issue. The change that shipped is 01373a7.nik
nc9 commentedon Nov 13, 2026
Closing as shipped for this repo. Verified against the tags in this step:
squirrel pages(table, json/csv/markdown/html, filters, rule-derived flags,--diff): 5e87c93, e5d0388, fd1e3e0. Each is an ancestor of v0.0.179, first shipped in v0.0.149.list_pageson the local server (squirrel mcp): 01373a7, an ancestor of v0.0.179, first shipped in it.Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.179
The hosted MCP/API
list_pagesneeds the report contract and the private API, so it is tracked in the private repo (squirrelscan/repo#4172). The agent-skill check is stated there too.nik
feat(report): published pageMap section so hosted surfaces can list a…
feat(report): published pageMap section so hosted surfaces can list a…