Wikily

Switch game

46 Wikis · pick your game
WikilyWIKILY
All games46 Wikis · pick your game
Menu

Documentation

Upload a dataset file with your AI assistant

Updated 2026-11-29

A big dataset (thousands of rows, megabytes of JSON) should not be typed out by an AI assistant: an 11 MB file is millions of tokens, every re-upload costs them again, and a retyped row can come out wrong. If your assistant can run commands (Claude Code, Codex, a script), it can send the file itself instead.

The rows never pass through the AIThe file goes straight from your computer to the wiki. The assistant only handles a link and an upload id.
Like updating from a fileRows are matched by their key, pages and your corrections stay, a version is saved, and review mode applies.
Short answersEvery reply is a summary: how many rows are kept, updated, added and removed. The rows are never echoed back.

Before you start

MCP accessYour assistant is connected with a token that may change Data (see Let your AI assistant work on your wiki).
A terminalThe assistant can run a command such as curl. A chat-only app cannot send a file this way: update the dataset from the file in the browser instead (below).
The fileJSON: an array of rows, an object that holds one list of rows, or one row per line. Up to 16 MB, the same limit as a file update in the browser.

Upload a file, step by step

  1. Ask for a link for the dataset. It works once, for 10 minutes, for that dataset only.
data_write { "action": "upload_url", "dataset": "items" }
{
  "dataset": "items",
  "url": "https://wikily.gg/api/mcp/<your-wiki>/dataset-upload/<one-time link>",
  "example": "curl -sS -T ./items.json \"https://wikily.gg/api/mcp/...\"",
  "maxMegabytes": 16,
  "expiresInMinutes": 10,
  "singleUse": true
}
  1. Send the file to that link. The answer is an upload id and counts, never the rows.
curl -sS -T ./items.json "https://wikily.gg/api/mcp/<your-wiki>/dataset-upload/<one-time link>"
{
  "uploadId": "w1vAKhhDUDjvq_KQP76My7MLxgCn0LMB",
  "dataset": "items",
  "rows": 11718,
  "fields": 30,
  "bytes": 11970188,
  "expiresInMinutes": 30
}
  1. Check what it would change with a dry run. Nothing is saved, and the upload stays.
data_write { "action": "reupload", "dataset": "items",
             "upload": "w1vAKhhDUDjvq_KQP76My7MLxgCn0LMB", "dry_run": true }
{
  "dataset": "items",
  "dryRun": true,
  "rows": { "kept": 11444, "updated": 234, "added": 40, "removed": 122 }
}
A dry run answers four counts and saves nothing; the same call with confirm applies it.
  1. Apply it: the same call with confirm set to the dataset name instead of dry_run. This uses the upload up.
data_write { "action": "reupload", "dataset": "items",
             "upload": "w1vAKhhDUDjvq_KQP76My7MLxgCn0LMB", "confirm": "items" }

In a live test a 12 MB file with 11,718 rows took about 1 second to send, 1 second for the dry run and 8 seconds to apply.

A new dataset

Ask for the link with the new dataset's name (its slug), send the file, then create the dataset from the upload. Its fields are read from the file.

data_write { "action": "create", "dataset": "recipes", "name": "Recipes",
             "upload": "<uploadId>" }

What stays when you re-upload

RowsMatched by their key (the slug cell, or the field you pass as identity). A matched row keeps its address.
PagesA page made for a row stays bound to it. A row missing from the file is removed.
CorrectionsHand corrections made in the wiki stay on top of the new values.
FieldsA field missing from the file is marked removed (blocks that read it show nothing instead of breaking). Pass keep_missing: true to keep such fields, as the browser update does.
HistoryEvery applied upload is a new version, restorable from the Data tab.
ReviewA token set to Review sends the change to the review queue instead of applying it.

Limits

File size16 MB per file.
The linkWorks once, for 10 minutes, for the one dataset it was made for.
The uploadWaits 30 minutes. A dry run keeps it; applying uses it up. Only the token that made the link can apply it, only to that dataset.
Rows and fieldsThe same as an import: up to 50,000 rows and 2,000 fields, 32 KB per cell.

When it says no

This upload link is not validIt was used already, is older than 10 minutes, or is for another wiki. Ask for a new link.
The file is bigger than this link allowsOver 16 MB. Split the data into two datasets, or trim unused fields.
The file is not valid dataset JSONFix the file; the reason names the problem.
No such uploadIt was applied already or is older than 30 minutes. Send the file again to a new link.
No field identifies every rowPass identity: a field whose values are unique in every stored and new row.

A prompt for your assistant

Copy this into a chat with an assistant that can run commands:

Update the "items" dataset of my wiki from the file ./items.json without
typing the rows yourself:
1. Call data_write upload_url with dataset "items".
2. Run: curl -sS -T ./items.json "<the url it gave>" and read the uploadId.
3. Call data_write reupload with dataset "items", upload <uploadId>, dry_run true,
   and show me the summary (kept, updated, added, removed).
4. Wait for my OK, then call it again with confirm "items" instead of dry_run.
Never print or paste the rows.

Without a terminal, open the dataset under Media, Data, its Updates tab, and drop the file on Update this dataset from a file: it does the same update from the browser. More on updating a table: Refresh a table.