Request data export
tzcloud_request_exportExport an application's database and stored files. Use export_account for declarations. Pass application, and the environment defaults to production. Read tzcloud_read_export until completed, then pass download: true and export. Run one returned command for your system outside the application's folder. Use your account's credential or an application-bounded token in a session or job. The application's platform credential cannot start or download.
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": {
"application": "<application>"
},
"name": "tzcloud_request_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| export | No | The export's id, from `tzcloud_request_export`. The export must be completed: a running or failed one is refused `export_not_completed`, and an id the application does not hold, or an export whose files no longer exist, is refused 404 `not_found`. | |
| download | No | `true` returns the line that downloads a completed export's files, naming `export`, in place of starting an export. An application's platform credential is refused it. | |
| local_path | No | Optional: the folder on your machine for the export, absolute or relative to where the line runs. Absent, the line writes `export-<export id>` where it runs, refused if that folder holds `package.json`. A path outside the pattern, `~`, or one opening `~/` or `~\` is refused `invalid_request`. | |
| application | Yes | The id of the application whose database and files the export reads, one of your account's; `tzcloud_list_applications` returns it. | |
| environment | No | Export environment, default production; omit beside `download: true`, which takes its environment from the export. |