Skip to content

st fetch

b2o2i edited this page Apr 3, 2026 · 7 revisions

st-fetch — Import external content into a container

Imports external content into a container as a raw data entry — a tweet by ID, a web URL, or a local file. The imported content can then be processed with st-prep like any generated story.

Run before: st-prep

Examples

st-fetch <tweet_id> file.json            # fetch X post by tweet ID
st-fetch --file report.md file.json      # import a local .txt or .md file
st-fetch --url https://... file.json     # fetch a web page
st-fetch --clipboard file.json           # import text from clipboard
st-fetch --clipboard file.json --prep    # clipboard → story entry in one step
st-fetch <tweet_id> file.json --prep     # fetch and run st-prep automatically
st-fetch <tweet_id> file.json --no-cache # bypass cache, always fetch live

Options: --file --url --clipboard --prep --no-cache -v -q

Related: st-prep · st-gen


For developers

AI_MAKE is set to "url" for fetched content; this handler is not in AI_HANDLER_REGISTRY. Twitter/X fetches require X_COM_BEARER_TOKEN in .env.

Clone this wiki locally