onpage-audit
On-Page Audit
Crawl a chosen set of pages on one property, run the technical on-page checks on each, and report the issues grouped by severity with the affected URLs and the fix. The user's request may contain a property, a list of URLs, a sitemap URL, a section path (for example "/blog/"), or a page count; use it to skip resolution and to narrow the URL set. This skill reads the pages' own HTML. For whether Google indexed them, run the indexing-health skill.
Workflow
-
Resolve the property. If the user's request or the conversation names a property, use it. Site URLs use GSC formats:
sc-domain:example.comorhttps://www.example.com/. Otherwise calllist_sitesand pick the obvious match. If several plausible properties exist, ask the user which one before continuing.- The property also bounds the crawl:
audit_onpage_seofetches only URLs that belong to it (a domain property covers its subdomains, a URL-prefix property only its own origin and path prefix) and lists any other URL inskippedwith a reason, so a URL on another host needs its own property.
- The property also bounds the crawl:
-
Choose the URL set. Take the first source that applies, and keep the whole workflow to about 25 to 50 pages unless the user asks for more, because every page is fetched live from the user's site.
- The user named URLs: use them as given, at most 25 per call (the
urlscap). - "My top pages" or no hint: call
query_top_pageswith thesiteUrlandlimit: 25, omittingstartDateandendDatefor the last 28 settled days, and take thepagevalues. Rows are sorted by clicks, highest first;ctris a 0-100 percentage, never multiply it by 100;positionis lower-is-better. GSC data lags about 2 to 3 days, so the window ends before today. - No list and no traffic read: omit
urlsand let the tool auto-pick the top pages by impressions withmaxUrls(default 10, max 25) andminImpressions(default 0, counted over the same 28 days). - A sitemap or a section: call
get_sitemap_performancewithsitemapUrl(on the property host; one level of sitemap-index expansion) andmaxUrls(default 500, max 2000). Audit the URLs with clicks or impressions first. - URLs with zero impressions are an index-coverage question for the sitemap-audit and indexing-health skills, not an on-page one, unless the user asks about them.
- The user named URLs: use them as given, at most 25 per call (the