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

opencode · News & Media

How to Use BFI search fields in opencode

Find the searchable fields and sorting choices for a BFI catalogue database. Use it to plan a targeted film, library, or archive search before retrieving matching records.

Prompts to try with BFI search fields in opencode

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

Use BFI search fields to inspect the film and television catalogue, then add a search form to this project using the supported categories.

BFI search fieldsopencode
Try asking
  • Use BFI search fields to look this up and give me the result as a table. Save the result in ./assets.

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

  • Check BFI search fields and summarize what you find in three bullet points.

  • Pull the newest data from BFI search fields and give me the result as a table.

How to set up BFI search fields 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 search fields

    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/list_search_fields",
        "input": {
          "database": "ChoiceFilmWorks"
        }
      }'

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

BFI search fields providers and prices

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

AlexandriaNews & Media
BFI Collections Search · List search fields
collections-search-bfi-org-uk/records/list_search_fields

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

Every API field of BFI Collections Search · List search fields is on its tool page: open its card above.

What can you do with BFI search fields 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 search fields in opencode

Can opencode use BFI search fields?

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

How much does BFI search fields 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 search fields in opencode?

No. Spiral runs BFI search fields 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 search fields in opencode?

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

Does opencode wait while BFI search fields runs?

BFI search fields 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 search fields 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