---
document_id: agent.collection.task.raw_html_v1
schema_version: 2
parent_document_id: agent.querying
section: querying
---

<!-- Generated by scripts.build_agent_guide; do not edit. -->

# Web collection / 网页采集

Fetch multiple public web pages by URL, including known pages the Agent cannot fetch locally, and return full-page Markdown or structured elements. Pages that need a login or interaction belong to the local browser MCP, not this task.

按 URL 批量采集多个公开网页,也适用于 Agent 本地 fetch 无法读取的已知页面;返回整页 Markdown 或结构化元素。需要登录或点击翻页的页面用本地浏览器 MCP,不是这个任务。

Task / 任务: `raw_html_v1`
Platform / 平台: Web / 网页
Billing / 计费: 2 Credits per successful URL / 每个成功 URL 2 Credits
Estimate / 估价: call `estimate_collection`; start directly when `approval_required=false`, otherwise obtain approval for `upper_bound_credits`.
估价：调用 `estimate_collection`；`approval_required=false` 时直接启动，否则请用户确认 `upper_bound_credits`。

## Inputs / 输入

- `urls` — Web URLs / 网页链接; kind=url_list; required=True; default=[]
- `output_format` — Output format / 输出格式; kind=select; required=False; default='markdown'; allowed=markdown, json

## Minimal call / 最小调用

`estimate_collection`

```json
{
  "task_query": "获取 https://example.com/ 的网页内容",
  "task_code": "raw_html_v1",
  "input": {
    "urls": [
      "https://example.com/"
    ],
    "output_format": "markdown"
  }
}
```


## Result and pagination / 结果与分页

- mode=none

Only the fields listed below are part of the stable result contract. /
只有下方列出的字段属于稳定结果契约。

## Result fields / 结果字段

- `meta.request_id` — type=string; Asklear request identifier for tracing. / 用于追踪的 Asklear 请求 ID。
- `meta.api_name` — type=string; Executed collection operation name. / 实际执行的采集操作名称。
- `meta.latency_ms` — type=integer; Collection execution latency in milliseconds. / 采集执行耗时（毫秒）。
- `meta.credits_charged` — type=integer; Asklear Credits settled for each successful URL in this task. / 本任务按每个成功 URL 结算的 Asklear Credits。
- `data.documents` — type=array<object>; One result document per submitted URL. / 每个提交 URL 对应一个结果文档。
- `data.documents[].url` — type=string; Normalized submitted URL. / 规范化后的提交 URL。
- `data.documents[].status` — type=enum; succeeded or failed. / succeeded 或 failed。
- `data.documents[].format` — type=enum; markdown or json. / markdown 或 json。
- `data.documents[].content` — type=string; Converted Markdown content when format is markdown and status is succeeded. / format 为 markdown 且 status 为 succeeded 时的 Markdown 内容。
- `data.documents[].elements` — type=array<object>; Structured JSON elements when format is json and status is succeeded. / format 为 json 且 status 为 succeeded 时的结构化元素。
- `data.documents[].elements[].type` — type=string; Element type, such as a visible HTML tag. / 元素类型，例如可见 HTML 标签。
- `data.documents[].elements[].text` — type=string; Visible text for the element. / 元素的可见文本。
- `data.documents[].elements[].metadata` — type=object; Bounded element metadata; currently includes the source tag. / 有界元素元数据；当前包含来源标签。
- `data.documents[].error_code` — type=string; Stable error code for a failed document; currently collection_failed. / 失败文档的稳定错误码；当前为 collection_failed。

Use `list_collection_tasks` as the runtime authority, then `describe_collection_task` for one task's full input contract, examples and limits. Collection access is entitlement-gated. /
以 `list_collection_tasks` 返回为运行时准据，再用 `describe_collection_task` 取单个任务的完整入参契约、示例与限制；采集能力受 entitlement 控制。
