Spiral gives your agent every tool with one account. Browse the tools →

opencode · News & Media

How to Use Nature article search in opencode

Returns matching articles across Nature journals for a topic, title or author search. Use it for a focused research question when browsing one journal or subject would be too broad.

Prompts to try with Nature article search in opencode

Copy an example into opencode, or ask in your own words.

Use Nature article search to look this up and give me the result as a table. Save the result in ./assets.

Nature article searchopencode
Try asking
  • Pull the latest numbers from Nature article search and tell me what changed since last week.

  • Check Nature article search and summarize what you find in three bullet points.

  • Pull the newest data from Nature article search and give me the result as a table.

  • Check Nature article search every morning and tell me only when something changed.

How to set up Nature article search in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Nature article search

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "nature-com/papers/search_articles",
        "input": {
          "q": "<q>"
        }
      }'

Then paste one of the prompts above: opencode finds Nature article search on Spiral, shows the price and runs it.

Nature article search providers and prices

Spiral runs Nature article search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaNews & Media
Nature · Search articles
nature-com/papers/search_articles

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page1 to 1000

1-based page of 50 results; default 1.

Orderrelevance, date_desc, or date_asc

Sort order; default relevance.

Article typeresearch, reviews, news-and-views, research-highlights, protocols, news, comments-and-opinion, books-and-arts and 4 more

Article type facet.

Every API field of Nature · Search articles is on its tool page: open its card above.

What can you do with Nature article search in opencode?

Build a Nature reading catalog with article citations and links to the papers they reference. A coding agent can use your project's files to turn retrieved articles into searchable records and reading queues.

Screen literature for a review

Combine topic searches, subject browsing and monthly URL inventories to collect candidate papers. Use article details, available text and bibliographies to assess relevance and find earlier work.

Write a monthly research digest

Gather candidates from journal listings, subject pages, searches and monthly inventories, then compare them with issue contents. Verify article details and read available text before selecting papers for the digest.

Build a course reading list

Find foundational and recent papers through searches, subject pages, journal archives, dated issues and monthly inventories. Check the bibliographic details, inspect available text and use references to connect each reading to earlier research.

Compare published methods

Find protein-structure prediction papers through topic searches, subject pages and journal listings. Compare the methods described in available article text, retaining each paper's citation and references for follow-up reading.

Check sources for a science article

Find the original paper behind a Nature issue item or topic search. Verify its citation, read available full text and inspect the bibliography before writing claims about the study.

Map a research topic's reading trail

Collect relevant papers from subject pages, searches and monthly inventories. Combine their verified article details and bibliographies into a reading map showing which earlier works they cite.

Questions about Nature article search in opencode

Can opencode use Nature article search?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Nature article search like any built-in tool.

How much does Nature article search cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use Nature article search in opencode?

No. Spiral runs Nature article search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Nature article search in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while Nature article search runs?

Nature article search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Does Nature cover only the journal Nature?

Nature.com also carries other Nature Portfolio journals. Its machine-learning subject page includes research from Nature Communications and reviews from Nature Methods.

How far back does Nature's archive go?

Nature's first issue appeared in November 1869. Its volume archive lists Volume 1 as covering November 1869 through April 1870.

Does the latest issue contain the newest online papers?

Nature publishes weekly, but many papers appear online before their print issue date. An issue-based reading list can therefore omit newer online publications.

Is every Nature research article open access?

No. Since January 2021, authors submitting primary research to Nature have been able to choose either subscription publication or gold open access.

Do Nature listings include corrections and retractions?

Yes. Nature's journal listings include both author corrections and retraction notices, so a listing can contain updates to earlier research as well as new papers.

Get started

Start using Nature article search in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options