What it does
The Scrape URL tool extracts text content from web pages and PDF documents. Perfect for gathering information from websites, analyzing web content, or processing documents that your agents need to work with.Key features
- Extract content from any web page or PDF URL
- Return markdown, HTML, or just the page’s links
- Strip navigation, headers, and footers so only the article body comes back
- Renders JavaScript-heavy pages before extracting
- Oversized pages are saved as an attachment instead of flooding the conversation
Parameters
Common use cases
Extract article content
Get the full page, chrome included
Process PDF documents
Get raw HTML for parsing
["markdown", "html"] to get both.
Harvest links for a crawl
Limitations
- Results over 100 KB are saved as a file attachment; the agent gets a ~10,000-character preview inline and reads the rest with Read File
- PDF extraction doesn’t handle images or complex formatting
- Some dynamic content requiring user interaction may not be captured
Troubleshooting
“Failed to load page”- Check that the URL is accessible and valid
- Verify the website doesn’t block automated access
- Try the URL in a browser to confirm it works
- The page exceeded 100 KB, so the full text was attached as a file
- Read it with Read File using the returned filename
- Or narrow the scrape with
onlyMainContent: true(the default)
- Ensure the URL points to a valid PDF file
- Some password-protected PDFs cannot be processed
- Try downloading and hosting the PDF elsewhere