Commit a file to the app repo
rcs_commit_fileCommit a single text or binary file into an owned app's hosted source repository using MCP file transfer (inline base64 up to 1 MiB, or out-of-band upload up to 16 MiB). Returns {RcsCommitted:{app,branch,commit}}.
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>",
"path": "<path>",
"file": "<file>"
},
"name": "rcs_commit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name or '<account>/<app>' | |
| file | Yes | File payload (inline base64 or out-of-band MCP upload) | |
| path | Yes | Relative repository path (e.g. 'assets/logo.png' or 'src/main.rs') | |
| 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 | Target branch (default: 'main') | |
| message | No | Commit message (default: 'commit <path>') |