Upload app files from chat
ingestFilesSend an app’s code to Tofu as files from this chat. The files sent are the whole app: name makes a new app, or projectId replaces all the code of an app this account owns — its address, settings and earlier versions stay, but a file not sent is not in the new version, so an update requires the app’s complete current code. For an app that follows a GitHub repository, its next push then pauses automatic updates. summary is one plain line on what this code changes, shown as the version’s title on the Versions page; never a secret. One call takes at most 500 files, 1536 KB in all and 512 KB per file, and 512 KB of base64 files together; a call past a limit or with a private file (a .env, a key) is refused with a sentence and nothing is stored. The answer’s files counts what Tofu keeps. The same name with the same files again within ten minutes answers with the app the first call made (reused: true) and makes no second one.
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": {
"files": "<files>"
},
"name": "ingestFiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| files | Yes | ||
| summary | No | ||
| projectId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| bytes | Yes | ||
| files | Yes | ||
| reused | No | ||
| sha256 | Yes | ||
| received | Yes | ||
| projectId | Yes | ||
| latestDeployment | No |