Compare a component across libraries
compare_componentsCompare component implementations across libraries. For a component intent, fetch the best match from each registry and view dependencies, file count, lines of code, install command, and source preview side by side.
Instructions
For a given intent (e.g. 'pricing table', 'date picker'), fetch the single best match from EACH library and return them side by side: dependencies, file count, lines of code, install command, and a source preview. Use this to choose the nicest implementation instead of taking the first search hit.
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": "compare_components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The component intent, e.g. 'pricing table' | |
| registries | No | Optional subset of registry ids to compare (default: all) |