Fetch a page as text or markdown
scrapeFetch a URL and return readable text or markdown, optionally narrowed by CSS selector. Requests to private, loopback and link-local addresses are refused, and every redirect hop is re-validated. Costs $0.010 in USDC on Base, paid via the x402 protocol, or from a credit token — call credits_trial for free credit if you have neither.
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": "scrape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | HTTPS URL to fetch | |
| format | No | Output format (default text) | |
| selector | No | Optional CSS selector to extract just part of the page | |
| credit_token | No | Optional. A credit token from credits_trial or /credits/buy. Supplying it pays for this call from that balance, so no x402 payment or wallet is needed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page that was fetched | |
| title | No | Document title, when the page has one | |
| format | No | 'text', 'markdown' or 'html', echoing your request | |
| content | Yes | Extracted content in the requested format | |
| extracted_at | No | ISO-8601 fetch time |