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.
Before you start
Upload a file, step by step
- 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
}- 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
}- 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 }
}- Apply it: the same call with
confirmset to the dataset name instead ofdry_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
Limits
When it says no
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.