Search Packagist PHP packages
search_packagesSearch PHP packages on Packagist by keyword, optional tag, or package type.
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_packages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional Packagist tag filter (e.g. "psr-7", "symfony"). | |
| type | No | Optional Composer package type (e.g. "library", "symfony-bundle"). | |
| limit | No | Maximum packages to return (default 10). | |
| query | Yes | Search query (e.g. "laravel", "http client", "pdf"). |