Skip to main content

Module web_fetch

Module web_fetch 

Source
Expand description

WebFetch tool for fetching and analyzing web content using AI

Supports both restricted (blocklist) and whitelist (allowlist) modes with dynamic configuration loading from vtcode.toml

Fetched content is written to ephemeral cache files under the user cache directory’s web-fetch/ path. and cleaned up periodically. Content is never persisted to the workspace.

Re-exports§

pub use classify_helpers::extract_http_status;
pub use domains::BUILTIN_BLOCKED_DOMAINS;
pub use domains::BUILTIN_BLOCKED_PATTERNS;
pub use domains::MALICIOUS_PATTERNS;

Modules§

classify_helpers
Shared error classification helpers used by web_fetch, web_search, and defuddle_fetch.
domains
Security domain constants for web_fetch tool

Structs§

WebFetchTool
WebFetch tool that fetches URL content and processes it with AI

Functions§

cleanup_old_web_fetch_temps
Clean up old web_fetch temp files.