网页内容抓取
web_fetch抓取指定 URL 网页并提取正文纯文本(去脚本/样式/标签)。Example: {"url":"https://example.com","max_chars":3000}
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "https://example.com",
"max_chars": 3000
},
"name": "web_fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 完整 URL(含 http:// 或 https://) | |
| max_chars | No | 返回正文最大字符数,默认 3000,上限 10000 |