hello_aigent_subscribe
Subscribes a principal to a Hello Aigent feed by fetching the site's discovery file and recording consent for updates, offers, or transactional messages.
Instructions
Subscribe to a Hello Aigent feed. Fetches the site's discovery file (/.well-known/hello-aigent.json), picks the feed, and subscribes on behalf of a principal (the account/user this agent acts for). IMPORTANT: subscribing is a consent decision — confirm with your principal before calling. Returns the stored subscription (token is persisted locally, not shown).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feed_id | No | Feed id; defaults to the only/first feed | |
| principal | Yes | The account/user this agent acts for | |
| consent_scope | Yes | What the principal consents to receive | |
| discovery_url | Yes | URL of the discovery file, e.g. https://helloaigent.dev/.well-known/hello-aigent.json |