Extracttextfromurls
extractTextFromUrlsExtract and filter clean readable text from multiple webpages, with optional pagination support, to gather relevant content for research or analysis.
Instructions
Extract and filter readable text from multiple webpages with optional pagination support.
Uses requests to fetch HTML, trafilatura to extract clean text (falls back to raw HTML), and regex patterns to filter content. Regex filtering is recommended for multiple URLs.
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": {
"urls": "<urls>"
},
"name": "extractTextFromUrls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | List of target webpage URLs | |
| timeout | No | HTTP request timeout in seconds | |
| user_agent | No | Custom User-Agent header (defaults to common browser UA) | |
| pagination_limit | No | Maximum pagination depth (minimum 1) | |
| follow_pagination | No | Whether to follow rel="next" pagination links | |
| regular_expressions | No | Regex patterns to filter text; no filtering if None or empty |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |