站点体检
site_auditRun a read-only pre-launch audit of a live site or local build to detect broken internal links, oversized images, SEO gaps, robots/sitemap issues, mixed content, and redirect chains.
Instructions
上线前给站点做只读体检:内部链接 4xx/5xx、图片体积、基础 SEO、robots/sitemap、混合内容、重定向链。可以查在线站点(base)或本地构建目录(dir)。只发 GET/HEAD,不提交表单、不登录。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "site_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | 本地站点目录,如 ./dist(与 base 二选一,不发任何请求)。 | |
| base | No | 在线站点起始页,如 https://example.com(与 dir 二选一)。 | |
| offline | No | 是否关掉外链探测。默认 true(离线、更快);要探测站外链接时传 false。 | |
| max_pages | No | 最多抓多少页。 | |
| timeout_ms | No | 整体超时(毫秒),默认 120000、上限 600000;超时会终止子进程并返回 timeout 错误。 | |
| concurrency | No | 并发上限。 |