amiga_wait_task
Wait for a named Amiga task or process to start, or with gone=true until it disappears. Use it to synchronize scripts with programs launched by Run and confirm completion.
Instructions
Wait until a task or process with this name runs (or, gone=True, until none does).
For programs a script started with Run: amiga_exec returns when the script ends, this waits for what it started. name matches like amiga_task: a task name, a program as amiga_tasks shows it (its file name is enough), or an address. Looks at the task list every one to three seconds, so it is gentle on a slow line. Needs amigentd 1.4.0.
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_wait_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gone | No | ||
| name | Yes | ||
| machine | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |