upload_token
Needs sign-in (connect this server with OAuth, or pass an API key as the Authorization: Bearer header). Mints a short-lived bearer token for staging builds and media, without revealing the connection's sign-in token. It cannot publish. Stage a local build folder with Node 22+: download https://yougame.co/upload-build.mjs, then run node upload-build.mjs with YOUGAME_URL=https://yougame.co and YOUGAME_UPLOAD_TOKEN (from upload_token) or YOUGAME_API_KEY set. It applies the website's path fixes locally and streams files through POST /api/upload/start, PUT /api/upload/file (a file over 100 MB goes up in 64 MB parts through /api/upload/file/parts), and POST /api/upload/complete. The same limits as the website apply: up to 5 GB per build, 512 MB per file, 5,000 files. Pass the build folder or the build's .zip: the helper unpacks a zip on your machine and sends its files the same way. The result includes uploadId, testUrl and the static check report; fix a broken verdict and upload again. When you change a build you already uploaded, add --from <your game's slug or your last uploadId>: files this helper sent before and that haven't changed are copied instead of sent again, so a small change is quick even on a big game. A ROM mod (kind "patch") is its one patch file (.ips, .ups, .bps or .xdelta) and no index.html: pass the file itself to the helper and it is staged as a package with no page to check; a cosmetic's folder is staged with --package (by hand, POST /api/upload/start with package: true beside files). On an "Ideas and test builds only" connection (scope build) the helper works with upload_token's token and stages a private test build; upload_token's reply there gives the steps. On an "Ideas and test builds only" connection the token stages only a private test build (upload-build.mjs with the build folder or its zip, up to 5 GB per build and 512 MB per file), and its reply says how.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||