Fork an app with its data
forkCopy a running app WITH its data (copy-on-write, seconds): {app, fork_app}, fork_app a new name such as -karaoke. Returns {BuildStarted:{build_id}}; build_status reports deployed within seconds with the fork's host and one line per service (forked = copied). The original keeps serving, unchanged. To change the copy: deploy_source ONCE with your edited files and the same spec except application name = fork_app exactly (artifact_key apps/<fork_app>@v1); keep the service names so the copied data stays. One build. Not rcs_checkout/rcs_commit/test_ref/deploy_ref: deploy_ref needs a manifest naming the fork and, when the platform requires tests, a passing commit-bound test verdict before deployment. Then give the user both URLs. A fork refused with "is FULL" is a temporary capacity limit and costs nothing: retry the same fork call (each retry is free). Never substitute a fresh app: it would lose the data the user asked to keep. as_of_unix_micros (optional) forks the state as of a past instant within 14 days. A code branch without data: rcs_branch. Details (not needed for the steps above): read_docs doc=forking.
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>",
"fork_app": "<fork_app>"
},
"name": "fork"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | 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 | |
| fork_app | Yes | ||
| as_of_unix_micros | No |