fetch_article
Extract structured article data including title, text, author, and publication date from any news article URL.
Instructions
Fetch a news article by URL and return structured data.
Args:
url: The URL of the news article.
Returns:
A dict with keys: title, text, author, date.
Raises:
ValueError: If URL is invalid or article cannot be parsed.
requests.RequestException: If HTTP request fails.
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": "fetch_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||