readability_ops
Extract clean, ad-free article text from web pages for RSS feeds. Uses trafilatura with readability-lxml fallback, caching results in SQLite.
Instructions
readability_ops - Clean article text without ad sites.
RATIONALE: trafilatura primary plus readability-lxml fallback, cached in SQLite. No paywall bypass: if the page needs login, extraction reports failure honestly.
Return Format
Dictionary with success (bool), message (str), and article text fields (title, author, text, html, extractor, cached).
Examples
{"operation": "extract", "item_id": 3} -> downloads article and extracts cleaned text.
{"operation": "get_cached", "item_id": 3} -> retrieves previously cached clean extraction.
{"operation": "list_extractors"} -> lists available readability engines.
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": {
"operation": "<operation>"
},
"name": "readability_ops"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| item_id | No | ||
| operation | Yes | Readability operation to run |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||