web_changes
Compare two snapshots of a URL without new requests or extra scraping; get row-level diffs or field-level changes with deltas and percentages.
Instructions
比较某个 URL 的两个快照版本,不发请求、不产生额外抓取。
默认把最新版与上一版(compare="prev")比较;compare 也可填序号(1=最新)或 ISO 时间点(取该时刻之前最近的版本)。不传 schema 时退化为行级 diff; 传 schema 且两版快照都带字段数据时,输出字段级 changes(数值带 delta/pct)。 字段由 web_watch(schema=...) 随快照保存,历史快照没有字段数据时自动回退行级 diff。
Args: url: 目标网页完整 URL。 schema: 可选的字段抽取规则(同 web_extract),用于字段级比较。 compare: 与哪一版比较:prev(上一版,默认)/ 序号 / ISO 时间点。 selector: 与 web_watch 时一致的选择器;不传表示整页快照。 limit: 单类变更最多返回条数,1~50,默认 20。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "web_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| limit | No | ||
| schema | No | ||
| compare | No | prev | |
| selector | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |