amiga_install_begin
Start a tracked backup before installing Amiga software: record system state and copy target folders, estimate space/time, and run the copy as a background job so changes can be undone.
Instructions
Before installing something: take stock so it can be undone, and copy aside what undo needs.
folders (comma separated, e.g. the program's target folder) are recorded and copied aside whole. With system=True (the default) C:, LIBS:, DEVS:, S:, L:, ENVARC:, SYS:WBStartup and SYS:Classes are recorded as well (name, size, date), but not copied: of them only S:Startup-Sequence, S:User-Startup and the files in touch (comma separated, e.g. 'LIBS:foo.library') are copied, plus what amiga_aminet_install and amiga_put are about to overwrite while the installation is open. full=True copies the system folders whole (slow on a full system). system=False watches only folders, for a game that stays in its drawer.
A record can tell that a file changed but not bring its old content back: amiga_install_end and amiga_install_undo name each system file that changed or went without a copy. When the installer is known to write system files, name them in touch.
First comes an estimate (files, bytes, time) and a check of the free space; above 2000 files, 32 MB or 5 minutes nothing is copied until the call is repeated with confirm=True (ask the user first). estimate_only=True only tells. The copying runs as a background job: after wait seconds the answer gives its number for amiga_job_output (progress) and amiga_break(job=n); a backup stopped or failed is never used. Calling this again says whether it is complete. Then install as usual and call amiga_install_end(name).
machine: saved Amiga name or ID from amiga_machines; defaults to AMIGENT_HOST, the saved default, or the sole registered machine.
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": {
"name": "<name>"
},
"name": "amiga_install_begin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | ||
| name | Yes | ||
| wait | No | ||
| touch | No | ||
| system | No | ||
| confirm | No | ||
| folders | No | ||
| machine | No | ||
| estimate_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |