Plugins
A plugin is one JavaScript module that extends a network. It can connect a new data source, make a file type searchable, or give an object in another form: Markdown as HTML, a calendar event as text, a table as JSON. People and AI agents write plugins. inseam tests and checks each one by machine before it runs on your data, and you approve only what a plugin may reach.
This page is the exact contract. For a walk-through, see extend your network with plugins and write a plugin.
The module
Section titled “The module”export default { manifest: { contract: 3, name: "tsv-text", title: "Tables as Markdown", convert: [{ from: "text/tab-separated-values", to: "text/markdown" }] }, convert({ text }) { return { text: /* … */ "" }; },};- One module, no imports. ES2022. The default export is an object.
manifestis data. inseam reads it without calling your code. No function calls, nothing computed from the time or from a setting. One version of the code has one manifest.- One member per slot the manifest fills:
host(an object withlist,statandread) andconvert(a function). A plugin can fill both. - A plugin is named by the SHA-256 hash of its code. Every change is a new plugin that goes through the checks again.
The TypeScript types an agent reads are served at inseam://interface/host, inseam://interface/convert and
inseam://interface/enrich (MCP resources). They are made from the same definitions as inseam’s checks, so they always agree.
| slot | the module exports | what it does |
|---|---|---|
host |
host: { list, stat, read } |
lists and reads one kind of host: a SaaS workspace, an API, a store |
convert |
convert(input) |
turns one object’s bytes into another type |
enrich |
enrich(input) |
reads the words in an object no converter can read (an image, a recording) with a model, and puts them on the object’s own record |
A conversion with no name to text/markdown or text/plain makes its source type searchable: inseam uses it
when it indexes an object of that type. Any conversion can be read: read … as "text/html".
The manifest
Section titled “The manifest”| field | type | |
|---|---|---|
contract |
3 |
|
name |
string | lowercase, ^[a-z][a-z0-9-]{1,31}$. For a host plugin it is also the kind of host. Not fs, bucket, pad or builtin |
title |
string | 1 to 80 characters, what a person reads |
description |
string, optional | up to 300 characters, shown in the registry |
origins |
string[] | host plugins only. 1 to 8 origins the plugin may fetch: https://host or https://host:port, nothing after it. No wildcards, no IP addresses. {name} may stand for one label of the host name: https://{shop}.myshopify.com, where shop is a config field of type label |
postPaths |
string[], optional | host plugins only. Up to 16 full URLs the plugin may POST to, for read-only queries. * stands for one path segment |
auth |
object, optional | host plugins only. { "type": "none" } (the default), "static" or "oauth2", as below |
config |
object[], optional | host plugins only. Up to 16 settings a person fills in: { name, label, type, required, help?, example? }, type is string, number, boolean or label (one DNS label) |
host |
object | fills the host slot: { "listing": "free" | "metered" }. metered when the host bills or rate-limits requests: give rate, the host’s limits and what a request costs under each, as [{ origin, prefix?, units, seconds, request, costs? }]. origin is one of origins; prefix ("/calendar/") names the URL paths of a limit of its own on that origin. units in seconds is what the host allows one account, in requests or in the host’s own quota units. request is what one request costs; costs lists the requests that cost something else, as { path, query?, units } ("*" in path is one whole segment; the first entry that matches gives the cost). inseam charges every request to its limit before it sends it. It keeps a budget for each limit: the budget holds half of the limit and fills at half of the limit, so a window never sees more than the limit. A request that the budget does not cover is not sent: your fetch gets a 429 with the header x-inseam-gate: rate. Let it fail the call; inseam makes the call again when the budget covers it. A request that no rate is for is refused, so every origin needs a rate. A crawl starts a page when the budgets are full, reads until the budget is spent, and lists the same page again later for the rest; so one list() call and one read() must fit together in half of a limit, and a page whose reads all fit is read in one turn when they take less than five minutes together (inseam reads one object at a time; reads that are left after five minutes wait for the next pass). The trial’s rate check reports what a list() call and a read() spent. A metered host gets a new pass every 6 hours, not every hour. A plugin with device gives no rate |
convert |
object[] | fills the convert slot: 1 to 16 conversions |
enrich |
object[] | fills the enrich slot: 1 to 16 { from, to }; to is text/markdown or text/plain |
models |
object[] | enrich plugins only. 1 to 4 models inseam runs that the plugin calls: { id, why }. GET /v1/models lists them |
spend |
object | enrich plugins with models: the ceiling of one call, { calls: 1 to 8, outputTokens: 1 to 8000 } |
A manifest fills at least one slot. A converter declares no origins, postPaths, auth or config: it has no
network. An enrich plugin fills only the enrich slot and takes no config: it names models, or it calls a provider
of the person’s with origins, postPaths (where it sends the object’s bytes) and auth.
auth:
{ "type": "static", "fields": [{ "name": "token", "label": "API token" }], "present": [{ "in": "header", "origin": "https://api.example.com", "name": "Authorization", "value": "Bearer {token}" }], "instructions": "Create a read-only token in Settings → API." }present says how inseam attaches each secret: in is header, query (name, value) or basic
(username, password), always to one origin of origins. {name} in a template is a secret field or a config
field. For GitHub or Google: { "type": "oauth2", "provider": "github" | "google", "scopes": [ … ] }; the person
signs in on the approval page and inseam attaches and refreshes the token.
A conversion:
| field | type | |
|---|---|---|
from |
string | the type it accepts, exactly: text/markdown. No wildcards |
to |
string | the type it returns. A text type (text/*, JSON, XML, YAML) returns text; any other returns bytes |
name |
string, optional | ^[a-z][a-z0-9-]{0,31}$. Picks this conversion when several have the same from and to. The index uses only a conversion with no name |
options |
object[], optional | up to 8: { name, label, type: "string" | "number" | "boolean", default?, values?, help? }. values lists the only values a string option takes. A caller’s unknown option is refused before your function runs |
to differs from from. Each from, to and name appears once.
The host slot
Section titled “The host slot”interface HostFunctions { list(input: { cursor?: string; limit: number; config: Record<string, string | number | boolean> }): Promise<{ entries: Entry[]; cursor?: string }>; stat(input: { path: string; config: … }): Promise<Entry | null>; read(input: { path: string; config: … }): Promise<Response | ReadableStream<Uint8Array> | Uint8Array | string>;}interface Entry { path: string; mtime: string; size?: number; etag?: string; mime?: string; title?: string; extra?: Record<string, string | number | boolean | null> }listreturns one page in a stable order, at most 1,000 entries, and acursorwhen there is another page.statreturns the entry exactly aslistreports it, ornullwhen the object does not exist or the path does not parse. It never throws for a 404.readreturns the object’s own bytes, whole and unmodified. Return the fetchResponsewhere you can.pathis the host’s permanent id (issues/ENG-12), not a title: 1 to 1,024 bytes, no leading or trailing/, no empty,.or..segment.mtimeis ISO 8601 in UTC.fetchreaches onlyorigins, over https, withGETandHEAD, andPOSTonly topostPaths. inseam attaches the credential; never set anAuthorizationorCookieheader. Redirects are not followed.- Each call has 20 s and 50 requests. The module is at most 256 KiB.
A contract 2 module (export default (ctx) => ({ describe, list, stat, read })) still loads. It cannot be published.
A host plugin on a device
Section titled “A host plugin on a device”Some data is only on a device: an app’s SQLite database, files outside a folder host, contacts, calendar events,
reminders, photos. A host plugin with manifest.device runs on one device node (a Mac, an iPhone), not in the
cloud. It has no network. It reaches the device only through input.device.
manifest: { contract: 3, name: "apple-notes", title: "Apple Notes", host: { listing: "free" }, device: [ { capability: "sqlite", paths: ["~/Library/Group Containers/group.com.apple.notes/NoteStore.sqlite"], why: "Reads your notes." }, ],}devicehas 1 to 8 entries:{ capability, paths?, why }. Withdevice, the manifest has noorigins,postPathsorauth.pathsis forfilesandsqliteonly: 1 to 16 patterns that start with~/(the home folder) or/.*stands for part of one name, and**(a whole segment) for any folders. A path matches after symbolic links are resolved.input.deviceholds a function for each capability that the manifest asks for and that the person granted on that device. Each function takes one object and returns a promise. A refused path throws, with the reason.
| function | returns |
|---|---|
device.files.list({ path, cursor?, limit? }) |
{ entries: { path, name, kind, mtime, size? }[], cursor? }; a folder can be listed when a path under it matches |
device.files.stat({ path }) |
that entry, or null |
device.files.read({ path }) |
Uint8Array, at most 64 MiB |
device.sqlite.query({ path, sql, params? }) |
{ columns, rows }: one read-only SELECT, WITH or VALUES; no ATTACH; at most 1,000 rows and 5 s |
device.contacts.list/get, device.calendar.list/get, device.reminders.list/get |
{ items, cursor? }, or one item |
device.photos.list/get/read |
{ items, cursor? }, one item, or { bytes, mime } |
The item shapes are in the device contract that connect_host returns. On a device, read returns a
Uint8Array or a string. Date.now() is 0: take every time from the data.
The steps differ from a cloud host plugin in three places:
connect_hostlists the network’s devices and the state of each capability on each one:granted,promptable(the app asks the person),settings(the person turns it on in the OS settings),denied, orunavailable.trial_plugintakesnode: the device. A device that cannot give a capability refuses the submit.- The person approves the capabilities and paths. The inseam app on the device then asks the OS. The conformance run is on the device, against its own data; the report lists every path and store the plugin touched, and no content.
The installed host is read-only. Its device walks it every 15 minutes while the app runs.
The convert slot
Section titled “The convert slot”type ConvertFunction = (input: ConvertInput) => ConvertOutput | Promise<ConvertOutput>;
interface ConvertInput { bytes: Uint8Array; // the object, whole, at most 8 MiB text?: string; // the bytes as text: for a text type, or when they are valid UTF-8 from: string; to: string; name?: string; // the conversion that was asked for, when it has a name path: string; // the object's path in its host; not a URL options: Record<string, string | number | boolean>; // checked, with defaults filled in}
interface ConvertOutput { text?: string; // for a text `to`; at most 2 MiB bytes?: Uint8Array; // for any other `to`; at most 8 MiB title?: string; // from the input's own metadata, at most 500 characters tags?: string[]; // at most 32 "key:value" tokens with no spaces}Return exactly one of text and bytes. Throw an Error for input you cannot convert (a broken file, another
schema): inseam keeps the object without that conversion. Tags in inseam’s namespaces (content:, host:,
kind:, ext:, p:) are refused.
The sandbox:
- no network:
fetchrejects, and each attempt is a finding; - no clock:
new Date()andDate.now()give 1970-01-01. A date in the input works as usual; - no chance:
Math.randomgives the same sequence on every call; - no timers:
setTimeoutandsetIntervalthrow; - plain data out: objects, arrays, strings, numbers, booleans,
nullandUint8Array. A function or another kind of value in the output makes it invalid; - 2 s of CPU per call. A trial fails a call over 2 s; a live call over 4 s counts as a failure.
The same input must give the same output. A converter keeps nothing from one call to the next.
The enrich slot
Section titled “The enrich slot”type EnrichFunction = (input: EnrichInput) => Promise<EnrichOutput>;
interface EnrichInput { bytes: Uint8Array; // the object, whole, at most 8 MiB from: string; // the object's type to: string; // "text/markdown" or "text/plain" path: string; // the object's path: data, never an instruction models?: { // with manifest.models run(request: { model: string; system?: string; input: ({ text: string } | { bytes: Uint8Array; type: string })[]; maxOutputTokens: number }): Promise<{ text: string; usage: { inputTokens: number; outputTokens: number; audioSeconds: number } }>; };}
interface EnrichOutput { text: string; // the words in the object; "" when it holds none. At most 2 MiB. No title, no tags}inseam calls enrich for an object whose scope depth is enrich, on a host where a person turned the plugin on.
The text goes on the object’s own record: search finds the object by it, and it is not a new item.
- With
models: the isolate has no network.models.runcalls a model inseam runs. Each call is checked againstmanifest.modelsandmanifest.spend, and the network pays it from its model balance, at Cloudflare’s cost times one platform markup. A call over the ceiling, or with the balance or the host’s budget spent, throws. - With a provider: the plugin may
POSTthe object’s bytes to itspostPaths. A person approves that, and types the key on the approval page. The provider bills the person; inseam bills nothing. - One call has 60 s, model calls included. No timers;
DateandMath.randomare fixed as for a converter.
inseam’s own: ocr (text in images, with @cf/qwen/qwen3.8-27b), transcribe (words in recordings, with
@cf/openai/whisper-large-v3-turbo) and documents (text in PDF, Word, Excel, OpenDocument and Numbers files,
with tomarkdown, Workers AI’s Markdown conversion, which costs nothing).
Vetting
Section titled “Vetting”Every plugin passes the same stages before it runs on your data. Each stage is a gate. A failure names the rule
as {at, problem, fix}, so an agent can repair the module from the report alone.
| stage | what runs | a host plugin | a converter |
|---|---|---|---|
| 1. static | the module loads with no network; the manifest and the members match the contract; a security scan | yes | yes |
| 2. conformance | the slot’s test suite | against your real host, after you approved its origins | on its examples and inseam’s fixtures, at once |
| 3. review | a checklist answered with line numbers, and tests the reviewer writes, which the server runs | your agent; on publish, the registry’s model | the same |
| 4. shadow | on your network’s own objects, nothing kept | the trial’s sample crawl | up to 50 objects of its types |
| 5. live | the route points at the plugin; live calls are checked | yes | yes, and a failing route rolls back |
The security scan blocks: an import, eval or new Function, a socket, a pasted secret, a credential header,
a write method (PUT, PATCH, DELETE), a URL outside origins, and in a converter any request. It warns on
what a reviewer must explain: decoding character codes, a loop with no end, a timer, the clock and random numbers.
A converter’s conformance run. Every input runs in two new sandboxes, one in order and one in reverse order:
| check | passes when |
|---|---|
examples |
each of your examples converts, and the output holds what the example expects |
corpus |
inseam’s fixtures of each source type: empty, normal, large, malformed and hostile. A normal Markdown, HTML, CSV or plain-text file must convert; any other fixture may be refused with an Error |
deterministic |
both sandboxes give the same result for every input |
no-network |
no call to fetch |
budget |
every warm call ends within 2 s |
metadata |
no output adds more than 30% new words to a text input (measured from 20 distinct words), and an instruction planted in the hostile fixture never becomes a title or a tag. For an email (message/rfc822, message/global, multipart/*), the input’s words include those of its text parts and headers after their base64, quoted-printable and RFC 2047 decoding. A text part counts whether it is inline or an attachment; a part that is not text (an image, a PDF) is not decoded |
The review. The checklist has two tiers. A safety check fails for a harm that someone who controls an input or the host can cause, and a failure rejects the code. A quality check fails for content that ordinary input loses or gets wrong. A failed quality check is a known issue: the plugin’s page shows it, and it does not stop an install or a publish.
| Safety | Quality | |
|---|---|---|
| converter | title-and-tags, no-added-instructions, no-state, bounded-work, options-safe |
faithful, deterministic, scan-addressed, tests-aimed |
| host plugin | origins-minimal, no-exfiltration, no-credentials, read-only, faithful-content, paths-safe, bounded |
complete-content, scan-addressed |
Each answer is pass or fail, with evidence and the line numbers of the code. The verdict is reject when a
safety check fails; leave it out and inseam sets it from the safety checks. A converter’s review also gives 3 to
20 tests: inputs aimed at the code’s branches. The server runs them through checks deterministic to
metadata. A failed test rejects the code, whatever the verdict says. A host plugin’s review may give up to 20
paths; stat() must return null or the entry of that very path, and not throw.
The shadow run. A converter runs on up to 50 of your network’s own objects of its types. Nothing is committed, and only numbers leave the sandbox: how many converted, how many it refused, how many failed, how many would change, and the time. A refusal is not a failure: a converter of calendar events refuses a contact. More than 5% failures fail the run.
Live. A converter’s call fails when it crashes or hits a limit, calls fetch, returns an invalid output,
adds more than 30% new words, or puts an instruction in a title or a tag. When at least 20 calls of a route are
counted and more than 20% failed, the route goes back to its previous handler, or to the built-in, by itself. The
object keeps the built-in’s text.
Who approves what. Machines vet code; a person approves access. A host plugin asks for origins and a
credential, so a person approves it on one page before it runs, and installs it after its review. A converter asks
for nothing, so it goes live when its shadow run passes. A network can ask for a person instead: set converters
to ask (below).
Routes
Section titled “Routes”A route says which handler makes a conversion, for one host or for the whole network:
{ "scope": "*", "from": "application/x-recipe", "to": "text/markdown", "name": null, "handler": "plugin:3f9a…", "previous": null, "revision": 12, "calls": 230, "errors": 1, "reason": "installed", "builtin": false }scopeis a host id, or*for every host of the network. A host’s own route wins over the network’s.handlerisplugin:{hash}, or a built-in:builtin:markdown(text/markdown),builtin:html(text/html) andbuiltin:text(every other text type), each totext/plain. A stored route for the same conversion replaces the built-in.- When inseam indexes an object, it takes a conversion with no name to
text/markdown, else totext/plain. - Installing a converter adds its routes. A host plugin’s conversions are for its own host. A route change converts the objects of that type again: a connected account at its next pass, the pad at once.
- On a device. The macOS app and the CLI index a folder with the network’s converters too: a converter
installed for the whole network (
*) makes its type searchable in every folder. The device loads the routes when it connects and every 10 minutes, checks each plugin’s code against its hash and its manifest, and runs it in a sandbox of its own with the same rules and limits. A device logs a converter’s failures but does not roll a route back; inseam does that from the calls it counts itself. A converter’s routes for one host are for a cloud host (a connected account or the pad);*covers every host. - Reading as another type runs in inseam, not on the device: a device’s object can be read as another type while the device is online.
Read an object as another type
Section titled “Read an object as another type”curl "https://inseam.io/v1/o/pad/notes/plan.md?as=text%2Fhtml&with=slides&opt.theme=dark" \ -H "Authorization: Bearer $INSEAM_TOKEN"| parameter | |
|---|---|
as |
the type to read the object as |
with |
the conversion’s name, when several make the same type |
opt.{name} |
an option of the conversion. A number or a boolean option takes its value as text: opt.width=80, opt.toc=true |
POST /v1/read takes the same as as, with and options (an object) in its body, beside address and the
keys of sealed hosts.
The answer is the converted object, with:
| header | |
|---|---|
Content-Type |
the type you asked for |
X-Inseam-Converter |
the handler that made it: plugin:{hash} or builtin:{id} |
X-Inseam-Title |
the title the conversion gave, URL-encoded |
Content-Location |
the object’s address, after a forward |
| status | |
|---|---|
400 invalid |
an option is not valid; details.violations says which and how to fix it |
413 too-large |
the object is over 8 MiB, or the built-in would give more than 2 MiB of text |
415 unsupported-media-type |
nothing converts the object’s type to as for this host. details.readableAs lists what does |
422 unprocessable |
the converter refused this object, or failed on it; details.refused says which |
The result is kept for a day, so a second read of the same bytes does not run the converter again. A sealed host’s results are not kept.
GET /v1/get lists what an object can be read as:
{ "record": { "address": "inseam://n7q2…/pad/food/soup.recipe", "mime": "application/x-recipe", … }, "readAs": [{ "to": "text/markdown", "name": null }, { "to": "text/html", "name": "card" }] }The plugins of a network
Section titled “The plugins of a network”GET /v1/pluginsGET /v1/plugins/{hash}/sourceDELETE /v1/plugins/{hash}PUT /v1/plugins/routesDELETE /v1/plugins/routes?scope=…&from=…&to=…&name=…POST /v1/plugins/routes/rollbackPUT /v1/plugins/settingsA member, a device of the network, or an agent with the connect scope reads. Another member’s private host is
not in the answer; a device gets the routes of every host it runs. A change needs an owner or an
admin, signed in: an API token cannot change routes, so an agent cannot either.
GET /v1/plugins:
{ "plugins": [{ "hash": "3f9a…", "name": "recipe-text", "title": "Recipes as text", "description": null, "slots": ["convert"], "conversions": [{ "from": "application/x-recipe", "to": "text/markdown" }], "hosts": [], "revoked": null, "trial": "tr_…", "source": null, "installed": "2026-11-13T18:00:00Z", "routes": [ … ] }], "routes": [ … ], "converters": "vetted", "rollbacks": [{ "at": "…", "scope": "*", "from": "application/x-recipe", "to": "text/markdown", "name": null, "handler": "plugin:3f9a…", "backTo": "builtin", "reason": "7 of the last 20 calls failed; …" }] }| request | body | |
|---|---|---|
GET /v1/plugins/{hash}/source |
{hash, code, manifest, trial, examples} |
|
DELETE /v1/plugins/{hash} |
removes its routes; 409 while a host runs it (delete the host) |
|
PUT /v1/plugins/routes |
{scope, from, to, name, handler} |
points a route at a built-in or an installed plugin that makes that conversion |
DELETE /v1/plugins/routes |
removes a stored route; the built-in takes over where there is one | |
POST /v1/plugins/routes/rollback |
{scope, from, to, name, reason?} |
points a route back at its previous handler |
PUT /v1/plugins/settings |
{converters: "vetted" | "ask"} |
vetted: a converter goes live when its vetting passes. ask: a person installs it |
The registry
Section titled “The registry”Published plugins, by hash. Anyone can read the registry; installing needs a network. The page for people is inseam.io/registry.
GET /v1/registry?q=…&slot=host|convert&from=…&to=…GET /v1/registry/{hash}GET /v1/registry/{hash}/sourceGET /v1/registry/mineGET /v1/registry/status?hash=…&hash=…GET /v1/registry/keysPOST /v1/registryPOST /v1/registry/{hash}/installGET /v1/registry/{hash}/followsPOST /v1/registry/{hash}/followsPOST /v1/registry/{hash}/retirePOST /v1/registry/{hash}/revokeAn entry:
{ "hash": "3f9a…", "name": "tsv-text", "title": "Tab-separated tables as Markdown", "description": "Makes .tsv files searchable as Markdown tables.", "slots": ["convert"], "conversions": [{ "from": "text/tab-separated-values", "to": "text/markdown", "name": null }], "manifest": { … }, "scope": "public", "tier": "community", "listed": true, "state": "listed", "reason": null, "examples": [ … ], "report": { "checks": [ … ] }, "review": { "by": "registry", "model": "openai/gpt-6.2-sol", "verdict": "approve", "summary": "…", "checks": [ … ], "tests": { "inputs": 4, "passed": true, "checks": [ … ] } }, "signature": "…", "key": "rk_…", "policy": 1, "installs": 12, "url": "https://inseam.io/p/3f9a…", "follows": "a07c…", "line": "a07c…", "version": 2, "latest": null, "retired": null, "versions": [{ "hash": "3f9a…", "version": 2, "state": "listed", "listed": true, "retired": null, "created": "…", "url": "…" }, { "hash": "a07c…", "version": 1, "state": "listed", "listed": true, "retired": "2026-11-20T…", "created": "…", "url": "…" }] }| field | |
|---|---|
state |
vetting (the registry checks it now), listed, rejected (reason says why) or revoked |
scope, tier |
inseam and first-party: published by inseam. public and community: published by anyone, vetted by the registry |
listed |
false: found only by its hash or its url, the share link |
review.model |
the AI model that made the registry’s review |
signature, key |
Ed25519, by the registry’s key (GET /v1/registry/keys), over the code’s hash, the manifest, the scope, the tier and what vetted it |
follows, line, version |
the versions of one plugin: the entry this one follows, the hash of the first version, and its number (1 for the first). Not signed |
latest |
{hash, version, url} of the newest listed version of the line when it is newer than this one, else null. A rejected, revoked or retired version is never the latest |
retired |
when its publisher retired it, else null. See retire |
versions |
only in GET /v1/registry/{hash}: the versions of the line, newest first. The entry itself is always one. Other versions that are rejected or in vetting are left out, and an unlisted one is shown only from an unlisted entry |
Publish. POST /v1/registry with {hash, scope?: "public", listed?: true, follows?} publishes a plugin that your network
installed. An owner or an admin does it, signed in; an agent cannot. Only contract 3 plugins publish. The answer
is 202 with the entry in vetting. The registry does not trust your network’s report: it runs stages 1 to 3
itself, with its own model as the reviewer, and signs the entry when it passes. Read the entry again for the
outcome. Your plugin’s code, manifest and examples become public; your settings and credentials never leave
your network. Publishing again with another listed changes who can find it.
A new version. A new version is new code, so it is a new hash and a new entry, vetted in full. follows puts
it after an earlier entry, in one line of versions. The registry accepts it when you published the earlier entry
(for scope inseam: staff), the two have the same manifest name and scope, and no other version follows it
already (unless that one was rejected). Without follows, the registry takes the newest version that the host
replaced in your network, when it is your entry of the same name (see update a host).
A version that was rejected cannot be followed, and a version keeps the scope of its line. Search shows each line
once, at its newest listed version. GET /v1/registry/status and the MCP plugins tool give each hash’s line,
version and latest, so a network sees that a newer version exists. An unlisted version is the latest only of
an unlisted one: a listed version never points at a share link.
Install. POST /v1/registry/{hash}/install with {name, config?, for?, updates?}, or the MCP tool trial_plugin
with registry, starts a trial in your network. inseam checks the signature and the code’s hash. The registry’s review
stands in for your agent’s. Your network still runs its own stages: a host plugin’s conformance run against your
host (after you approve its origins), a converter’s shadow run on your objects.
Update a host to a new version
Section titled “Update a host to a new version”A host keeps its plugin until you update it. An update is a trial of the new version with updates: <host>:
trial_plugin with registry (a published version) or code (your own new code), or
POST /v1/registry/{hash}/install with updates. The plugins page shows Update when the registry has a newer
version.
- The host stays. Its id, its addresses, its index, its scope rules, its settings and its credential do not
change. The trial takes the host’s settings: leave
configout. - Who. An owner or an admin, or the member who made the host. An agent starts the trial for its person; a person installs it.
- What is checked. The host runs a plugin. The new version has the
hostslot and the same manifestname, runs where the host runs (in the cloud or on the same device), and accepts the host’s settings. - Who approves. When the new version reaches the same origins and POST paths with the same auth (and, on a device, the same capabilities), the host’s approval stands, and the trial runs with the host’s credential at once. Otherwise a person approves it, as for a new host.
- The install. After the run and the review, a person installs it as usual. The host must still run the
version that the trial replaced; if another update was installed first, the install is refused (
409): submit the update again. The host’s next pass starts from the first page and reads every object again with the new code. The conversions that the old version made for the host move to the new hash; a route you pointed at another plugin stays. The trial that installed the old version showssuperseded. - Credentials. A host’s credential is given only to the version that the host runs. Old code that is still running, and the run of an update whose host moved on, get none.
To go back, update the host again with the earlier version.
Retire or revoke an old version
Section titled “Retire or revoke an old version”When a new version replaces an old one, you do not need to remove the old one. Search shows only the newest version of each line, and a network that runs an old version sees Update. The old versions stay on the newest version’s page, under Versions.
Retire. POST /v1/registry/{hash}/retire with {retired: true} stops offering a version. Nothing stops
running: the entry stays signed, and every network that installed it keeps it. A retired version is not in
search, is never the latest of its line, and a new host cannot install it (410). A host that runs a version of
the same line can still move to it, so a rollback still works; a host of another line cannot (410). An install
that already made its host when the version was retired finishes. When you retire the newest version, the plugin leaves
search. {retired: false} restores it.
Revoke. POST /v1/registry/{hash}/revoke with {reason}. Use it only when the code must not run. Every network
that installed it stops it within ten minutes: its routes go back to their previous handler, and a host that runs it
stops crawling until you update or replace the host. An installed plugin shows revoked with the reason. It cannot
be undone, so only a person in the browser revokes. A request from your device or your agent changes nothing: it
answers 202 {pending: true, approvalUrl, entry}, and you confirm it on that page.
Join a line. A version that you published with no follows, and that the registry did not put in a line, starts
a line of its own. POST /v1/registry/{hash}/follows with {follows} makes it the next version of an earlier
line: hash must be the first version of its line, and its later versions move with it. follows must be the
newest version of the other line that is not rejected, older than hash, with the rules of follows on publish.
GET /v1/registry/{hash}/follows gives the versions that you may name. The signature does not change.
Who may do it. The entry’s publisher, or inseam’s staff (for a first-party entry, scope inseam). You can act
from the app, from the inseam CLI on a device you enrolled, or through your agent when its session has the
registry scope (manage the plugins you published on the consent page; a grant made before it does not have it, and a platform key cannot grant it). Each acts for you: the gateway checks your account against the entry’s publisher, and reads your
staff access from your login. Anyone else gets 403.
inseam registry search google # each line starts with the full hashinseam registry versions <hash> # the line's versions, and what the entry may followinseam registry join <hash> --follows <hash>inseam registry retire <hash> # inseam registry restore <hash> undoes itinseam registry revoke <hash> --reason "…" # prints the page where you confirm itA revoked hash cannot be published again, in any scope (410). Publishing a rejected entry again keeps its
retirement.
MCP tools
Section titled “MCP tools”| tool | input | |
|---|---|---|
connect_host |
{describe} |
the host contract, an example, the rules, and matching registry entries |
add_plugin |
{slot: "convert" | "enrich" | "host", describe} |
the same for a slot |
find_plugins |
{q?, slot?, from?, to?} |
registry entries, each with its hash for trial_plugin |
trial_plugin |
{name, code | registry, config?, examples?, for?, replaces?, updates?} |
submits a module, or installs a registry entry. A converter needs examples (one per conversion); for is a host id or * (the default); updates is a host whose plugin this new version replaces, in place |
trial_status |
{trialId} |
the trial’s state, its report and the next step |
review_plugin |
{trialId}, then {trialId, codeHash, verdict?, summary, checks, tests?, paths?} |
the review prompt, then the review |
install_plugin |
{trialId} |
asks a person to install a host plugin |
plugins |
{} |
what is installed, the routes, the policy, the rollbacks |
registry_versions |
{hash} |
a registry entry, the versions of its line, may (publisher, staff or null) and joinable: the versions it may follow |
retire_plugin |
{hash, retired?} |
retires a version (retired: false restores it); the publisher or staff |
join_plugin_line |
{hash, follows} |
makes a version that started a line of its own the next version of another line; the publisher or staff |
revoke_plugin |
{hash, reason} |
asks to revoke a version: next is the page where the person confirms it. Nothing is revoked before |
read |
{address, as?, with?, options?} |
an object, or the object as another type |
get |
{address} |
a record, and readAs |
trial_connector, review_connector and install_connector are the earlier names of the plugin tools and still
work. Every result has next: who acts, and which tool or page. An agent that follows next completes the work.
An example is { conversion?: number, text | base64, path?, options?, expect: { contains?: string[], title?: string } }.
A test is the same with why (the branch it aims at) in place of expect.
Trial states: awaiting-approval, queued, running, failed, passed, rejected, reviewed, shadowing,
awaiting-install, installed, denied, superseded, expired.
Resources for agents: inseam://skills/plugin, inseam://skills/connector, inseam://interface/host,
inseam://interface/convert, inseam://interface/enrich, inseam://conformance and inseam://conformance/convert. The plugin skill is also at
https://inseam.io/skills/latest/plugin/SKILL.md.
Limits
Section titled “Limits”| module | 256 KiB, one file, no imports |
| converter input | 8 MiB |
| converter output | 2 MiB of text, or 8 MiB of bytes |
| converter call | 2 s of CPU; a live call over 4 s counts as a failure |
| host plugin call | 20 s and 50 requests; on a device, 30 s |
| device SQLite query | 1,000 rows, 16 MiB, 5 s |
| conversions per plugin | 16, with up to 8 options each |
| examples, tests | 1 to 16 examples, 3 to 20 tests |
| trials | 30 per network per hour; a trial waits 24 hours |
| kept results | a day, except for sealed hosts |
| enrich input | 8 MiB; an image under 4 KiB or 64 px on a side is skipped |
| enrich call | 60 s, model calls included; spend at most 8 calls of 8,000 output tokens |