---
type: Attested Computation
title: headlines
identifier: news/headlines
description: The latest headlines from a news feed (RSS or Atom), newest first. Clean markdown list by default, or TSV when format=tsv.
pack: news
tags:
- world
runtime: fragletc
image: ofthemachine/python3@sha256:a015b4f9f0e7c1648f8fcd4164f6a296dd3c9189404f88f333a9764d08d13522
network: required
stdin: none
execution_class: environmental
procedure_hash: sha256:420b5c9ae4ccfe5afaed87fe79ff6eb5ffb98d12c20cca03ed7fc07e038165d0
parameters:
- name: feed
  type: string
  required: false
  default: feeds.bbci.co.uk/news/world/rss.xml
  description: RSS or Atom feed URL (https:// is assumed when no scheme is given)
- name: count
  type: string
  required: false
  default: '5'
  description: How many headlines to print
- name: format
  type: string
  required: false
  default: markdown
  description: 'Stdout format: "markdown" for formatted clickable links, or "tsv" for title\tlink\tdate'
computation: https://tools.ofthemachine.com/news/headlines.py
executor:
  resource: https://github.com/ofthemachine/fraglet
  receipt:
  - schema
  - fragletc
  - procedure
  - procedure_hash
  - image
  - image_digest
  - network
  - stdin_mode
  - params
  - inputs
  - argv
  - env
  - memo_key
  - started
  - finished
  - exit_code
  - stdout
  - outputs
  format: fraglet-receipt/2 (fragletc --receipt <path>, or FRAGLETC_RECEIPT_DIR)
attester:
  resource: https://tools.ofthemachine.com/receipt/attest.py
  method: 'deterministic, no re-execution: procedure_hash equals sha256 of computation; memo_key recomputes from the receipt''s own fields; claimed params and any artifact hash match the receipt'
generated:
  by: process:tools/catalog/compile.py
  at: '2026-11-13T18:27:40Z'
outputs:
- headlines.md:d=The headlines as the markdown list, whatever format stdout takes, for a later step to read
---

# headlines

The latest headlines from a news feed (RSS or Atom), newest first. Clean markdown list by default, or TSV when format=tsv.

Use when the user wants today's top news or the latest headlines from an outlet, section, or feed, or a briefing, caption, or prompt needs a live headline.

# Schema

## Parameters
- `feed` (string, optional, default `feeds.bbci.co.uk/news/world/rss.xml`) — RSS or Atom feed URL (https:// is assumed when no scheme is given)
- `count` (string, optional, default `5`) — How many headlines to print
- `format` (string, optional, default `markdown`) — Stdout format: "markdown" for formatted clickable links, or "tsv" for title\tlink\tdate

## Outputs
- `headlines.md:d=The headlines as the markdown list, whatever format stdout takes, for a later step to read` (declared file under /output)

# Execution

The computation is [`news/headlines.py`](https://tools.ofthemachine.com/news/headlines.py) (frontmatter `computation`; in `tools.tar.gz` the same file sits at `news/headlines.py` beside this bundle), run by `fragletc` in `ofthemachine/python3@sha256:a015b4f9f0e7c1648f8fcd4164f6a296dd3c9189404f88f333a9764d08d13522` with network `required`. Its identity is `procedure_hash` = sha256 of that file, shebang included — the same value every receipt records. Parameters are passed as `-p name=value`; `--receipt run.json` (or `FRAGLETC_RECEIPT_DIR`) writes the receipt, a `fraglet-receipt/2` JSON document with the fields listed under `executor.receipt`.

# Attestation

A run's receipt is attested with [`receipt/attest.py`](https://tools.ofthemachine.com/receipt/attest.py): the computation that ran is this script (`procedure_hash`), the receipt is internally consistent (`memo_key` recomputes from its own fields), the claimed parameters are the ones that ran, and an artifact claimed as an output hashes to what the receipt recorded. No re-execution: attestation is provenance fidelity, not reproduction.

Environmental: the tool reaches the network, so outputs depend on state outside its inputs; the receipt records exactly what ran and what came out and makes no reproduction claim.

Skill: [SKILL.md](https://tools.ofthemachine.com/news/SKILL.md)
