manage_orphans
List or remove orphaned packages on Arch Linux. Use dry-run to preview removals and exclude specific packages.
Instructions
[MAINTENANCE] Unified tool for managing orphaned packages (dependencies no longer required). Supports two actions: 'list' (show orphaned packages) and 'remove' (remove orphaned packages). Only works on Arch Linux. Requires sudo access for removal. Examples: action='list' → shows all orphaned packages with disk usage; action='remove', dry_run=true → preview what would be removed; action='remove', dry_run=false, exclude=['pkg1'] → remove all orphans except 'pkg1'.
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": {
"action": "<action>"
},
"name": "manage_orphans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform: 'list' (list orphaned packages) or 'remove' (remove orphaned packages) | |
| dry_run | No | Preview what would be removed without actually removing (only for remove action). Default: true | |
| exclude | No | List of package names to exclude from removal (only for remove action) |