get_news_by_preference
Fetches news for a specific saved user preference identified by its ID. The preference defines the category, region, and language of news to retrieve. Use get_user_preferences first to obtain valid preference IDs. Login is required to access this tool.
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": {
"preference_id": "<preference_id>"
},
"name": "get_news_by_preference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of news items to return. Overrides the preference's default value | |
| last_n_hours | No | Number of hours to look back for news. Overrides the preference's default value | |
| preference_id | Yes | ID of the saved user preference to fetch news for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |