studio_design_metrics
Computes page visual-completion metrics—type scale, 4px grid consistency, whitespace, text contrast, hue count—plus anti AI-slop rule checks, returning reproducible structural findings and concrete fixes.
Instructions
计算页面的 L1 视觉完成度代理指标(字阶比、4px 栅格一致性、留白占比、文本对比度、主色相数)与反 AI-slop 负样本规则(等距三卡、紫渐变、空洞居中标题、图标圆角方块、首屏无素材、圆角过度)。每条 slop 规则的触发阈值随结果 slopRules 返回——未命中可能只是样本低于阈值,不代表规则失效。不返回审美总分:只给可复现的结构判断与具体改法。
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": "studio_design_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| port | No | ||
| pageId | No | ||
| pixelTruth | No | 默认真实浏览器像素测量;false 显式使用几何估算。失败回落时标注原因。 | |
| projectDir | No | ||
| thresholds | No |