Fetch a URL
fetchRetrieves a single web page or PDF as Markdown, returning either full text or the top passages that answer a query; optionally renders JavaScript shells when needed.
Instructions
Fetch one URL (page or PDF) as Markdown. query returns only the top_k passages that answer it. content_scope="full" returns the whole page text. render="auto" opens the browser only for a JavaScript shell (up to 3 credits). Returns data.title, content_markdown, content_text, page_text_chars, content_chars, scope_used, language and content_status; fields: https://clawifi.dev/docs/fetch
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 | ||
| query | No | ||
| top_k | No | ||
| render | No | never | |
| dry_run | No | Not supported here: leave it out and use the estimate tool to price a call. | |
| options | No | Other API fields for this operation, merged into the request body as they are (see the Clawifi API docs). | |
| content_scope | No | main | |
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||