# fetch_url

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/tools/fetch_url)

Fetch content from a URL and convert HTML to markdown format.

This tool fetches web page content and converts it to clean markdown text,
making it easy to read and process HTML content. After receiving the markdown,
you MUST synthesize the information into a natural, helpful response for the user.

## Signature

```python
fetch_url(
    url: str,
    timeout: int = 30,
) -> dict[str, Any]
```

## Description

IMPORTANT: After using this tool:
1. Read through the markdown content
2. Extract relevant information that answers the user's question
3. Synthesize this into a clear, natural language response
4. NEVER show the raw markdown to the user unless specifically requested

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `url` | `str` | Yes | The URL to fetch (must be a valid HTTP/HTTPS URL) |
| `timeout` | `int` | No | Request timeout in seconds (default: 30) (default: `30`) |

## Returns

`dict[str, Any]`

Dictionary containing:

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/829909166606f8a9d9571b00da725845bad08da7/libs/cli/deepagents_cli/tools.py#L114)