crawl_website
Discover a website's pages and structure for WHED schema profiles, filtering out login, media, and unrelated content while crawling up to set depth and page limits.
Instructions
Crawl a website to discover its structure and pages.
Args:
start_url: Starting URL
max_pages: Maximum pages to crawl (default 50)
max_depth: Maximum link depth (default 3)
same_domain_only: Stay on same domain (default True)
schema_filter: When True, only follow URLs whose path contains keywords
relevant to the WHED schema (about, contact, course, program,
faculty, etc.). Skips login pages, media, and unrelated content.
Recommended for institution websites.
save_path: Optional file path to save the site map as JSON (e.g. "C:/Users/me/Desktop/sitemap.json").
If a directory is given, a timestamped filename is generated automatically.
Returns:
Site map with discovered pages and statistics
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"start_url": "<start_url>"
},
"name": "crawl_website"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | ||
| max_pages | No | ||
| save_path | No | ||
| start_url | Yes | ||
| schema_filter | No | ||
| same_domain_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |