Fetch a web page as Markdown
fetchRetrieve Japanese web pages as low-impact, token-efficient Markdown with robots.txt compliance, rate limiting, and caching; choose Markdown, outline, screenshot, or auto quality mode.
Instructions
Fetch a web page (Japanese-web-native) as low-impact, token-efficient Markdown. Built-in robots.txt compliance, rate limiting, and caching. mode: auto (default; quality score picks Markdown or screenshot) / markdown / outline (heading summary) / screenshot. Page 1 can come back as cache: unchanged or cache: diff (changed sections only, each without its child sections) instead of the body, but only when all of these hold: this server process has already returned that URL's Markdown body, amenbo's cached copy has expired (15 min by default; a refetch within 15 min, or a site that answers 304, returns the full text), the site resent the whole page, and the call has no selector and no force_full. The comparison copy may have been stored by another session or the CLI. Both responses carry total_tokens (the size of a full refetch) and a hint: if you have not read the whole content yourself, refetch with force_full: true. The CLI never returns them. The response also lists markdown_alternate: and llms_txt: when the page advertises them (amenbo does not fetch them itself). PDF URLs are handled automatically; other non-HTML responses (CSV, JSON, text/markdown, etc.) return a handoff with metadata, a text preview (paginated by page) and a curl command for the whole file. mode: screenshot is the retry for pages whose Markdown came back poor; when the layout itself is the information or you need viewport/scale control, use the screenshot tool instead.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target URL (http/https only; PDF supported) | |
| mode | No | Default: auto | |
| page | No | Page number (default 1) | |
| section | No | Section ID obtained from outline mode; returns only that section's Markdown (`s0` is the content before the first heading listed in the outline, when there is any). IDs are assigned by heading position, so pass the same selector and force_full as the outline call | |
| selector | No | CSS selector to narrow the content | |
| force_full | No | Default false. If true, disables diff responses (unchanged/diff) and boilerplate-block removal (pagination by max_tokens still applies). Set it when you got unchanged/diff but have not read the whole content yourself | |
| max_tokens | No | Approximate token budget per page (default 8000) | |
| ask_robots_override | No | Set true only when the user explicitly asked to fetch this page even though robots.txt denies it. amenbo then asks the user to confirm in the client UI and fetches only if they approve; this flag alone never bypasses robots.txt |