browser_extract
Extracts list data from repeated containers using CSS selectors and field mappings, returning structured JSON or CSV for product lists, search results, and notifications.
Instructions
按"重复容器 + 字段映射"抓取列表数据(商品列表/搜索结果/通知列表等),返回 JSON/CSV
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": {
"items": "<items>",
"fields": "<fields>"
},
"name": "browser_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | 是否保存到输出目录 | |
| items | Yes | 重复容器的 CSS 选择器,如 .search-result-item | |
| fields | Yes | 字段映射:字段名 -> 容器内相对选择器,如 {"标题": "h3 a", "价格": ".price"} | |
| format | No | 输出格式,默认 json | |
| filename | No | 保存的文件名 |