Export project to a bundle
export_projectPackage a project into a portable bundle and return a time-limited download link. The bundle carries the project's source tree, its settings, its run plan, and the NAMES of the env vars it needs. Left out: dependency caches, git history, and any .env or credential file in the workspace, so the bundle never carries a secret value. Hand the file to import_project on this deployment or any other Server4Agent deployment to recreate the project there.
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": {
"project_id": "<project_id>"
},
"name": "export_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project's id, as returned by create_project or list_projects. | |
| ttl_seconds | No | How long the download link stays valid. Defaults to 24 hours, up to 7 days. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Env vars the project needs. Names only, never values. | |
| url | Yes | Time-limited download link for the bundle. Anyone holding it can fetch it. | |
| bytes | No | Bundle size. | |
| filename | No | The bundle's file name. | |
| expires_at | No | When the link stops working, ISO 8601. | |
| project_id | Yes | The exported project. |