Doc read
doc_readUse for reading a web page as clean markdown for an LLM or agent (url to markdown, reader, html to text): POST {url, max_chars} and get {title, markdown, chars, source_url}. Returns the paid x402 request for your input (POST /v1/doc/read, $0.005 per call; schema linked). POST that JSON body to the URL with an x402 or MPP client to get the data. Bad input is refused before any charge. With an access key (Authorization: Bearer p0k_..., buy at https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/keys/buy?usd=5) the tool pays the call itself, returns the data and deducts the price. First call each day returns the data itself, free; later calls return the paid request.
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": "doc_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | public http or https page to read, e.g. https://example.com/ | |
| max_chars | No | longest markdown to return; longer pages are cut and marked truncated |