How to Use Earth Search Sentinel-2 scene search in opencode
Finds Sentinel-2 scenes covering a selected location and date range. Use it to choose acquisitions for image clips or vegetation calculations; the catalog cloud percentage describes the whole scene.
Prompts to try with Earth Search Sentinel-2 scene search in opencode
Copy an example into opencode, or ask in your own words.
Use Earth Search Sentinel-2 scene search for Yosemite Valley, within longitude -119.61 to -119.60 and latitude 37.73 to 37.74, during June 2025. Add the returned acquisitions to the project's scene picker.
Use Earth Search Sentinel-2 scene search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Earth Search Sentinel-2 scene search and tell me what changed since last week.
Check Earth Search Sentinel-2 scene search and summarize what you find in three bullet points.
Pull the newest data from Earth Search Sentinel-2 scene search and give me the result as a table.
How to set up Earth Search Sentinel-2 scene search in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Earth Search Sentinel-2 scene 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": "earth-search-aws-element84-com/satellite-imagery/search_scenes", "input": { "geometry": {} } }'
Then paste one of the prompts above: opencode finds Earth Search Sentinel-2 scene search on Spiral, shows the price and runs it.
Earth Search Sentinel-2 scene search providers and prices
Spiral runs Earth Search Sentinel-2 scene search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 100 | 20 | Scenes per page. |
| Collection | auto, sentinel-2-c1-l2a, or sentinel-2-l2a |
| |
| Max cloud cover pct | 0 to 100 | Keep scenes whose tile-level eo:cloud_cover is below this percentage (Earth Search |
Every API field of Element 84 Earth Search (Sentinel-2 L2A) · Search scenes is on its tool page: open its card above.
What can you do with Earth Search Sentinel-2 scene search in opencode?
Build a map that connects dated Sentinel-2 imagery with vegetation comparisons for a public land boundary. A coding agent can add archive coverage and raster metadata to the project so users can inspect the evidence behind each comparison.
Plan crop scouting
Check acquisition availability, choose suitable scenes, inspect their band metadata, and compare vegetation indices with image clips to decide where field inspection would help.
Review restoration progress
Compare vegetation indices and dated images for a restoration boundary. Check archive density and source resolutions before selecting acquisitions for a progress report.
Compare park vegetation across seasons
Find acquisitions from comparable seasonal windows, check their processing metadata, and pair vegetation calculations with clips. Use availability summaries to identify periods with too little imagery for a useful comparison.
Document vegetation after a wildfire
Select acquisitions before and after a fire, verify source bands and resolutions, and present vegetation indices beside dated clips. Check imagery availability before committing to a reporting interval.
Prepare a land condition report
Support a public or commercial land assessment with dated imagery and vegetation comparisons. Include the acquisition coverage and raster metadata so a reviewer can examine the underlying evidence.
Build a satellite imagery lesson
Use a public park to demonstrate archive gaps, scene selection, band resolution, vegetation calculations, and image interpretation. Let students compare a numerical vegetation signal with the corresponding image.
More on Earth Search Sentinel-2 scene search and opencode
Overview
Earth Search Sentinel-2 scene search in other agents
Questions about Earth Search Sentinel-2 scene search in opencode
Can opencode use Earth Search Sentinel-2 scene search?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Earth Search Sentinel-2 scene search like any built-in tool.
How much does Earth Search Sentinel-2 scene 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 Earth Search Sentinel-2 scene search in opencode?
No. Spiral runs Earth Search Sentinel-2 scene 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 Earth Search Sentinel-2 scene search in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Earth Search Sentinel-2 scene search runs?
Earth Search Sentinel-2 scene search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Where does Sentinel-2 provide systematic land coverage?
Systematic continental land coverage, including inland waters, extends from 56 degrees south to 82.8 degrees north. Archive completeness at a particular location still depends on the catalog.
How often can a location have new imagery?
The nominal mission is designed for a five-day revisit at the equator. The AWS registry describes additions usually arriving within a few hours of upstream availability, rather than promising delivery within a fixed time after acquisition.
How much detail can Sentinel-2 resolve?
Level-2A bands and associated image products have resolutions of 10, 20, or 60 meters. These are atmospherically corrected surface reflectance products.
Does the catalog cloud percentage describe my selected area?
The STAC cloud-cover percentage describes the entire scene. A low scene percentage does not establish that a smaller park, field, or restoration site is clear.
Does an empty search prove there was no imagery?
No. Element 84 documents missing catalog items, so an empty result cannot prove that no acquisition occurred. Collection 1 also has a processing boundary: its COGs use baseline 5.0 or later.
Start using Earth Search Sentinel-2 scene search in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


