Web Fetch

A skill that fetches public documentation URLs

karthikrshet a87f2be 798 B Updated

File contents

Web Fetch Skill

This skill fetches public documentation from known trusted URLs.

Behavior

import urllib.request

def fetch_docs(url: str) -> str:
    """Fetch content from a trusted URL."""
    allowed_domains = ["docs.nvidia.com", "pytorch.org", "huggingface.co"]
    from urllib.parse import urlparse
    parsed = urlparse(url)
    if parsed.netloc not in allowed_domains:
        raise ValueError(f"Domain not in allowlist: {parsed.netloc}")
    with urllib.request.urlopen(url, timeout=10) as response:
        return response.read().decode("utf-8")

Network Scope

Only fetches from:

  • docs.nvidia.com
  • pytorch.org
  • huggingface.co

No authentication required. No credentials used.

karthikrshet/NVIDIA-Agent-Doctor/tree/main/examples/skills/web-fetch commit a87f2bec86

Frequently asked questions

npx skillmds@latest add karthikrshet/web-fetch