Your tool's files
A tool is a folder of plain browser files. The AI Builder writes the folder for you; Download Code, on the Settings page, hands it to you as a zip, and your own editor's agent can upload it back. Nothing in it is compiled, bundled, or installed — what you upload is what runs.
The folder
A typical tool:
my-tool/
├── voshi.json how to load the tool, and what it asks for
├── app.js the entry: defines the custom element
├── styles.css the tool's styles
├── index.html the tool's markup
└── lib/
└── scoring.js another module, imported by app.js
| File | Role |
|---|---|
voshi.json | Required. The project's manifest: which module is the entry, which tag it defines, which stylesheets and templates to load, and what the tool asks for. You write it; Voshi validates it and stores it exactly as written. See voshi.json. |
The entry (app.js) | Required. An ES module that defines your element and calls customElements.define. It is the only file Voshi imports; everything else it loads is what the entry imports or voshi.json names. |
Stylesheets (.css) | Listed in voshi.json, Voshi loads them and adopts them into your element's shadow root before it renders, so your styles apply without you doing anything. A relative url() inside one works; @import does not, so list each stylesheet. See Assets. |
Templates (.html) | Markup fragments — no <html>, <head>, <body>, <script>, or <style>. Listed in voshi.json, you render one with await api.assets.getTemplate('index.html'). One file per view; a view's repeated pieces are <template id> blocks inside it, reached as await api.assets.getTemplate('index.html', 'row'). See Organizing templates. |
Other modules (.js, .mjs) | Imported by the entry or by each other, with relative paths: import { score } from './lib/scoring.js'. The .js extension is required; the browser has no module resolver. A .json file can be imported too: import words from './words.json' with { type: 'json' }. |
| Everything else | Images, fonts, data files. Reach one with api.assets.url('map.png'), or read a data file with await api.assets.getJSON('words.json') / await api.assets.getFile('notes.txt'). |
Everything in the folder is uploaded, at its own path. Left out on purpose: dotfiles and dot-folders (.git, .env), node_modules, __MACOSX, and AGENTS.md. Anything else you leave in the folder — a README, a scratch preview.html — is published with the tool, so delete what you don't want served. Nothing has to be listed except what voshi.json names.
Limits
| Limit | |
|---|---|
| One file | 10 MB |
| The whole tool | 50 MB, 200 files |
| The upload | 25 MB once zipped. The dashboard zips the folder for you, so this only matters for large media that does not compress. |
voshi.json | 64 KB |
| Stylesheets and templates together | 20, because every one is fetched on every launch |
| Paths | Letters, digits, ., _, -; no name starting with -; at most 4 folders deep. Two paths that differ only in case are refused. |
voshi.json
voshi.json sits at the root of the folder and says how Voshi should load the tool, and what the tool asks for beyond that. It is your file: the AI Builder writes it with the rest of the code, a coding assistant maintains it from AGENTS.md, and you can edit it by hand. Voshi validates it when you upload, stores it exactly as written, and reads it on every launch. It never fills anything in, so an upload without one, or with one that leaves out the entry or the tag, is refused with a message naming the key. It does not list the tool's files, and it does not declare the tool's locations, which live on the dashboard's Locations tab.
{
"manifest_version": 2,
"app": {
"entry": "app.js",
"tag": "flashcard-drill",
"modules": ["lib/scoring.js"],
"styles": ["styles.css"],
"templates": ["index.html"]
}
}
| Key | Meaning |
|---|---|
manifest_version | 2. Leave it out and 2 is assumed. |
app.entry | Required. The entry module. |
app.tag | Required. The custom element tag the entry defines. An entry that visibly defines another tag is refused. |
app.modules | Optional. Modules to preload beside the entry, so the import graph loads at once rather than a level per round trip. A module not listed still loads when imported. |
app.styles | The stylesheets to load, in order. Leave it out, or [], for none. A stylesheet not listed here is never loaded. |
app.templates | The templates to load. Leave it out, or [], for none. Same rule: list every template you use. |
Any file the app section does not name is still uploaded and reachable by its path, so images, fonts and data files need no listing. Keys Voshi does not know at the top level are kept and ignored.
What the tool asks for
Three more sections ask for things a tool may not do by default. Each is a list, and each item carries a reason: one sentence a reviewer checks against the code. They go into review with the version, so adding or changing one is a change to review. Ask only for what the code uses, and leave a section out when the tool needs none of it.
{
"manifest_version": 2,
"app": { "entry": "app.js", "tag": "flashcard-drill" },
"members": [
{ "field": "name", "reason": "The gradebook lists students by name." }
],
"external": [
{ "url": "https://api.example.com/v1/", "uses": ["connect"], "reason": "Feedback comes from the example API." }
],
"notify": [
{ "recipient": "instructor", "reason": "Tells the instructor when an essay is ready to grade." }
]
}
| Section | Each item | What it allows |
|---|---|---|
members | field: name or email | Showing that fact about course members with the <voshi-member> element. |
external | url, uses, reason | The tool's page reaching that URL. Without it, the page reaches Voshi and nothing else: the browser refuses every other request. |
notify | recipient: instructor or student | Sending messages to course staff, or to students. |
An external URL is https, with no query, fragment, or password. A URL ending in / covers everything below it, any other covers exactly itself, and a host written *.example.com covers its subdomains. Its uses say what the page does with it:
| Use | What it opens |
|---|---|
connect | fetch, XMLHttpRequest, WebSockets |
assets | Images, fonts, audio and video, stylesheets |
frames | An <iframe> of that page |
There is no use for scripts: everything the tool runs is in its folder. The same list is where a message may link.
A locations key in the file — the way tools declared them before October 2026 — is ignored like any other unknown key; the locations are managed on the Locations tab.
Editing the code yourself
The AI Builder is one way to write a tool, not the only one. The code it produces is ordinary and readable, and the loop for editing it elsewhere runs through your own editor's AI agent, connected to Voshi's MCP server (see Editor Agents); the dashboard has no upload button of its own.
Download Code, on the Settings page, gives you the draft as a zip; or, once your editor is connected, ask its agent to fetch the tool's code into a folder. Either way the folder holds an AGENTS.md written for a coding assistant: it states the rules of a tool, lists the tool's locations, and says what the platform will refuse. Point Claude Code, Cursor, or whatever you use at the folder and it knows what it is editing. The file is skipped on upload, so leave it there.
Any editor. There is no build step, so there is nothing to install or run. For layout work, AGENTS.md includes a small preview.html you can serve from the folder with any static server; grades, storage, members, and messages only work in a real launch, so test those in the Sandbox.
Ask the agent to upload the folder (the one with voshi.json at its root). The upload replaces the draft, and the Running Tool panel reloads. If the upload is refused, the message names the file and the rule — a missing import, a bare module name, a stylesheet voshi.json names that is not in the folder, an entry that defines a different tag than voshi.json says — and the agent can fix it and try again.
Every upload replaces the whole draft. The previous draft is gone; there is no history of drafts. Keep your own copy of code you care about, and publish when a draft is worth keeping — a published version is permanent.
The api.assets rule
Your files are served from a directory named by their content hash, so every upload and every version lives at a different address. Never write an absolute URL to one of your own files, never save one in storage, and never fetch styles.css or index.html yourself: Voshi has already loaded them. Use api.assets — getTemplate(), getJSON(), url() — and the right copy is always the one you get. A relative import, new URL(name, import.meta.url), and a relative url() in a stylesheet all resolve to the running copy too.
What the platform refuses
These are the upload's own messages, so you can recognize them:
The upload has no voshi.json at its root: the file that says which module is the entry and which custom element tag it definesvoshi.json is not valid at app: 'tag' is a required propertyvoshi.json names styles.css, which is not in the uploadapp.js imports ./lib/cards.js, which is not in the uploadapp.js imports ./styles.css: the page loads stylesheets itself (voshi.json app.styles)app.js imports 'lit', a bare module name, and nothing on the page can resolve one: import your own files with a relative path (./lib.js), and do not use packages or CDNsapp.js imports ../../x.js, which is outside the toolvoshi.json says app.tag is 'my-tool', and app.js defines 'other-tool': make them the samevoshi.json: app.js is in both app.entry and app.modules; list it once (the entry is never also a module)voshi.json says manifest_version 3, and this platform reads version 2. Write the file to version 2.voshi.json is not valid at members/0/field: 'picture' is not one of ['name', 'email']voshi.json: members asks for name twice; list it oncevoshi.json: external url 'https://api.example.com/?q=1' has a query or fragment; give the path onlyvoshi.json is not valid at notify/0/recipient: 'staff' is not one of ['instructor', 'student']App.js and app.js differ only in case; rename one of themmedia/video.mp4 is larger than 10 MB/The tool is larger than 50 MB in total