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

opencode · News & Media

How to Use BFI catalogue terms in opencode

Look up BFI controlled vocabulary for categories such as genre and subject. Use the catalogue's own wording to prepare a search instead of guessing how material is classified.

Prompts to try with BFI catalogue terms in opencode

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

Use BFI catalogue terms to find genre terms matching documentary, then show the returned wording in this project's query builder.

BFI catalogue termsopencode
Try asking
  • Use BFI catalogue terms to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from BFI catalogue terms and tell me what changed since last week.

  • Check BFI catalogue terms and summarize what you find in three bullet points.

  • Pull the newest data from BFI catalogue terms and give me the result as a table.

How to set up BFI catalogue terms 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 BFI catalogue terms

    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": "collections-search-bfi-org-uk/records/lookup_terms",
        "input": {
          "term": "<term>",
          "field": "<field>",
          "database": "ChoiceFilmWorks"
        }
      }'

Then paste one of the prompts above: opencode finds BFI catalogue terms on Spiral, shows the price and runs it.

BFI catalogue terms providers and prices

Spiral runs BFI catalogue terms through Alexandria. Open a card for today's price, with every fee included.

AlexandriaNews & Media
BFI Collections Search · Lookup terms
collections-search-bfi-org-uk/records/lookup_terms

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
DatabaseChoiceFilmWorks, ChoiceFilmItems, ChoiceLibrary, ChoiceBooks, ChoiceSerials, ChoiceArticles, ChoicePresscuttings, ChoiceSpecialCollections and 4 more

database

Search typeadvanced or expertadvanced

Which form's lookup to use; the vocabulary is the same.

Every API field of BFI Collections Search · Lookup terms is on its tool page: open its card above.

What can you do with BFI catalogue terms in opencode?

Build a BFI research tool that takes a film topic from query planning through catalogue matches to detailed records. A coding agent can use the search vocabulary and returned descriptions to develop the project's research interface.

Plan a documentary research shortlist

Identify suitable film search fields, check BFI's documentary terminology, find relevant titles, and read selected records for a research shortlist.

Research a film genre

Check how BFI names a genre, choose the relevant search fields, and inspect matching film records to develop a retrospective proposal.

Build a film studies reading list

Inspect library search fields and subject terms, find books or articles on British animation, and read their catalogue descriptions before selecting references.

Research television by subject

Find BFI's vocabulary and available search fields for television research, then review matching records about a topic such as railways or education.

Questions about BFI catalogue terms in opencode

Can opencode use BFI catalogue terms?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run BFI catalogue terms like any built-in tool.

How much does BFI catalogue terms 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 BFI catalogue terms in opencode?

No. Spiral runs BFI catalogue terms on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up BFI catalogue terms in opencode?

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

Does opencode wait while BFI catalogue terms runs?

BFI catalogue terms runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Does BFI cover films outside Britain?

Yes. The collection is international, but contemporary collecting focuses on British work across genres and types of filmmaking.

How far back does BFI's television collecting go?

BFI has collected British television programs since the late 1950s. That describes the collecting history, rather than a promise of complete coverage of every broadcast.

Are catalogue corrections published immediately?

BFI explicitly says it cannot guarantee immediate database updates when errors or omissions are reported.

Are all Screencraft records equally complete?

No. BFI warns that not all search fields are populated, so a field being available to search does not mean every record contains a value for it.

Can I view digitized stills remotely through the catalogue?

BFI distinguishes stills listings from the actual images. Its search guide says digitized images can only be viewed at a BFI site.

Get started

Start using BFI catalogue terms 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