Search Nix Packages
searchSearch nixpkgs or another flake for packages by query. Returns matching results in JSON so agents can locate package names before inspecting outputs or building.
Instructions
Search nixpkgs or another flake for packages. Use flake_inspect to list a project's complete output tree.
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": {
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory under an MCP workspace root. | |
| json | No | ||
| query | Yes | ||
| flakeRef | No | nixpkgs | |
| timeoutSeconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | ||
| status | Yes | ||
| outputs | Yes | ||
| summary | Yes | ||
| diagnostics | Yes |