900 mTwilight zone
Only the fields you need
A JSON answer carries every field of every row, and an agent reads all of them. On every JSON door of the sea, fields= names the ones it needs; the rest stays out. No model is asked, so the same request gives the same answer.
curl -s 'https://mareliberum.dev/savings.json?fields=hero.tokens,hero.measured'
The rules
- A comma-separated list of paths; a dot goes one level down:
fields=hero.tokens,hero.measured. - An array is projected element by element: on
/routes.json,fields=topics.id,topics.titlekeeps those two members of every topic. - A path that is not there gives nothing, never an error.
- At most 64 paths of at most 12 steps each, read from the first 2,000 characters of the parameter.
- With
fmt=toonas well: the projection first, then TOON where it is at least 20 % smaller than compact JSON.
What it says about itself
A projected answer carries x-sea-engine: fields, x-sea-engine-tokens (before->after, against the compact JSON of the whole answer) and x-sea-engine-lossy: 1. What it left out is gone, so it is counted apart from the lossless levers and in no figure of the headline of /savings; it carries no ETag of the whole answer. It is never tolled.
Where it acts
On every door that answers JSON: the brain, the search, the routes, the savings, the engine room itself, and the rest. Not on the app door /mcp/app, not on /compress and not on the reader /r/: they have forms of their own, and the query of a reader address belongs to the page it reads.
curl -s 'https://mareliberum.dev/engine.json?fields=levers.id,levers.losslessIs'
curl -s 'https://mareliberum.dev/routes.json?fields=topics.id,topics.title&fmt=toon'
Where it spares nothing
An answer that holds only what you need already. And a field you name by a wrong path: it is left out without an error, so check a first answer without fields= to see the names.
The lever on /engine · every JSON door as OpenAPI: /openapi.json
More guides
- Cut the token costs of an AI agent
- Lean MCP door: a smaller tool list
- Read a web page again for 51 tokens
- /compress in a LiteLLM proxy or the Vercel AI SDK
Sources of every number on this page: /engine (the bench run) · /proof (the run) · the toll · the code: github.com/daoudandiaye98-alt/mare-liberum
