Import project from a bundle
import_projectRecreate a project on a server from a bundle that export_project produced, here or on another Server4Agent deployment. Pass the bundle base64 encoded in bundle, which the request size limit holds to about 3 MB, or, for a bundle exported on this deployment, the url export_project returned in bundle_url, which carries bundles up to 25 MB. The new project is always private, gets its own slug and URL, and starts bringing itself up right away (the bundle only reaches the server as part of that run). Env vars the bundle names are bound only where this account already holds a value, and no .env file travels: the result lists what is still missing in missing_env, and the app will not run until you set those with set_secret.
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": {
"server_id": "<server_id>"
},
"name": "import_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name the project here. Defaults to the name in the bundle. | |
| bundle | No | The export file, base64 encoded. Pass this or bundle_url. | |
| server_id | Yes | The server's id, as returned by create_server or list_servers. | |
| bundle_url | No | The download link export_project returned on this deployment, while it is still valid. Pass this or bundle. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Project id. | |
| url | No | Public URL. null while the project is private. | |
| name | No | Project name. | |
| slug | No | URL slug. Stays the same when visibility changes. | |
| access | No | Who may open the URL once it is public. | |
| source | No | What the workspace was seeded from: kind plus git_url, ref, subdir, or archive_path. | |
| template | No | Template id it was created from. | |
| warnings | No | Anything about the bundle worth knowing. | |
| bound_env | No | Env vars bound from secrets this account already holds. | |
| lifecycle | No | ephemeral projects are removed with cleanup_project. | |
| server_id | Yes | The server the project lives on. | |
| created_at | No | ISO 8601 timestamp. | |
| init_phase | No | Where bring-up has got to, for a project seeded from a source. | |
| updated_at | No | ISO 8601 timestamp. | |
| url_status | No | Whether the address and certificate are ready. Not a health check. | |
| visibility | No | public = live at url. private = not publicly reachable. | |
| cert_status | No | State of the shared certificate. null while private. | |
| description | No | One-line description. | |
| exported_at | No | When the bundle was made, ISO 8601. | |
| init_run_id | No | The bring-up run that unpacks and starts it. Poll it with get_run. | |
| listen_port | No | The port inside the box this project's URL is routed to. | |
| missing_env | No | Env vars still unset. Set them with set_secret before the app will run. | |
| imported_from | No | The deployment the bundle was exported from. | |
| runtime_status | No | Whether the project is running or paused. |