Copy an app
fork_appCreates a new app in the account from an app the caller can open (their own or someone else's). It starts empty unless withData copies the data of one of the caller's own copies (chosen with instanceId when there are several), without exposing its contents. Other people's data is never copied. Returns the new app and openUrl; the new app starts private.
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": {
"appId": "<appId>",
"name": "<name>"
},
"name": "fork_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the new app. | |
| appId | Yes | The short id of the app to copy. | |
| withData | No | true copies the data of one of the caller's copies of the original app. Default false: the new app starts empty. | |
| instanceId | No | The full docId of a copy (a data document of the app), as returned by list_instances. |