Extracttextfromurl
extractTextFromUrlExtract clean readable text from a webpage and filter it with regex patterns; optionally follow pagination links to gather content across pages.
Instructions
Extract and filter readable text from a webpage 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.
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": {
"url": "<url>"
},
"name": "extractTextFromUrl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target webpage URL | |
| 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 |