fetch_text
Fetch a single web page as clean text, decode GB18030/UTF-8 correctly, and use rendered DOM with raw-body fallback for thin pages; optionally cache the text and return its path.
Instructions
Fetch one page as clean text, decoding GB18030 and UTF-8 correctly.
Prefers the rendered DOM and falls back to a raw-body parse when the page is too thin. With save=True the text is cached under the cache directory and the returned path is included.
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": {
"url": "<url>"
},
"name": "fetch_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| save | No | ||
| wait_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||