get_content
Fetch a specific URL and extract its content as clean Markdown, ready for LLM use. Solves reading web pages when you already have the link.
Instructions
Fetch a URL and extract LLM-ready Markdown content.
Use this when you already have a specific URL and want to read its content.
If you need to discover URLs first, use web_search() instead.
Args:
url: URL to fetch and extract content from.
Returns:
Dictionary with:
- url: The requested URL
- content: Extracted Markdown content
Example:
>>> await get_content("https://example.com")
{
"url": "https://example.com",
"content": "# Example DomainThis domain is for use in illustrative examples..." }
Notes:
- Specialized handlers for GitHub Issues, Stack Exchange, Wikipedia, and arXiv.
- Falls back to Trafilatura and BeautifulSoup for general websites.
- Content extraction is best-effort and may fail for paywalled or protected content.
- Some content types (PDFs, videos) may not be supported.
Raises:
ContentExtractionError: If fetching or extraction fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||