Give the emulator back
emu_releaseRelease only your session's emulator lease to reset test changes, optionally uninstall leased apps, and stop the emulator only if this session started it.
Instructions
Give back this session's lease when you are done: resets what test runs leave on the device (Firebase debug properties, a moved clock), uninstalls the apps installed under the lease when uninstall is true (or the listed packages), stops the emulator only if this lease started it (unless keep_running), then deletes the lease. Refused with NOT_OWNER for another session's lease: never try to release it, the person does that. No lease is not an error (released false). LEASE_CHANGED means another session took the lease over meanwhile: leave the emulator alone. Runs as a job: if the result is a job_id, call emu_job with it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "emu_release"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avd | No | AVD name (default "unity-test", or the EMU_AVD environment variable of the server). | |
| packages | No | Uninstall these package names instead of the recorded ones (needs uninstall true). | |
| uninstall | No | Uninstall the apps installed under this lease (default false: they stay with their data). | |
| keep_running | No | Leave the emulator running even if this lease started it. |