[n].
Recipe prompt
Paste this into your coding agent to have it build the recipe in your project:Recipe prompt
What you build
When it runs
Once per question, on demand. Use it when the answer depends on something recent, such as a release, a price or an announcement. For a question about stable facts, droppublished_after so older reference pages can rank.
Code
This sample searches for pages published in the last 30 days, builds the prompt and prints it with the source list. It runs with no API key:to_context() and cited() take the same options, so [2] in the answer always maps to the second URL in the source list. The curl tab numbers the raw results with jq, because HTTP returns JSON with no rendered block.
Example output
You see the prompt, then one line per source with its publish date:Example output · results vary
Production notes
published_after takes a date, an ISO 8601 timestamp or a relative offset such as 7d. Don’t use query_time for recency: it sets an upper bound and leaves newer pages out. See Search parameters.
Next steps
- Fact-check with citations: check each claim in an answer against the pages that discuss it.
- Research loop: split a broad question into several searches before you answer.
- Tool calling: let the model decide when to search instead.
- Recipes: every recipe on one page.