Skip to main content

fetch

Function fetch 

Source
pub async fn fetch(fetch: &WebFetch) -> Result<String, String>
Expand description

Fetch a URL, returning clean markdown for LLM context.

Content is extracted via Exa Contents API / MCP web_fetch_exa, falling back to rs_trafilatura (order controlled by EXA_FIRST).

ยงErrors

Returns Err if the fetch fails or all fallback methods are exhausted.