apps
Build a data app that runs on autario (HTML with the autario.js SDK on your own data), upload its code, set its manifest, save views, and publish or unpublish it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "apps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Optional inline data belonging to the artifact. | |
| name | No | create: Display name of the app, free text up to 80 characters; the same name as another app is fine. The returned app_id is the name lowercased plus a short random part and never changes on a rename. update_manifest: New display name. Omit to keep the current one. | |
| spec | No | The saved view/configuration as JSON (e.g. a Plotly spec, a filter set). | |
| tier | No | Runtime model. 2 = sandboxed custom app (the default for anything you build here). Only set this if you know you need 1. | |
| type | No | Your own label for the kind of artifact, e.g. "chart", "report", "board". Required when creating. | |
| files | No | A multi-file app: index.html plus every file it loads by relative path (e.g. "app.js", "css/style.css", "img/logo.png", "about.html"). Paths are relative, use "/", no "..". Allowed: html, js, mjs, css, json, svg, png, jpg, webp, woff2. Max 50 files, 1 MB each, 2 MB in total. Put index.html in this list or pass it as content. Links between the HTML pages work, every page gets autario.js. | |
| share | No | Let a report of this app be opened on a secret read-only link, e.g. {"subjects":["account"],"sections":["meta","report"]}. "subjects" says WHOSE data a link points at and may only name kinds autario can resolve ("account" = the owner of the link, which is what a third-party app wants); "sections" is the list a link may request, and anything outside it is refused. Omit the key to leave the current setting alone. An app that has never declared this cannot be shared at all. The owner still decides per link who may open it: anyone with the URL, only signed-in people from named company domains, or only named addresses. | |
| shelf | No | The app store shelf the app sits on, one id: search, analytics, social, ads, commerce, financial_markets, banking_accounting, crm, productivity, developer, ai, public_data. Pick the one that matches what the app is about (a dashboard of Instagram posts is social, an order report is commerce). Optional while the app is private; apps action "publish" refuses with shelf_required until it has one. Any other value is refused with bad_shelf and the allowed ids. | |
| title | No | Human title shown in the app and in my_workspace action "app_artifact". | |
| action | Yes | Which operation to run. create = a new private app, needs name; upload_bundle = replace the app's HTML or files, needs app_id; update_manifest = name, datasets, shelf, sharing, needs app_id; write_artifact = save a view or result of the app, needs app_id; publish = set visibility unlisted or public, needs app_id; unpublish = take the app back to private, needs app_id. | |
| app_id | No | upload_bundle, publish, unpublish: Id of an app you own, as returned by apps action "create". An app you do not own answers not found. update_manifest: The app id returned by apps action "create". write_artifact: The app the artifact belongs to. | |
| content | No | create: The app's entry document when entry_kind is "upload": one HTML file, or index.html when you also send files. It runs in a sandbox with no outbound network: read autario data through autario.js, not through fetch to third parties. upload_bundle: The entry document itself (one HTML file), or index.html when you also send files. Give content, files, or both. | |
| tagline | No | create: One line saying what the app does, max 200 chars. Worth writing: it is what a user reads in the app store, and an app cannot be indexed without one. update_manifest: One-line description, max 200 chars. | |
| version | No | upload_bundle: Optional version label this bundle belongs to. update_manifest: Free-text version, e.g. "1.2.0". Bundles are stored per version. | |
| datasets | No | Ids of the user's OWN datasets (connector tables, uploads; get them from my_workspace action "overview") this app may read through autario.js. Everyone the owner shares the app with (role reader and up) reads exactly these, nothing else. Public catalog datasets need no declaration. | |
| entry_url | No | create: REQUIRED when entry_kind is "url". Must start with https://. update_manifest: Where the app runs. An uploaded bundle uses the conventional "index.html". | |
| entry_kind | No | "url" = the app already runs somewhere (give entry_url). "upload" = you are sending the app itself (give content or files). Default "url". | |
| source_url | No | create: Optional link to the app's open source repository. update_manifest: Link to the open source repository. | |
| visibility | No | write_artifact: Who may read the artifact. Default private. publish: "public" = listed in the app store. "unlisted" = link only. Default "public". | |
| artifact_id | No | Omit to CREATE. Give an existing artifact id to PATCH that one. | |
| content_type | No | create: Type of the uploaded content. Default text/html. upload_bundle: Type of content when it is the only file. Default text/html. | |
| datasets_owned | No | Datasets the app OWNS and writes through autario.rows (insert, select, update, delete), e.g. [{"key":"contacts","title":"Contacts","scope":"app","columns":[{"name":"email","type":"text","required":true},{"name":"deals","type":"integer"}]}]. scope "app" = one table of the app kept by the owner (readers read, editors write); scope "viewer" = one table per person looking at the app, readable only by that person (not by the owner). Types: text, number, integer, boolean, date (YYYY-MM-DD), timestamp (ISO with a time zone). Every written row is checked against these columns. A declared column cannot change its type and a key cannot change its scope; add new ones instead. Max 20 datasets x 50 columns. Omit to keep the current declaration. | |
| consumed_datasets | No | What the app reads, e.g. [{"op":"datasetData","dataset":"<id>"}]. The sandbox bridge refuses any read the manifest did not declare. To read the connected accounts of whoever opens the app, add the connector keys: [{"op":"connectors","providers":["google_search_console","ga4"]}] | those providers then appear on the Settings tab of the app with the connection state of that viewer, so a user who has not connected one can connect it from inside the app. Add "optional": true and "unlocks":"<what it adds>" for a source the app works without. |