# packages.search

Source: https://docs.lightair.app/developers/remote-api/packages.search

> Searches every catalog added in Lightair for packages, leaving out withdrawn versions.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Packages and plugins. Script plugins need the `project.write` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `query` | `string` | no | Words in the id, name, summary, description or publisher. |
| `kind` | `string` | no | Only this kind of content (`script` is taken for `extension`). |
| `catalog` | `string` | no | Only this catalog, by name or address. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `results` | `{ id: string, name: string, kind: string, kinds: string[], catalog: string, catalog_url: string, lightair: boolean, version: string, summary: string, description: string, publisher: string, permissions: string[], optional_permissions: string[], full_access: boolean, installed: string | null }[]` | no | At most 50. `lightair` says whether the catalog is Lightair's own. |
| `more` | `boolean` | no | Whether there were more. |

## From an AI agent

The MCP server's `plugins (action: search)` reaches this method.

## Related

- [packages.install](https://docs.lightair.app/developers/remote-api/packages.install.md)
- [packages.updates](https://docs.lightair.app/developers/remote-api/packages.updates.md)
