get_installed_packages
Determine what software is installed on Linux by querying pacman, dpkg, rpm, or apk. Filter by package name to verify existing packages.
Instructions
Queries installed packages: pacman -Q on Arch, dpkg -l on Debian, rpm -qa on rpm/dnf, apk list --installed on Alpine. Optional name filter, resolved by the package manager itself. Read-only. Fatal only if no supported package manager is present or the query fails. Use to check what is installed; get_available_updates for pending upgrades.
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": "get_installed_packages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | optional package name filter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| errors | No | ||
| packages | Yes |