查看原始 JSON
{
"type": "object",
"required": [
"queryParams"
],
"properties": {
"queryParams": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"url"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "要读取的完整地址,须包含 http:// 或 https:// 协议。"
},
"zdr": {
"enum": [
"enabled",
"disabled"
],
"type": "string",
"description": "enabled 表示绕过 Context.dev 共享缓存,并不在其保留的使用日志中保存请求或响应内容。供应商账户须已启用零数据保留,否则返回 ZDR_NOT_ENABLED。"
},
"country": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"description": "供应商支持的 ISO 3166-1 alpha-2 两字母国家代码,如 us、gb 或 de。"
},
"maxAgeMs": {
"type": "integer",
"maximum": 2592000000,
"minimum": 0,
"description": "允许复用的缓存最大年龄,单位毫秒。默认 86400000(一天),最大 2592000000(三十天);0 表示请求新抓取。"
},
"timeoutMS": {
"type": "integer",
"maximum": 300000,
"minimum": 1000,
"description": "供应商超时设置,单位毫秒,范围 1000–300000。超时后供应商会中止并返回 408;应留出平台处理时间。"
},
"waitForMs": {
"type": "integer",
"maximum": 30000,
"minimum": 0,
"description": "页面载入后额外等待的毫秒数,范围 0–30000,可用于等待动态内容。"
},
"includeLinks": {
"type": "boolean",
"description": "是否在 Markdown 中保留链接,默认 true。"
},
"includeFrames": {
"type": "boolean",
"description": "是否把 iframe 内容写入结果,默认 false。"
},
"includeImages": {
"type": "boolean",
"description": "是否在 Markdown 中保留图片引用,默认 false。"
},
"settleAnimations": {
"type": "boolean",
"description": "是否在转换前短暂等待动画稳定,默认 false;可能增加等待时间。"
},
"useMainContentOnly": {
"type": "boolean",
"description": "是否仅提取可识别的页面主体,去除页眉、页脚、侧栏和导航,默认 false。"
},
"shortenBase64Images": {
"type": "boolean",
"description": "是否缩短内嵌 base64 图片内容以限制结果大小,默认 true。"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}