clean_drive
Clean a tape drive by loading the library's CLN cleaning tape, waiting for ready state, unloading it, and resetting the P5 cleaning flag; requires confirm:true.
Instructions
Cleans a drive with the library's CLN* cleaning tape: load into the drive (by P5 device name or generation L6/L9), wait until the drive goes not ready -> ready (max 180 s), unload back to its slot, then set P5 Device cleaning 0. Requires confirm:true.
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": {
"drive": "<drive>"
},
"name": "clean_drive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drive | Yes | P5 device name (e.g. sg7) or generation (L6/L9) | |
| force | No | Override the busy-library check | |
| confirm | No | Must be true to actually run |