Get Headlines
headlinesGet top headlines with optional filtering by country, category, and language
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "headlines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Number of articles to return (1-100) | |
| lang | No | Language code of the articles (e.g., 'en', 'fr') | |
| country | No | Country code(s) of publication (e.g., 'us', 'gb') | |
| category | No | Category to filter by (e.g., 'business', 'technology') | |
| ai_sentiment | No | Filter by AI-analyzed sentiment (e.g., 'positive', 'negative', 'neutral') | |
| ai_entity_name | No | Filter by entity name detected in articles | |
| ai_entity_type | No | Filter by entity type (e.g., 'person', 'organization', 'location') |