extract
Converts raw HTML into clean Markdown, article text, or tables for token-efficient reading; sanitizes hidden elements and comments first, optionally narrowing to main content.
Instructions
把 HTML 源码转成干净 Markdown/正文/表格,用于省 token 地阅读网页内容。默认先净化(剥离隐藏元素/注释/零宽字符等提示注入载体)再转换;main_only=true 时额外收窄到主内容容器(更适合阅读文章页)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | 跳过净化(默认 false;仅在确需原始 HTML 时用) | |
| html | Yes | HTML 源码 | |
| mode | No | markdown(默认)/ article / table | |
| base_url | No | 用于把相对链接转绝对(可选) | |
| main_only | No | 只取主内容容器(默认 false;正文页建议 true) | |
| max_chars | No | 输出上限字符(默认 50000,防爆 token) |