Commit source to the app repo
rcs_commitFor an existing-app repair, send only changed files with complete contents; omitted files remain in the hosted repository, so do not re-upload unchanged generated packages. Save RcsCommitted.commit and use that exact reference for required test_ref and deploy_ref. Preserve the existing manifest and app identity. COMMIT files to the app's hosted source repository — INCREMENTAL: each commit overlays the previous tree, so you build the app up over MANY commits (many generations) instead of one giant upload; the FIRST commit claims the app. Optionally commit on a 'branch' (the branching model — a concurrent line on the SAME codebase; default 'main'). 'files' maps relative path -> file content. Returns {RcsCommitted:{app,branch,commit}}. packages names Ferrite source packages (list_packages, read_package) whose files the server adds to files under src//, with their dependencies', exactly as ferrite add writes them.
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": {
"app": "<app>",
"files": "<files>"
},
"name": "rcs_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| files | Yes | ||
| token | No | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused | |
| branch | No | ||
| message | No | ||
| packages | No | Ferrite source packages to compile in, by name from list_packages ("name" or "name@version"). The server adds each package's files, and its dependencies', under src/<root>/ before anything reads `files`; declare each root in src/lib.rs (read_package gives the lines). Do not send those files yourself: a changed copy is refused. |