/emem:emem-field-tokensfrom emem
Fetches native-resolution raster fields (single-date, composite, or multi-date cubes) from emem as content-addressed signed artifacts. Returns grid data, derivation records, and emem tokens for world-model inputs, NDVI layers, or change detection.
Ships in emem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| Use it when | The user needs a grid of pixel values over an area, at one date or at several dates. |
| You need | A bounding box (min_lat, min_lng, max_lat, max_lng) and a band. Dates are optional. No key. For the hash check, a BLAKE3 tool that you already trust. |
| You get | A grid artifact with its BLAKE3 name (artifact_cid), a signed derivation record, a receipt, and an emem:raster: or emem:cube: token. |
| Calls | POST /v1/band_raster, /v1/band_composite, /v1/band_cube, then /v1/raster/resolve or /v1/cube/resolve to check a token, and GET /v1/artifacts/{cid} for the bytes. |
Network use. The commands in this skill send JSON to
https://emem.devand receive JSON or a raster file from it.https://emem.devis the service that the MCP server of the plugin connects to. The commands do not execute what they download. This skill ships no code. Its commands read no environment variable, key or credential. They read only files that an earlier step saved fromhttps://emem.dev.
A world model reads a field over an area, often across time. This skill gets that field from emem as a signed artifact. Another party can fetch the same bytes again, or compute them again, and get the same hash.
| Call | What it returns |
|---|---|
POST /v1/band_raster | One field over a bbox at one date, and an emem:raster: token. |
POST /v1/band_composite | A cloud-free median of one band over a date window. Same shape as band_raster. |
POST /v1/band_cube | The same field at several dates: a signed list of raster slices, and an emem:cube: token. |
POST /v1/raster_bundle | 2 to 64 raster tokens as one set, and an emem:rasterset: token. |
POST /v1/raster/resolve, /v1/cube/resolve, /v1/raster_bundle/resolve | The signed record behind a token. With "spot_check": true, the raster route also reads sample pixels back. |
POST /v1/cells_in_bbox | The cell64 addresses in a bbox, in pages. Use it when you want addresses, not a grid. |
Each route has an MCP tool that takes the same JSON body:
emem_band_raster, emem_band_composite, emem_band_cube,
emem_raster_bundle, emem_raster_resolve, emem_cube_resolve,
emem_raster_bundle_resolve and emem_cells_in_bbox. These tools are
not in the short tool list of the plugin. The MCP server runs them by
name through tools/call. If your host calls only listed tools, or has
no MCP, send the body to the REST route. The steps below use REST.
The receipt does not sign a pixel value. It signs a derivation: this
responder made the artifact named artifact_cid from a pinned
Sentinel-2 scene, over an area named aoi_cid, at one time slot.
| Question | Use |
|---|---|
| One value at one place | emem-locate-and-recall |
| Signed per-cell facts inside an area | emem-recall-polygon |
| A picture to look at | GET /v1/scene.png?bbox=w,s,e,n, see emem-field-signals. It is a view, not a signed artifact. |
/v1/band_raster accepts these bands:
| Band | Source | Window cap |
|---|---|---|
s2.B02, s2.B03, s2.B04, s2.B08 (10 m); s2.B05, s2.B06, s2.B07, s2.B8A, s2.B11, s2.B12 (20 m) | Sentinel-2 L2A reflectance | 512 px a side, about 5.1 km at 10 m and 10.2 km at 20 m |
copdem30m.elevation | Copernicus GLO-30 DEM. Open ocean has no tile. | 512 px a side |
forest_change.lossyear, forest_change.treecover2000, forest_change.gain, jrc_gfc2020.forest_2020, jrc_tmf.deforestation_year | Static forest layers | 1024 px a side |
The band list and the caps come from crates/emem-api-rest/src/band_raster.rs.
A larger window gets a refusal that gives the size and the cap. Split
the area into smaller boxes. To ask for a capture date, add
"observed_on": "YYYY-MM-DD". The responder pins the scene that it
used in both cases.
Send this body to POST https://emem.dev/v1/band_raster:
{"bbox": {"min_lat": 32.5699, "min_lng": 77.0328, "max_lat": 32.5727, "max_lng": 77.0362}, "band": "s2.B04"}
Save the answer as raster.json. Then print a summary:
jq '{raster: .tokens.raster, artifact: .artifact.url, cid: .artifact.artifact_cid,
grid: .grid, scene: .derivation.sources[0].id}' raster.json
On 7 November 2026 this call returned in 0.6 s at 00:56 UTC and in 1.3 s at 02:56 UTC:
| Field | 00:56 UTC | 02:56 UTC |
|---|---|---|
grid | 32 x 32 px, 10 m, EPSG:32643 | same |
scene | S2A_MSIL2A_20261104T054241_R005_T43SFS_20261104T085202 | same |
artifact_cid | 77zgrf4hiv4cnzqblgkttrg4jssvh5sghhvdqjjq3wnj77nmgpma | same |
tokens.raster | emem:raster:tllufj6j...:s2.B04:20761:2w5daw7i... | emem:raster:tllufj6j...:s2.B04:20761:tsgxwzhu... |
Each call signs and stores a new derivation record. The record
contains its signing time, so each call gives a new derivation_cid
and a new token. The artifact_cid stays the same while the scene
stays the same. Both tokens resolve. To compare two rasters, compare
their artifact_cid values, not their tokens.
Without a date, the responder picks a recent usable scene. When a
newer scene arrives, the artifact_cid changes too.
Download the file at artifact.url. No MCP tool returns the bytes.
Send a GET to
https://emem.dev/v1/artifacts/77zgrf4hiv4cnzqblgkttrg4jssvh5sghhvdqjjq3wnj77nmgpma
and save the bytes as artifact.bin. Use your own artifact_cid from
step 1 in the URL. The file is data, a header and an array of numbers.
Nothing in it runs.
Then compute the BLAKE3-256 digest of the file with a tool that you already trust. Write the 32 digest bytes in base32: the RFC 4648 alphabet, lowercase, no padding. The result has 52 characters.
| Result | Meaning |
|---|---|
Equal to artifact_cid | The bytes are the bytes that the record names. |
| Different | The bytes changed, or you used a different cid. |
A tool such as b3sum prints the digest as 64 hex characters. Convert
the 32 bytes that the hex stands for, not the hex text. For the cid
above, the hex form is
fff2689787457826e601599539c4dc4ca553f64639ea382530dd9a9ffdac33d8.
On 7 November 2026 the file was 4160 bytes. On 12 November 2026 the responder still served it, and its BLAKE3 in base32 was equal to the cid.
No emem route hashes the whole file for you. The resolve route in step 5 reads only sample pixels. This hash is the check that does not depend on emem: it needs only the bytes and the cid.
The emem repository publishes a reference offline verifier at https://github.com/Vortx-AI/emem/tree/main/tools/verifiers/emem-field-tokens for anyone who wants to read or run it themselves. This plugin ships no code.
The file format is application/x.emem-grid-f32.v1. It has a 64-byte
header, then a little-endian f32 array. The header starts with the
magic EMEMGRD1, then width, height, epsg, nodata, the origin
and the steps. NaN is nodata. A 32 x 32 grid is 64 + 32 x 32 x 4 = 4160
bytes.
/v1/band_composite takes the median of one Sentinel-2 band over a
date window. It removes cloud pixels by their scene class first.
Send this body to POST https://emem.dev/v1/band_composite:
{"bbox": {"min_lat": 32.5699, "min_lng": 77.0328, "max_lat": 32.5727, "max_lng": 77.0362},
"band": "s2.B04", "start_date": "2026-06-01", "end_date": "2026-06-30", "max_scenes": 4}
Save the answer as composite.json. Then print a summary:
jq '{raster: .tokens.raster, members: .member_count, window, grid}' composite.json
max_scenes is 2 to 16, and the default is 12. min_valid_count
(default 1) sets how many clear samples a pixel needs. On
7 November 2026 this call used 4 scenes and returned in 1.4 s. The
result has the same shape as a band_raster result. Check it with
steps 2 and 5.
Send this body to POST https://emem.dev/v1/band_cube:
{"bbox": {"min_lat": 32.5699, "min_lng": 77.0328, "max_lat": 32.5727, "max_lng": 77.0362},
"band": "s2.B08", "observed_on": ["2026-05-15", "2026-06-15", "2026-07-15"]}
Save the answer as cube.json. Then print the members:
jq '{cube: .tokens.cube, count: .member_count,
members: [.derivation.members[] | {tslot, scene: .scene_id, requested_dates,
distance: .requested_date_distance_days, raster: .raster_token}]}' cube.json
A cube contains no new pixels. It is a signed list of member_count
raster slices, one for each scene. You can resolve each slice alone.
If two dates map to the same scene, they become one member. Each
member gives its requested_dates and the distance in days to its
scene. cube_cid is the BLAKE3 of the ordered member derivation cids.
On 7 November 2026 this call returned three members:
| Requested date | Scene date | requested_date_distance_days |
|---|---|---|
| 2026-05-15 | 2026-06-10 | 26 |
| 2026-06-15 | 2026-06-30 | 15 |
| 2026-07-15 | 2026-08-03 | 19 |
A cube member is not a reading on the requested day. When you report a member, give the requested date and the distance.
For a raster token, send it with spot_check to
POST https://emem.dev/v1/raster/resolve:
{"token": "emem:raster:tllufj6jxg3cpuucznj4h75ng3lelg2ki3yb5whw6ggdkzt2gocq:s2.B04:20761:2w5daw7ir2r53u7to6rrz7pcuwa2aj6g2n2ujmkkmw4iwihkj5bq", "spot_check": true}
Read resolved, artifact.url, receipt.field, spot_check.passed
and spot_check.anchors in the answer.
On 7 November 2026 this returned resolved: true, passed: true and
anchors: 5.
| Field | Meaning |
|---|---|
resolved | The token matches the signed record. |
artifact.url | Where to download the bytes for step 2. |
receipt.field | The aoi_cid and derivation_cid that the receipt signature covers. |
spot_check.passed | The sampled pixels in the artifact agree with the values in the signed record. |
spot_check.anchors | The number of sampled pixels. |
spot_check.fact_matches_grid | Sampled pixels that also agree with a signed per-cell fact. It is 0 when the store holds no such fact. |
For a cube token, send {"token": "emem:cube:..."} to
/v1/cube/resolve. Read resolved and member_tokens. On
7 November 2026 the cube from step 4 resolved with 3 member tokens.
The responder checks each part of the token against the signed record
before it reads the artifact. If the area, band or date does not
match, you get HTTP 409. For example, a raster token with s2.B08 in
place of s2.B04 returned:
{"code":"invalid_argument","message":"token band `s2.B08` contradicts the signed record's `s2.B04`; refusing to dereference a forged or corrupt handle","schema":"emem.error.v1"}
The resolve route is the responder that checks its own record. To
check the receipt signature, use
emem-verify-receipt on the
receipt in raster.json. That skill also gives the independent
check. Its tag 10 binds aoi_cid and derivation_cid. On
12 November 2026 the server check of a band_raster receipt returned
valid: true, primitive: emem.band_raster and field_bound: true.
Send 2 to 64 raster tokens to POST /v1/raster_bundle:
{"tokens": ["emem:raster:<aoi>:s2.B04:<tslot>:<cid>", "emem:raster:<aoi>:s2.B08:<tslot>:<cid>"],
"purpose": "NDVI inputs"}
The result has an emem:rasterset: token. Check it with
/v1/raster_bundle/resolve. This call stores a new bundle record on
the responder, so this page does not show a live run.
Send this body to POST https://emem.dev/v1/cells_in_bbox:
{"bbox": {"min_lat": 32.5699, "min_lng": 77.0328, "max_lat": 32.5727, "max_lng": 77.0362}, "page_size": 1024}
Read total, count, next_cursor and the first entry of cells[]
in the answer.
On 7 November 2026 this box had total: 1394 cells. The first page
had 1024 cells and next_cursor: 1024. Send "cursor": <next_cursor>
to get the next page. Stop when next_cursor is null. You can send
each page to POST /v1/recall_many with a budget_ms. This call reads
no facts and returns no receipt.
| Case | What happens | What to do |
|---|---|---|
| Window larger than the cap | HTTP 400 with the size in pixels and the cap | Use a smaller bbox, or split it. |
| DEM over open ocean | Refusal: the archive has no tile there | No elevation field exists there. |
| Cold area under load | compute_timeout after the 40 s transport budget | Retry once. |
| Artifact evicted from the store | The derivation record stays. It pins scene, recipe and area. | Send the same body with the same observed_on again. You get the same bytes and a new token. |
| Token parts do not match the record | HTTP 409 invalid_argument | Do not use the token. |
To get NDVI from rasters, fetch s2.B08 and s2.B04 for the same
scene. Compute (B08 - B04) / (B08 + B04) for each pixel. For one cell,
the cloud-gated indices.ndvi fact from recall is already computed.
An emem:raster: token has the form
emem:raster:<aoi_cid>:<band>:<tslot>:<derivation_cid>. The
derivation_cid names the signed derivation record. That record pins
the scene, the recipe and the BLAKE3 of the artifact. So the token
binds the derivation, and through it, the bytes. emem:cube: does the
same over a tslot range and its member slices. emem:rasterset: names
a bundle cid and its derivation.
None of these tokens signs a pixel as a measurement. When one reading
matters, also cite the emem:fact: token of that cell.
emem-multi-agent-handoff has
the full token table.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
raster-data, geospatial, signed-artifacts, emem, grid-artifacts
19 skills in this plugin
/emem-device-tracesReads and checks the signed activity records (OS traces) emem holds for devices such as robots, drones, satellites and sensor hosts. Lists enrolled devices and their assurance tier, and resolves an emem:trace token to its signed OS trace. Re-verifies the trace (segment chain, clocks, required layers, output binding, device signature). Reads the platform registry to say which hardware roots of trust emem admits. Use when a fact or claim is said to come from a device. Use when an agent receives an emem:trace or emem:attestation token. Also use when someone asks if a robot or satellite can prove what it ran. Read-only: it sends and receives JSON, runs nothing it receives, and says plainly what is roadmap./emem-document-evidenceTurns a scanned document into signed, checkable evidence with emem. It runs OCR on an image. Then it parses a pesticide-residue lab report: analytes, results in mg/kg, LOQ, printed MRL, exceedances. Or it parses a land record: owners, parcel ids, areas in hectares, places, dates. Each value carries its line and byte offset, and emem signs each step. Use when an agent must extract fields from a lab certificate, a 7/12 extract, a khasra or a CAR record. Use it when the agent must hand them on with proof of the image and text they came from. It states which hashes and signatures to compute again, so that a third party can check the chain with its own tools and no trust in emem.npx claudepluginhub vortx-ai/emem --plugin ememOther plugins' skills for the same job