web_fetch
Fetch any web page and receive a clean, token-efficient article body. Automatically bypasses anti-bot and login walls, detects blocked pages, and reports extraction failures.
Instructions
抓取网页并返回极省 token 的紧凑正文(自动辨别反爬拦截页并如实上报)。
Args: url: 目标网页完整 URL,需带 http/https 协议头。 max_tokens: 正文 token 预算上限,超出时保留头尾、省略中段。 link_policy: 链接处理策略。internal=站内链接保留为相对路径、站外降级为纯文本(默认,最省); all=站内外链接全保留;none=全部降级为纯文本。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| max_tokens | No | ||
| link_policy | No | internal |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |