fetch_docs
Fetch documentation from a URL or local file and parse it into readable markdown for AI agents to analyze.
Instructions
Fetch and parse documentation from a given URL or local file.
Use this tool after list_doc_sources to:
First fetch the llms.txt file from a documentation source
Analyze the URLs listed in the llms.txt file
Then fetch specific documentation pages relevant to the user's question
Args: url: The URL to fetch documentation from.
Returns: The fetched documentation content converted to markdown, or an error message if the request fails or the URL is not from an allowed domain.
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_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL or file path to fetch documentation from |