add_source
Validate and add a new RSS/Atom feed to your source list. Invalid or dead URLs are rejected before anything is written.
Instructions
Validate and add a new RSS/Atom feed to feeds.txt. Use when the user wants to follow a new source. The feed is downloaded and parsed first - invalid or dead URLs are rejected, nothing is written.
While feeds.txt is empty the app runs on bundled default feeds. When adding the user's FIRST own feed, ask them once whether to keep the defaults too (then call this with keep_defaults=True) or start fresh with only their own sources. Do not ask again once feeds.txt has entries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| keep_defaults | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |