查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"url",
"schema"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "开始抓取和提取的网页地址。"
},
"schema": {
"type": "object",
"description": "要返回的顶层对象 JSON Schema,可从 Zod/Pydantic 模型生成或手工定义。",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"maxAgeMs": {
"type": "integer",
"maximum": 2592000000,
"minimum": 0,
"description": "可复用缓存的最大年龄,单位毫秒。默认一天,最多 30 天;设为 0 请求重新获取。"
},
"maxDepth": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "从起始地址允许的最大链接深度;0 表示只处理起始页面,省略时不限定深度。"
},
"maxPages": {
"type": "integer",
"maximum": 50,
"minimum": 1,
"description": "最多分析的页面数,默认 5,上限 50。契约说明按次计费,页面数不会改变该供应商计费方式;Toolmu 费用仍以当前价格为准。"
},
"factCheck": {
"type": "boolean",
"description": "true 时要求返回值有页面文字依据,不支持的字段返回 null 或空值;默认 false,允许合理推断。"
},
"timeoutMS": {
"type": "integer",
"maximum": 300000,
"minimum": 1000,
"description": "供应商超时上限,单位毫秒,最大 300000。应短于端点的 requestTimeoutMs,避免平台先超时。"
},
"waitForMs": {
"type": "integer",
"maximum": 30000,
"minimum": 0,
"description": "页面加载后额外等待的毫秒数,范围 0–30000,可用于等待动态内容。"
},
"stopAfterMs": {
"type": "integer",
"maximum": 110000,
"minimum": 10000,
"description": "抓取阶段的软时间预算,单位毫秒,范围 10000–110000,默认 80000。"
},
"instructions": {
"type": "string",
"maxLength": 2000,
"description": "提取指导,说明优先事实和含糊字段的处理方式,最多 2000 字符。"
},
"includeFrames": {
"type": "boolean",
"description": "是否在交给提取器的 Markdown 中包含 iframe 内容,默认 false。"
},
"followSubdomains": {
"type": "boolean",
"description": "是否跟随起始地址域名的子域名链接,默认 false。"
},
"settleAnimations": {
"type": "boolean",
"description": "是否在读取每页前短暂等待动画稳定,默认 false。"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}