Import public repository
ingestPublicRepositoryImport a public GitHub repository into Tofu as an app’s code, from this chat and with no GitHub connection: what the dashboard’s Import public repository does under Import from GitHub. Tofu reads one commit from github.com with no credential and keeps exactly that commit: a later push changes nothing here. It deploys nothing. Every call is one upload against the day’s allowance and, without projectId, makes another app, named name or after the repository. projectId replaces all the code of an app this account owns with that commit’s — its address, settings and earlier versions stay, but a file not in the commit is not in the new version, and an app whose automatic updates follow a repository pauses them at its next push. A private or missing repository and a #branch that does not exist all get one refusal, which says nothing about which private repositories exist. unpackedArchive, when present, names the app folder’s only file: a ZIP whose files Tofu stored instead.
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": {
"url": "<url>"
},
"name": "ingestPublicRepository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The repository: `owner/repo` or its github.com address, with an optional `#branch` (a branch, a tag or a commit). | |
| name | No | ||
| projectId | No | ||
| rootDirectory | No | The app’s own folder inside the repository, such as `apps/web`; left out, the whole repository is the app. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| commitSha | Yes | ||
| projectId | Yes | ||
| repository | Yes | ||
| rootDirectory | Yes | ||
| unpackedArchive | No |